/* ==========================================================================
   问蓍草 ASK THE STALKS · Homepage
   Plain CSS, no build step, no external runtime dependencies.
   ========================================================================== */

/* ---------- local fonts (subset, variable) ---------- */
@font-face {
  font-family: "Noto Serif SC";
  src: url("../assets/fonts/noto-serif-sc.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans SC";
  src: url("../assets/fonts/noto-sans-sc.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --page: #f7f2e8;
  --page-deep: #f1e9dc;
  --ink: #24170f;
  --ink-soft: #3b2a21;
  --muted: #78695e;
  --muted-2: #9a8b7e;
  --red: #a92c1d;
  --red-bright: #c64a32;
  --blue: #4f7e93;
  --cream: #fffbf2;
  --line: rgba(36, 23, 15, 0.1);
  --serif: "Noto Serif SC", "Songti SC", STSong, "Source Han Serif SC", SimSun, serif;
  --sans: "Noto Sans SC", "Hiragino Sans GB", "PingFang SC", "Microsoft YaHei", sans-serif;
  --latin: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  --shell: 1472px;
  --gutter: clamp(20px, 4vw, 64px);
  --slide-w: min(1320px, calc(100vw - 240px));
  --slide-radius: 32px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 100px;
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(43% 38% at 91% 4%, rgba(229, 205, 172, 0.34), transparent 72%),
    radial-gradient(34% 30% at 4% 93%, rgba(205, 222, 216, 0.22), transparent 75%),
    linear-gradient(180deg, #f8f4ec 0%, #f2eadd 100%);
}

img,
svg { display: block; }

a { color: inherit; }

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

button {
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

ul,
ol,
dl,
dd { margin: 0; padding: 0; }

ul,
ol { list-style: none; }

p,
h1,
h2,
h3,
blockquote { margin: 0; }

::selection {
  color: #fff8ef;
  background: var(--red);
}

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

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--cream);
  font-size: 12px;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.shell {
  width: min(var(--shell), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: relative;
  z-index: 50;
  height: var(--header-h);
}

.header-inner {
  /* 站头边距在手机上也保持 clamp(20px,4vw,64px),与 React 站头一致(不随 --gutter 缩成 16px) */
  width: min(var(--shell), calc(100% - (clamp(20px, 4vw, 64px) * 2)));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
  color: var(--ink);
  text-decoration: none;
}

.brand__mark {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  box-shadow: 0 7px 18px rgba(77, 41, 22, 0.18);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.brand:hover .brand__mark {
  transform: translateY(-2px) rotate(-1deg);
  box-shadow: 0 10px 22px rgba(77, 41, 22, 0.24);
}

.brand__words {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand__name {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.06em;
}

.brand__en {
  color: var(--muted);
  font-family: var(--latin);
  font-size: 8px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.23em;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 40px;
  justify-self: center;
}

.primary-nav__link {
  position: relative;
  padding: 10px 0;
  color: #6b5c52;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: color 0.25s ease;
}

.primary-nav__link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--red);
  opacity: 0;
  transform: translateX(-50%) scale(0.4);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.primary-nav__link:hover,
.primary-nav__link.is-current { color: var(--ink); }

.primary-nav__link.is-current::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.header-meta {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 20px;
}

.header-date {
  color: #9a8b7e;
  font-size: 12px;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

.header-rule {
  width: 1px;
  height: 28px;
  background: var(--line);
}

.header-login {
  color: #6b5c52;
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s ease;
}
.header-login:hover { color: var(--ink); }

.member-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 22px;
  border-radius: 20px;
  background: var(--ink);
  color: #f8f0e5;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s var(--ease);
}
.member-btn:hover {
  background: #372219;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  font-size: 18px;
}

.mobile-menu {
  position: absolute;
  top: calc(var(--header-h) - 6px);
  left: 16px;
  right: 16px;
  z-index: 60;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 251, 242, 0.97);
  box-shadow: 0 22px 60px rgba(50, 30, 17, 0.18);
  backdrop-filter: blur(18px);
}

.mobile-menu__inner {
  display: flex;
  flex-direction: column;
  padding: 10px;
}
.mobile-menu__inner a {
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
}
.mobile-menu__inner a:hover { background: rgba(36, 23, 15, 0.05); }
.mobile-menu__inner .mobile-menu__login {
  margin-top: 4px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 10px 10px;
  color: var(--red);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding-top: 30px;
  padding-bottom: 38px;
  min-height: 188px;
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(36px, 2.9vw, 46px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.015em;
}

.hero__sub {
  margin-top: 15px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.03em;
}
.hero__sub span { white-space: nowrap; }
.hero__sub span + span::before {
  content: "·";
  margin: 0 10px;
  color: var(--muted-2);
}

.hero__quote {
  flex: none;
  width: min(440px, 34vw);
  margin-top: 8px;
  padding-left: 22px;
  border-left: 1.5px solid rgba(169, 44, 29, 0.72);
}

.hero__quote p {
  color: rgba(36, 23, 15, 0.92);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.72;
  letter-spacing: 0.035em;
}

.hero__quote .accent { color: var(--red); font-weight: 600; }

.hero__quote cite {
  display: block;
  margin-top: 8px;
  color: var(--muted-2);
  font-family: var(--sans);
  font-size: 8.8px;
  font-style: normal;
  letter-spacing: 0.18em;
}

/* ==========================================================================
   Chapter rail
   ========================================================================== */
.chapter-bar {
  border-top: 1px solid var(--line);
}

.chapter-bar__inner {
  display: flex;
  align-items: flex-start;
  height: 94px;
  padding-top: 17px;
}

.chapters {
  display: flex;
  width: min(1080px, 74%);
}

.chapter {
  position: relative;
  display: flex;
  flex: 1;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0 16px;
  color: var(--muted);
  text-align: left;
  transition: color 0.25s ease;
}

.chapter::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 2px;
  border-radius: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--ease);
}

.chapter.is-active::after { transform: scaleX(1); }

.chapter__num {
  color: var(--muted-2);
  font-family: var(--latin);
  font-size: 8.7px;
  font-weight: 600;
  letter-spacing: 0.12em;
  transition: color 0.25s ease;
}

.chapter__name {
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.chapter:hover { color: var(--ink); }
.chapter.is-active { color: var(--ink); }
.chapter.is-active .chapter__num { color: var(--red); }
.chapter.is-active .chapter__name {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
}

/* ==========================================================================
   Carousel stage
   ========================================================================== */
.stage {
  position: relative;
  height: 520px;
  overflow-x: clip;
  isolation: isolate;
  touch-action: pan-y;
  outline: none;
}

.stage__glow {
  position: absolute;
  z-index: 0;
  top: -110px;
  right: 7%;
  width: 640px;
  height: 430px;
  border-radius: 50%;
  background: var(--ambient, #e9dac5);
  filter: blur(100px);
  opacity: 0.28;
  pointer-events: none;
  transition: background-color 0.8s ease;
}

.stage__window {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 50%;
  display: grid;
  width: var(--slide-w);
  height: 100%;
  transform: translateX(-50%);
  isolation: isolate;
}

/* ---------- slides ---------- */
.slide {
  --card-a: #fcf7ec;
  --card-b: #f7efdf;
  --panel-a: #fffbf3;
  --panel-b: #f8f0e1;
  --panel-border: rgba(255, 255, 255, 0.75);
  --accent: var(--red);
  --accent-2: var(--blue);
  --ink: #24170f;
  --muted: #78695e;
  --line: rgba(36, 23, 15, 0.11);
  grid-area: 1 / 1;
  position: relative;
  z-index: 1;
  height: 100%;
  overflow: hidden;
  border-radius: var(--slide-radius);
  background: linear-gradient(180deg, var(--card-a), var(--card-b));
  box-shadow:
    0 24px 64px rgba(44, 27, 16, 0.14),
    0 2px 0 rgba(255, 255, 255, 0.5) inset;
  color: var(--ink);
  opacity: 0;
  transform: translateX(var(--enter-x, 34px));
  pointer-events: none;
  will-change: opacity, transform;
  transition:
    opacity 0.55s var(--ease),
    transform 0.55s var(--ease);
}

.slide.is-active {
  z-index: 3;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.slide.is-exiting {
  z-index: 2;
  opacity: 0;
  transform: translateX(var(--exit-x, -34px));
}

.slide--destiny {
  --card-a: #fcf7ec;
  --card-b: #f7efdf;
  --panel-a: #fffcf4;
  --panel-b: #f8f0e1;
  --accent: #a92c1d;
  --accent-2: #4f7e93;
  --muted: #7b6a5c;
}

.slide--iching {
  --card-a: #fcf8ef;
  --card-b: #f5efe3;
  --panel-a: #fdf9f0;
  --panel-b: #f7efe1;
  --accent: #a92c1d;
  --accent-2: #6d7772;
  --muted: #6d7772;
}

.slide--lot {
  --card-a: #fdf8ec;
  --card-b: #f6eddb;
  --panel-a: #fefaf0;
  --panel-b: #f8efde;
  --accent: #a92c1d;
  --accent-2: #c2a77b;
  --muted: #7b6b58;
}

.slide--quiz {
  --card-a: #fff9ef;
  --card-b: #f8eee1;
  --panel-a: #fffbf3;
  --panel-b: #f8efe1;
  --accent: #a92c1d;
  --accent-2: #77866f;
  --muted: #7d6a5d;
}

.slide--love {
  --card-a: #2d1c14;
  --card-b: #26160f;
  --panel-a: #3b2920;
  --panel-b: #312018;
  --panel-border: rgba(255, 255, 255, 0.08);
  --ink: #f7ebdd;
  --muted: #c4b1a1;
  --line: rgba(247, 235, 221, 0.16);
  --accent: #d65a41;
  --accent-2: #f2e4d2;
}

.slide__inner {
  display: grid;
  grid-template-columns: 470px minmax(0, 1fr);
  gap: 44px;
  height: 100%;
  padding: 32px 40px;
}

/* ---------- left column ---------- */
.slide__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 10px 0 4px 8px;
}

.kicker {
  display: flex;
  align-items: baseline;
  gap: 15px;
  margin-bottom: 14px;
  color: var(--accent);
  font-family: var(--latin);
  font-size: 8.8px;
  font-weight: 600;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.kicker__en {
  color: color-mix(in srgb, var(--muted) 90%, transparent);
  letter-spacing: 0.17em;
}

.slide__title {
  display: flex;
  align-items: flex-start;
  font-family: var(--serif);
  font-size: 60px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.012em;
}

.title-dot {
  width: 8px;
  height: 8px;
  margin: 8px 0 0 12px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.tagline {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 21.5px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.025em;
}

.features {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.feature {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 46px;
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  color: color-mix(in srgb, var(--ink) 78%, transparent);
  font-size: 16px;
  flex: none;
}

.feature__icon .icon { width: 16px; height: 16px; stroke-width: 1.45; }

.feature__body { display: flex; flex-direction: column; gap: 1px; }
.feature__body strong {
  color: color-mix(in srgb, var(--ink) 95%, transparent);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 21px;
  margin-top: auto;
  padding-top: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 158px;
  height: 46px;
  padding: 0 23px;
  border-radius: 23px;
  background: var(--accent);
  color: #fff8ef;
  font-size: 13.8px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 22%, transparent);
  transition: transform 0.25s var(--ease), background 0.25s ease, box-shadow 0.25s ease;
}
.btn:hover {
  background: color-mix(in srgb, var(--accent) 86%, #000);
  box-shadow: 0 11px 26px color-mix(in srgb, var(--accent) 28%, transparent);
  transform: translateY(-2px);
}
.btn:active { transform: translateY(0); }

.btn--small {
  min-width: 166px;
  height: 42px;
  border-radius: 21px;
  font-size: 10.2px;
}

/* ==========================================================================
   Shared visual panels
   ========================================================================== */
.slide__visual {
  position: relative;
  min-width: 0;
  height: 452px;
}

.panel {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  background: linear-gradient(180deg, var(--panel-a), var(--panel-b));
  box-shadow:
    0 16px 34px rgba(43, 26, 14, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.48) inset;
}

.panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.panel__head h3 {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.panel__head p {
  margin-top: 4px;
  color: color-mix(in srgb, var(--muted) 88%, transparent);
  font-family: var(--latin);
  font-size: 7.8px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.panel__head--stack { display: block; }

.panel__meta {
  color: color-mix(in srgb, var(--muted) 86%, transparent);
  font-size: 8.4px;
  white-space: nowrap;
}

.round-link {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  font-size: 13px;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s var(--ease);
}
.round-link:hover { background: rgba(36, 23, 15, 0.05); transform: translateX(2px); }
.round-link--light {
  border-color: rgba(255, 249, 239, 0.18);
  color: rgba(255, 249, 239, 0.72);
}
.round-link--light:hover { background: rgba(255, 249, 239, 0.07); }
.round-link .icon { width: 14px; height: 14px; }

/* ==========================================================================
   01 · Destiny
   ========================================================================== */
.destiny-grid {
  display: grid;
  grid-template-columns: 1.78fr 1fr;
  grid-template-rows: 300px 134px;
  gap: 18px;
}

.chart-panel {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  padding: 20px 24px 14px;
}

.chart-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding-top: 6px;
}

.chart {
  width: 100%;
  flex: 1;
  min-height: 0;
  overflow: visible;
}

.chart-grid path {
  fill: none;
  stroke: rgba(36, 23, 15, 0.08);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.candle line { stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.candle rect { rx: 3; }
.candle.up line { stroke: rgba(169, 44, 29, 0.9); }
.candle.up rect { fill: var(--red); }
.candle.down line { stroke: rgba(79, 126, 147, 0.9); }
.candle.down rect { fill: var(--blue); }

.chart-now {
  stroke: rgba(169, 44, 29, 0.34);
  stroke-width: 1;
  stroke-dasharray: 3 3;
  vector-effect: non-scaling-stroke;
}
.chart-now-dot { fill: var(--red); }

.chart-axis {
  display: flex;
  justify-content: space-between;
  padding: 7px 4px 0;
  color: color-mix(in srgb, var(--muted) 84%, transparent);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.bazi-panel {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px 14px;
}

.bazi-wheel {
  width: min(180px, 92%);
  flex: 1;
  max-height: 196px;
  margin: 2px auto 0;
  color: var(--ink);
  overflow: visible;
}

.bazi-ring {
  fill: none;
  stroke: rgba(36, 23, 15, 0.34);
  stroke-width: 1.15;
}
.bazi-ring--inner { stroke: rgba(36, 23, 15, 0.11); }
.bazi-ticks line { stroke: rgba(36, 23, 15, 0.42); stroke-width: 1; }
.bazi-label { fill: rgba(36, 23, 15, 0.58); font-family: var(--serif); font-size: 8.5px; }
.bazi-needle { stroke: var(--red); stroke-width: 2; }
.bazi-hub { fill: var(--ink); stroke: var(--panel-a); stroke-width: 2; }
.bazi-foot {
  color: color-mix(in srgb, var(--muted) 86%, transparent);
  font-size: 8px;
  letter-spacing: 0.13em;
  white-space: nowrap;
}

.almanac {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  background: linear-gradient(180deg, #2f2018, #24150f);
  box-shadow: 0 16px 36px rgba(35, 22, 12, 0.2);
  color: #fbf1e4;
}

.almanac__date {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 249, 239, 0.12);
  border-radius: 11px;
  background: rgba(255, 249, 239, 0.06);
  color: #fff9ef;
  font-family: var(--latin);
  font-size: 13.5px;
  font-weight: 600;
  flex: none;
}
.almanac__date::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 9px;
  width: 26px;
  height: 1px;
  background: rgba(255, 249, 239, 0.24);
}
.almanac__date span { margin-top: 7px; }
.almanac__date i {
  position: absolute;
  top: 10px;
  right: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
}

.almanac__title { width: 190px; flex: none; }
.almanac__title h3 {
  font-family: var(--serif);
  font-size: 14.2px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.almanac__title p {
  margin-top: 3px;
  color: rgba(251, 241, 228, 0.48);
  font-size: 9.2px;
  letter-spacing: 0.03em;
}

.almanac__list {
  display: flex;
  flex: 1;
  gap: 30px;
  padding-left: 22px;
  border-left: 1px solid rgba(255, 249, 239, 0.12);
}
.almanac__list div { display: flex; align-items: center; gap: 12px; }
.almanac__list dt { color: var(--red); font-size: 9.2px; font-weight: 600; }
.almanac__list div:last-child dt { color: rgba(251, 241, 228, 0.42); }
.almanac__list dd {
  color: rgba(251, 241, 228, 0.9);
  font-size: 10.8px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.almanac__list div:last-child dd { color: rgba(251, 241, 228, 0.66); }

/* ==========================================================================
   02 · I Ching
   ========================================================================== */
.iching-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  height: 100%;
}

.question-panel {
  display: flex;
  flex-direction: column;
  padding: 22px 30px 25px;
}

.question-panel__top {
  display: flex;
  justify-content: space-between;
  color: color-mix(in srgb, var(--ink) 55%, transparent);
  font-size: 9.2px;
  font-weight: 600;
  letter-spacing: 0.16em;
}
.question-panel__top span:last-child {
  color: color-mix(in srgb, var(--muted) 82%, transparent);
  font-weight: 400;
  letter-spacing: 0.07em;
}

.question {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 18.5px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.02em;
}

.chips { display: flex; gap: 10px; margin-top: 12px; }
.chips span {
  padding: 5px 13px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  color: color-mix(in srgb, var(--ink) 62%, transparent);
  font-size: 8.8px;
  letter-spacing: 0.04em;
}

.hexagram {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 82%;
  margin: 26px auto 0;
}

.hex-line {
  position: relative;
  display: flex;
  gap: 28px;
  width: 100%;
  height: 10px;
}
.hex-line::before,
.hex-line i {
  display: block;
  height: 100%;
  border-radius: 5px;
  background: color-mix(in srgb, var(--ink) 94%, transparent);
  content: "";
}
.hex-line.solid::before { flex: 1; }
.hex-line.broken { background: transparent; }
.hex-line.broken i { flex: 1; }
.hex-line.is-moving::before { background: var(--red); }
.hex-line.is-moving em {
  position: absolute;
  top: 0;
  left: calc(100% + 18px);
  color: var(--red);
  font-size: 8px;
  font-style: normal;
  font-weight: 600;
  line-height: 10px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.reading {
  margin-top: auto;
  padding-top: 16px;
  text-align: center;
}
.reading__head {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 16px;
}
.reading__head strong {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.reading__head span {
  color: var(--red);
  font-size: 8.5px;
  letter-spacing: 0.1em;
}
.reading__rule {
  height: 1px;
  margin: 13px 0 10px;
  background: var(--line);
}
.reading p {
  color: color-mix(in srgb, var(--muted) 95%, transparent);
  font-size: 10px;
  letter-spacing: 0.03em;
}

/* ==========================================================================
   03 · Fortune slip
   ========================================================================== */
.lot-grid {
  display: grid;
  grid-template-columns: 1.93fr 0.82fr;
  gap: 18px;
  height: 100%;
}

.lot-panel {
  display: flex;
  flex-direction: column;
  padding: 20px 24px 16px;
}

.lot-panel__top {
  display: flex;
  justify-content: space-between;
  color: color-mix(in srgb, var(--ink) 55%, transparent);
  font-size: 9.2px;
  font-weight: 600;
  letter-spacing: 0.16em;
}
.lot-panel__top span:last-child {
  color: color-mix(in srgb, var(--muted) 82%, transparent);
  font-weight: 400;
  letter-spacing: 0.07em;
}

.slip-scene {
  display: grid;
  place-items: center;
  flex: 1;
  min-height: 0;
  padding: 8px 0 4px;
}

.slip {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 230px;
  height: 286px;
  padding: 18px 18px 13px;
  border: 1px solid #dcc8a9;
  border-top: 6px solid var(--red);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.22), transparent 18%, transparent 82%, rgba(177, 143, 96, 0.06)),
    linear-gradient(180deg, #f7ead3, #f1e2c8);
  box-shadow: 0 16px 28px rgba(56, 35, 18, 0.14);
}

.slip__seal {
  position: absolute;
  top: 16px;
  left: 16px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--red);
  color: #fbf1e2;
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 700;
}

.slip__brand {
  color: rgba(36, 23, 15, 0.48);
  font-size: 7.2px;
  letter-spacing: 0.2em;
}

.slip__body {
  display: flex;
  flex: 1;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center;
  gap: 17px;
  padding-top: 3px;
}

.slip__fortune,
.slip__verse {
  writing-mode: vertical-rl;
  text-orientation: upright;
  white-space: nowrap;
}
.slip__fortune {
  color: var(--red);
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.03em;
}
.slip__verse {
  color: rgba(36, 23, 15, 0.9);
  font-family: var(--serif);
  font-size: 15.5px;
  line-height: 1.25;
  letter-spacing: 0.04em;
}

.slip__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 7px;
  border-top: 1px solid rgba(36, 23, 15, 0.12);
  color: rgba(36, 23, 15, 0.58);
  font-size: 8.5px;
  letter-spacing: 0.06em;
}

.slip__stamp {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(169, 44, 29, 0.55);
  border-radius: 50%;
  color: rgba(169, 44, 29, 0.9);
  font-family: var(--serif);
  font-size: 6.5px;
  line-height: 1;
}

.wish-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 22px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  background: linear-gradient(180deg, #dfcbab, #d4be9b);
  color: #322116;
  box-shadow: 0 17px 34px rgba(54, 34, 16, 0.13);
}

.wish-tag {
  width: 58px;
  height: 88px;
  margin-top: 19px;
  overflow: visible;
}
.wish-tag__string { fill: none; stroke: rgba(169, 44, 29, 0.72); stroke-width: 1.3; }
.wish-tag__ring { fill: none; stroke: rgba(169, 44, 29, 0.7); stroke-width: 1; }
.wish-tag__body { fill: var(--red); stroke: rgba(124, 32, 20, 0.2); stroke-width: 1; }
.wish-tag__hole { fill: #e7d4b6; }

.wish-panel h3 {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: 17.2px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.wish-panel__copy {
  margin-top: 6px;
  color: rgba(58, 40, 28, 0.72);
  font-size: 10.2px;
  line-height: 1.8;
  text-align: center;
  letter-spacing: 0.02em;
}
.dark-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 132px;
  height: 38px;
  margin-top: auto;
  border-radius: 19px;
  background: #2b1b13;
  color: #fbf1e2;
  font-size: 10.2px;
  letter-spacing: 0.05em;
  transition: background 0.25s ease, transform 0.25s var(--ease);
}
.dark-btn:hover { background: #40291c; transform: translateY(-1px); }

/* ==========================================================================
   04 · Quizzes
   ========================================================================== */
.quiz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 300px 134px;
  gap: 18px;
}

.quiz-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 14px;
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  background: linear-gradient(180deg, var(--panel-a), var(--panel-b));
  box-shadow:
    0 14px 30px rgba(50, 31, 17, 0.07),
    0 1px 0 rgba(255, 255, 255, 0.5) inset;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
}
.quiz-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 20px 38px rgba(50, 31, 17, 0.11),
    0 1px 0 rgba(255, 255, 255, 0.5) inset;
}

.quiz-card__num {
  align-self: flex-start;
  color: color-mix(in srgb, var(--accent) 74%, transparent);
  font-family: var(--latin);
  font-size: 8.2px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.quiz-card__medallion {
  display: grid;
  place-items: center;
  width: 69px;
  height: 69px;
  margin-top: 23px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 4.5%, transparent);
}

.quiz-icon {
  width: 58px;
  height: 58px;
  fill: none;
  stroke: color-mix(in srgb, var(--ink) 80%, transparent);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.quiz-icon .fill-accent { fill: var(--accent); stroke: none; }
.quiz-icon .accent-stroke { stroke: var(--accent); stroke-width: 2; }

.quiz-card h3 {
  margin-top: 17px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.quiz-card p {
  margin-top: 4px;
  color: color-mix(in srgb, var(--muted) 95%, transparent);
  font-size: 9.4px;
  letter-spacing: 0.02em;
}
.quiz-card__arrow {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  margin-top: auto;
  border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
  border-radius: 50%;
  color: color-mix(in srgb, var(--ink) 55%, transparent);
  font-size: 11px;
}

.quiz-helper {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 28px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  background: linear-gradient(180deg, #2d1d15, #24150f);
  box-shadow: 0 16px 36px rgba(35, 22, 12, 0.2);
  color: #fbf1e4;
}
.quiz-helper h3 {
  font-family: var(--serif);
  font-size: 15.2px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.quiz-helper .btn { box-shadow: none; }
.quiz-helper .btn span { margin-left: 7px; }

/* ==========================================================================
   05 · Love
   ========================================================================== */
.love-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  height: 100%;
}

.love-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 20px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: linear-gradient(180deg, #3b2920, #312018);
  box-shadow: 0 20px 44px rgba(10, 5, 2, 0.24);
  color: #f7ebdd;
  text-decoration: none;
  transition: transform 0.35s var(--ease), border-color 0.35s ease;
}
.love-card:hover { transform: translateY(-3px); border-color: rgba(214, 90, 65, 0.28); }

.love-card__num {
  align-self: flex-start;
  color: rgba(247, 235, 221, 0.38);
  font-family: var(--latin);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.13em;
}
.love-card__corner {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(214, 90, 65, 0.65);
}

.zodiac-ring {
  width: 180px;
  height: 180px;
  margin-top: 8px;
  overflow: visible;
}
.zodiac-ring__line {
  fill: none;
  stroke: rgba(247, 235, 221, 0.24);
  stroke-width: 1.2;
}
.zodiac-ring__line--inner { stroke: rgba(247, 235, 221, 0.1); }
.zodiac-dots circle { fill: rgba(247, 235, 221, 0.62); }
.zodiac-dot-accent { fill: var(--accent); }
.zodiac-center { fill: #f2e4d2; }
.zodiac-char {
  fill: #2a1912;
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 700;
}

.venn {
  width: 200px;
  height: 150px;
  margin-top: 22px;
  overflow: visible;
}
.venn__line {
  fill: none;
  stroke: rgba(247, 235, 221, 0.32);
  stroke-width: 1.2;
}
.venn__fill { fill: var(--accent); }
.venn__char {
  fill: #fdf3e5;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
}

.love-card h3 {
  margin-top: 9px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.text-link {
  margin-top: 10px;
  color: var(--accent);
  font-size: 9.2px;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Peeks and arrows
   ========================================================================== */
.stage__peek {
  position: absolute;
  z-index: 4;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 48px;
  height: 100%;
  padding: 28px 0;
  overflow: hidden;
  border-radius: 26px;
  background: var(--peek-bg, #e9dac5);
  color: var(--peek-ink, #24170f);
  opacity: 0.58;
  transition: background-color 0.65s ease, color 0.65s ease, opacity 0.3s ease;
}
.stage__peek:hover { opacity: 0.86; }
.stage__peek::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.stage__peek--prev { left: calc(50% - (var(--slide-w) / 2) - 66px); }
.stage__peek--next { right: calc(50% - (var(--slide-w) / 2) - 66px); }
.stage__peek--prev::after {
  background: linear-gradient(90deg, rgba(247, 242, 232, 0.72) 0%, transparent 74%);
}
.stage__peek--next::after {
  background: linear-gradient(270deg, rgba(247, 242, 232, 0.72) 0%, transparent 74%);
}

.peek__num {
  color: color-mix(in srgb, currentColor 56%, transparent);
  font-family: var(--latin);
  font-size: 8.2px;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.peek__name {
  margin-top: 36px;
  font-family: var(--serif);
  font-size: 15.5px;
  font-weight: 700;
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: 0.22em;
  line-height: 1.35;
  opacity: 0.58;
}
.peek__dot {
  width: 8px;
  height: 8px;
  margin-top: auto;
  border-radius: 50%;
  background: var(--peek-accent, #a92c1d);
  opacity: 0.55;
}

.stage__arrow {
  position: absolute;
  z-index: 6;
  top: 50%;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(36, 23, 15, 0.1);
  border-radius: 50%;
  background: rgba(255, 252, 246, 0.92);
  color: rgba(36, 23, 15, 0.68);
  font-size: 14px;
  transform: translate(-50%, -50%);
  box-shadow: 0 7px 18px rgba(42, 26, 15, 0.12);
  transition: transform 0.25s var(--ease), background 0.25s ease, color 0.25s ease;
}
.stage__arrow--prev { left: calc(50% - (var(--slide-w) / 2) - 52px); }
.stage__arrow--next {
  left: calc(50% + (var(--slide-w) / 2) + 52px);
}
.stage__arrow:hover {
  background: #fffdf8;
  color: var(--ink);
  transform: translate(-50%, -50%) scale(1.06);
}

.stage.is-dragging { cursor: grabbing; user-select: none; }
.stage.is-dragging .slide { transition: none; }
.stage.is-dragging .slide.is-active { cursor: grabbing; }

/* ==========================================================================
   Footer
   ========================================================================== */
.carousel-footer {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: center;
  height: 72px;
  margin-top: 9px;
  border-top: 1px solid rgba(36, 23, 15, 0.08);
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
}
.pager__dot {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 40px;
}
.pager__dot::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(36, 23, 15, 0.18);
  transition: width 0.3s var(--ease), background 0.3s ease;
}
.pager__dot:hover::before { background: rgba(36, 23, 15, 0.36); }
.pager__dot.is-active { width: 40px; }
.pager__dot.is-active::before {
  width: 24px;
  background: var(--red);
}

/* ==========================================================================
   Entrance animation
   ========================================================================== */
@keyframes copy-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes visual-rise {
  from { opacity: 0; transform: translateY(10px) scale(0.994); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.slide.is-active .kicker,
.slide.is-active .slide__title,
.slide.is-active .tagline,
.slide.is-active .features,
.slide.is-active .cta-row {
  animation: copy-rise 0.58s var(--ease) both;
}
.slide.is-active .slide__title { animation-delay: 0.03s; }
.slide.is-active .tagline { animation-delay: 0.08s; }
.slide.is-active .features { animation-delay: 0.16s; }
.slide.is-active .cta-row { animation-delay: 0.21s; }
.slide.is-active .slide__visual { animation: visual-rise 0.7s var(--ease) 0.06s both; }

/* ==========================================================================
   Toast
   ========================================================================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 300;
  max-width: calc(100vw - 32px);
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(36, 23, 15, 0.94);
  color: #fff8ef;
  font-size: 12px;
  letter-spacing: 0.03em;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s var(--ease);
  backdrop-filter: blur(12px);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   Copy column without description lines (ASKTHE-71)
   Title and tagline sit on top; the entry names and the button sit at the
   bottom of the card, so the space left by the removed text reads as air.
   ========================================================================== */
.chapters { width: 100%; }

.features {
  margin-top: auto;
  padding-top: 10px;
}
.feature { min-height: 44px; }
.feature__body strong { font-size: 14.5px; }
.cta-row {
  margin-top: 26px;
  padding-top: 0;
}

.iching-grid .hexagram { width: min(82%, 340px); }

.wish-panel { justify-content: center; }
.wish-tag { margin-top: 0; }
.wish-panel__copy { font-size: 11px; }
.dark-btn {
  height: 40px;
  margin-top: 26px;
  border-radius: 20px;
  font-size: 11px;
}

.quiz-card h3 { margin-top: 20px; }
.quiz-card p { margin-top: 6px; font-size: 10.5px; }
.quiz-helper h3 { font-size: 17px; }

.love-card { justify-content: center; }
.love-card__num { position: absolute; top: 20px; left: 18px; }
.love-card h3 { margin-top: 18px; }
.venn { margin-top: 38px; }
.text-link { font-size: 11px; }

/* ==========================================================================
   Responsive · 1440
   ========================================================================== */
@media (max-width: 1440px) {
  :root { --slide-w: min(1240px, calc(100vw - 220px)); }
  .slide__inner { grid-template-columns: 440px minmax(0, 1fr); gap: 36px; padding: 30px 34px; }
  .slide__title { font-size: 56px; }
  .tagline { font-size: 20px; }
  .feature { min-height: 44px; }
  .destiny-grid { grid-template-rows: 286px 128px; }
  .quiz-grid { grid-template-rows: 286px 128px; }
  .slide__visual { height: 440px; }
}

/* ==========================================================================
   Responsive · 1360 — keep two columns, compact the almanac strip
   ========================================================================== */
@media (max-width: 1360px) and (min-width: 1181px) {
  .almanac { gap: 12px; padding: 0 16px; }
  .almanac__title { width: 150px; }
  .almanac__list { gap: 14px; padding-left: 12px; }
  .almanac__list div { gap: 9px; }
  .almanac__list dd { font-size: 9.8px; }
  .almanac .round-link { width: 32px; height: 32px; }
}

/* ==========================================================================
   Responsive · 1180 — stack copy and visuals, remove peeks
   ========================================================================== */
@media (max-width: 1180px) {
  :root { --slide-w: calc(100% - 48px); }

  .stage {
    height: auto;
    padding-bottom: 14px;
  }

  .stage__window {
    position: relative;
    left: auto;
    width: var(--slide-w);
    height: auto;
    margin-inline: auto;
    transform: none;
  }

  /* With JS, the stacked layout gets a measured height and crossfades in place.
     Without JS every card remains in the document flow and is still readable. */
  .js .stage__window {
    display: block;
    min-height: 320px;
    height: var(--window-h, auto);
    transition: height 0.45s var(--ease);
  }

  .js .slide {
    position: absolute;
    inset: 0 0 auto;
    display: none;
    width: 100%;
    height: auto;
    min-height: 0;
  }

  .js .slide.is-active,
  .js .slide.is-exiting { display: block; }

  .slide__inner {
    grid-template-columns: 1fr;
    gap: 30px;
    height: auto;
    padding: 28px 30px 34px;
  }

  .slide__copy { padding: 6px 0 0; }

  .slide__title { font-size: 54px; }
  .features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px 18px;
    margin-top: 22px;
    padding-top: 14px;
  }
  .cta-row { margin-top: 22px; }

  .slide__visual { height: auto; }

  .destiny-grid {
    grid-template-columns: 1.72fr 1fr;
    grid-template-rows: 286px 128px;
  }
  .iching-grid,
  .lot-grid { height: auto; }
  .question-panel,
  .lot-panel,
  .wish-panel,
  .love-card { min-height: 430px; }
  .love-grid { height: auto; }

  .quiz-grid { grid-template-rows: 286px 128px; }
  .quiz-helper { min-height: 128px; }

  .stage__peek,
  .stage__arrow { display: none; }

  .carousel-footer { margin-top: 8px; }
}

/* ==========================================================================
   Responsive · 980 — mobile header, five chapters share the rail evenly
   ========================================================================== */
@media (max-width: 980px) {
  :root { --header-h: 82px; }

  .header-inner { grid-template-columns: 1fr auto; }
  .primary-nav { display: none; }
  .header-date,
  .header-rule,
  .header-login { display: none; }
  .header-meta { gap: 10px; }
  .menu-toggle { display: inline-flex; width: 44px; height: 44px; }
  .brand__mark { width: 48px; height: 48px; border-radius: 12px; }
  .brand__name { font-size: 24px; }
  .brand__en { font-size: 7px; }

  .hero {
    flex-direction: column;
    gap: 24px;
    padding-top: 22px;
    padding-bottom: 28px;
    min-height: 0;
  }
  .hero__quote {
    width: 100%;
    max-width: 420px;
    margin-top: 0;
    padding-left: 18px;
  }
  .hero__quote p { font-size: 16px; }

  .chapter-bar__inner { height: auto; padding-top: 8px; }
  .chapters {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
  }
  .chapter { min-width: 0; padding-bottom: 18px; }
}

/* ==========================================================================
   Responsive · 760 — phone
   The chapter rail stays pinned to the top of the screen, so any of the five
   sections is one tap away from anywhere on the page. Cards keep the title,
   one line and the main button, then a condensed version of the visual.
   ========================================================================== */
@media (max-width: 760px) {
  :root {
    --gutter: 16px;
    --slide-w: calc(100% - 24px);
    --slide-radius: 24px;
    --header-h: 68px;
  }

  /* header */
  .header-inner { height: var(--header-h); }
  .member-btn { display: none; }
  .brand { gap: 10px; }
  .brand__mark { width: 40px; height: 40px; border-radius: 11px; }
  .brand__name { font-size: 21px; }
  .brand__en { display: none; }
  .mobile-menu { left: 12px; right: 12px; }
  .mobile-menu__inner a { padding: 13px 14px; font-size: 15px; }

  /* hero */
  .hero { gap: 16px; padding-top: 8px; padding-bottom: 22px; }
  .hero__title { font-size: clamp(29px, 8.4vw, 38px); }
  .hero__sub {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 16px;
    max-width: 300px;
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.8;
  }
  .hero__sub span + span::before { content: none; }
  .hero__quote { max-width: 100%; padding-left: 14px; }
  .hero__quote p { font-size: 15px; line-height: 1.7; }
  .hero__quote cite { margin-top: 4px; font-size: 11px; }

  /* chapter rail: pinned, five equal tabs */
  .chapter-bar {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid var(--line);
    background: rgba(247, 242, 232, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  .chapter-bar__inner { padding-top: 0; }
  .chapter {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 58px;
    padding: 8px 0 10px;
    text-align: center;
  }
  .chapter::after {
    left: 50%;
    width: 22px;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
  }
  .chapter.is-active::after { transform: translateX(-50%) scaleX(1); }
  .chapter__num { font-size: 11px; line-height: 1; }
  .chapter__name,
  .chapter.is-active .chapter__name {
    font-size: 14px;
    white-space: nowrap;
  }

  /* card */
  .stage { padding-top: 14px; padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
  .slide__inner { gap: 20px; padding: 24px 18px 18px; }
  .slide__copy { padding-top: 0; }
  .kicker { gap: 12px; margin-bottom: 10px; font-size: 11px; }
  .slide__title { font-size: 42px; }
  .title-dot { width: 7px; height: 7px; margin: 5px 0 0 9px; }
  .tagline { margin-top: 10px; font-size: 17px; }
  .features { display: none; }
  .cta-row { margin-top: 20px; }
  .btn { min-width: 148px; height: 46px; font-size: 14px; }
  .btn--small { height: 46px; font-size: 14px; }

  .panel { border-radius: 20px; }
  .panel__head h3 { font-size: 15px; }
  .panel__head p { display: none; }
  .panel__meta { font-size: 11px; }
  .round-link { width: 44px; height: 44px; }

  /* 01 destiny: chart + almanac */
  .destiny-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 12px;
  }
  .destiny-grid .chart-panel,
  .destiny-grid .almanac { grid-column: 1; grid-row: auto; }
  .bazi-panel { display: none; }
  .chart-panel { height: 214px; padding: 16px 16px 12px; }
  .chart-axis { font-size: 11px; }
  .almanac {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 12px 14px;
    padding: 16px;
  }
  .almanac__date { grid-column: 1; grid-row: 1; }
  .almanac__title { grid-column: 2; grid-row: 1; width: auto; }
  .almanac__title h3 { font-size: 15px; }
  .almanac__title p { font-size: 11px; }
  .almanac .round-link { grid-column: 3; grid-row: 1; }
  .almanac__list {
    grid-column: 1 / -1;
    grid-row: 2;
    gap: 22px;
    padding: 12px 0 0;
    border-top: 1px solid rgba(255, 249, 239, 0.12);
    border-left: 0;
  }
  .almanac__list dt { font-size: 12px; }
  .almanac__list dd { font-size: 13px; }

  /* 02 iching: question card + seal strip */
  .iching-grid,
  .lot-grid,
  .love-grid { grid-template-columns: 1fr; gap: 12px; }
  .question-panel { min-height: 0; padding: 18px 18px 16px; }
  .question-panel__top { font-size: 11px; }
  .question { font-size: 17px; }
  .chips span { font-size: 11px; }
  .iching-grid .hexagram { width: 70%; gap: 11px; margin-top: 18px; }
  .hex-line { height: 8px; gap: 22px; }
  .hex-line.is-moving em { left: calc(100% + 10px); font-size: 11px; line-height: 8px; }
  .reading { margin-top: 18px; padding-top: 0; }
  .reading__head strong { font-size: 15px; }
  .reading__head span { font-size: 11px; }
  .reading__rule { margin: 10px 0 8px; }
  .reading p { font-size: 12px; }

  .wish-panel {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    height: auto;
    min-height: 0;
    padding: 14px 16px;
  }
  .dark-btn {
    width: auto;
    height: 44px;
    margin: 0;
    padding: 0 22px;
    font-size: 13px;
  }

  /* 03 lot: slip + wish strip */
  .lot-panel { min-height: 0; padding: 16px; }
  .lot-panel__top { font-size: 11px; }
  .slip-scene { padding: 14px 0 6px; }
  .slip { width: 176px; height: 214px; padding-top: 14px; }
  .slip__brand,
  .slip__foot { display: none; }
  .slip__body { gap: 14px; }
  .slip__fortune { font-size: 22px; }
  .slip__verse { font-size: 14px; }
  .wish-panel {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    column-gap: 14px;
  }
  .wish-tag { grid-row: 1 / span 2; width: 36px; height: 54px; }
  .wish-panel h3 { grid-column: 2; margin: 0; font-size: 16px; }
  .wish-panel__copy {
    grid-column: 2;
    margin: 2px 0 0;
    font-size: 12px;
    line-height: 1.5;
    text-align: left;
  }
  .wish-panel .dark-btn { grid-column: 3; grid-row: 1 / span 2; }

  /* 04 quiz: entry rows */
  .quiz-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 10px;
  }
  .quiz-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 32px;
    grid-template-areas: "m t a" "m p a";
    column-gap: 14px;
    align-items: center;
    min-height: 0;
    padding: 14px 16px;
    border-radius: 20px;
    text-align: left;
  }
  .quiz-card__num { display: none; }
  .quiz-card__medallion { grid-area: m; width: 52px; height: 52px; margin: 0; }
  .quiz-icon { width: 40px; height: 40px; }
  .quiz-card h3 { grid-area: t; align-self: end; margin: 0; font-size: 17px; }
  .quiz-card p { grid-area: p; align-self: start; margin-top: 2px; font-size: 12px; }
  .quiz-card__arrow { grid-area: a; width: 32px; height: 32px; margin: 0; }
  .quiz-helper {
    grid-column: 1;
    grid-row: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    min-height: 0;
    padding: 18px 16px 16px;
    border-radius: 20px;
  }
  .quiz-helper h3 { font-size: 16px; }

  /* 05 love: two cards side by side */
  .love-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .love-card { min-height: 0; padding: 18px 10px 16px; border-radius: 20px; }
  .love-card__num { display: none; }
  .love-card__corner { top: 14px; right: 14px; }
  .zodiac-ring { width: 104px; height: 104px; margin-top: 0; }
  .venn { width: 132px; height: 96px; margin: 4px 0; }
  .love-card h3 { margin-top: 12px; font-size: 17px; }
  .text-link { margin-top: 6px; font-size: 12px; }

  /* the pinned rail already switches sections */
  .carousel-footer { display: none; }

  .toast { font-size: 12px; }
}

/* ==========================================================================
   Responsive · 400 — narrow phones
   ========================================================================== */
@media (max-width: 400px) {
  .slide__inner { padding: 22px 16px 16px; }
  .slide__title { font-size: 39px; }
  .chapter__name,
  .chapter.is-active .chapter__name { font-size: 13.5px; letter-spacing: 0; }
  .iching-grid .hexagram { width: 66%; }
}

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

/* 暂未上线的玩法:灰色、点不动;灰态入口里只有一行「敬请期待」小标,不再加别的解释文字(与主页 .pcard.is-off 一致) */
.is-off {
  opacity: 0.45;
  pointer-events: none;
  cursor: default;
}
/* 「敬请期待」小标:灰态入口里唯一的文字提示,小、不抢名字。
   墨色 65%:落在页底色上对比度约 5.2:1;小标不能放在带 opacity 的元素里
   (功能行、灵签卡改为只降名字、图标、底色,见下),否则有效对比度只剩约 1.7:1 */
.soon-tag {
  color: color-mix(in srgb, var(--ink) 65%, transparent);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.4;
}
.feature.is-off { opacity: 1; }
.feature.is-off .feature__icon,
.feature.is-off strong { opacity: 0.45; }
.feature.is-off strong { color: color-mix(in srgb, var(--ink) 55%, transparent); }
/* 灵签示意卡:小标在卡片底部的正常排版流里,居中,不压在卡顶的「第 28 签」上 */
.lot-panel.is-off {
  opacity: 1;
  border-color: color-mix(in srgb, var(--panel-border) 45%, transparent);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--panel-a) 45%, transparent),
    color-mix(in srgb, var(--panel-b) 45%, transparent)
  );
  box-shadow: 0 16px 34px rgba(43, 26, 14, 0.036);
}
.lot-panel.is-off > :not(.soon-tag) { opacity: 0.45; }
.soon-tag--foot {
  align-self: center;
  margin-top: 8px;
}
.btn.is-off,
.dark-btn.is-off {
  background: color-mix(in srgb, var(--ink) 18%, transparent);
  color: color-mix(in srgb, var(--ink) 55%, transparent);
  box-shadow: none;
}
