:root {
  --bg: #18110d;
  --card: #2a2116;
  --surface: #3b3226;
  --gold: #c9a05e;
  --gold-light: #dfbf78;
  --paper: #d8ccba;
  --muted: #aca08e;
  --red: #d13f42;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--paper);
  background: var(--bg);
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.feature-bg {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 48%, rgba(10,6,4,.55), rgba(10,6,4,.25) 40%, rgba(10,6,4,.75)),
    linear-gradient(180deg, #271b10, var(--bg) 50%, #1e160f);
}
.feature-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.mountains {
  position: absolute;
  inset: 34% -5% 0;
  opacity: .16;
  background:
    linear-gradient(155deg, transparent 45%, #6f5336 45.2%, transparent 45.5%) 0 0/42% 60%,
    linear-gradient(205deg, transparent 45%, #6f5336 45.2%, transparent 45.5%) 100% 0/42% 60%;
}
.dust { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: rgba(201,160,94,.42); }
.d1 { left: 12%; top: 20%; }.d2 { left: 32%; top: 65%; }.d3 { left: 55%; top: 38%; }
.d4 { left: 72%; top: 72%; }.d5 { left: 85%; top: 28%; }

.feature-header {
  position: fixed;
  z-index: 20;
  top: 0;
  width: 100%;
  height: 64px;
  border-bottom: 1px solid rgba(201,160,94,.12);
  background: rgba(24,17,13,.84);
  backdrop-filter: blur(16px);
}
.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: auto;
}
.feature-brand { display: flex; align-items: center; gap: 8px; color: var(--gold-light); text-decoration: none; white-space: nowrap; }
.feature-brand svg { width: 36px; height: 40px; fill: rgba(201,160,94,.1); stroke: currentColor; stroke-width: 1.5; }
.feature-brand span { font-family: "Kaiti SC", "STKaiti", serif; font-size: 25px; letter-spacing: .12em; }
.feature-nav { display: flex; align-items: center; justify-content: center; gap: 20px; flex: 1; }
.feature-nav a { color: #c9bda9; text-decoration: none; white-space: nowrap; font-size: 14px; }
.feature-nav a:hover, .feature-nav .active { color: var(--gold); }
.feature-actions { display: flex; gap: 8px; }
.circle-action, .record-action {
  height: 38px; border: 1px solid rgba(201,160,94,.28); color: var(--gold); background: transparent; cursor: pointer;
}
.circle-action { width: 38px; display: grid; place-items: center; border-radius: 50%; }
.circle-action svg, .record-action svg, .feature-share svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.record-action { display: flex; align-items: center; gap: 7px; padding: 0 13px; border-radius: 20px; }

.feature-main {
  width: min(896px, calc(100% - 32px));
  min-height: 100vh;
  margin: auto;
  padding: 92px 0 90px;
}
.feature-title { padding: 6px 0 16px; text-align: center; }
.title-icon {
  width: 68px; height: 68px; display: grid; place-items: center; margin: 0 auto 12px;
  border: 1px solid rgba(201,160,94,.24); border-radius: 50%; color: var(--gold); background: rgba(201,160,94,.05);
}
.title-icon svg { width: 34px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.feature-title h1 { margin: 0; color: var(--gold); font-family: "Kaiti SC", "STKaiti", serif; font-size: 42px; font-weight: 400; letter-spacing: .14em; }
.feature-title p { margin: 10px 0 0; color: rgba(216,204,186,.85); font-size: 17px; }

.feature-panel {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid rgba(201,160,94,.23);
  border-radius: 12px;
  background: rgba(42,33,22,.95);
  box-shadow: 0 0 20px rgba(235,218,186,.15);
  backdrop-filter: blur(5px);
}
.feature-panel > p:first-child { margin: 0 0 14px; color: rgba(216,204,186,.86); font-size: 17px; }
.search-panel form { display: flex; gap: 10px; }
.search-panel input {
  min-width: 0; height: 52px; flex: 1; padding: 0 16px; border: 1px solid rgba(201,160,94,.25);
  border-radius: 9px; outline: none; color: var(--paper); background: var(--surface); font-size: 16px;
}
.search-panel input::placeholder { color: #9f9485; }
.search-panel input:focus { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(201,160,94,.25); }
.ritual-button {
  min-width: 180px; height: 52px; display: flex; align-items: center; justify-content: center; gap: 12px;
  border: 0; border-radius: 10px; color: white; background: var(--red); box-shadow: 0 10px 24px rgba(209,63,66,.2); cursor: pointer;
  font-size: 17px; font-weight: 600; letter-spacing: .1em;
}
.ritual-button svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 2; }
.form-error { min-height: 0; margin: 8px 0 0 !important; color: #e58982 !important; font-size: 14px !important; }
.feature-panel h2 { margin: 0 0 16px; color: var(--gold); font-family: "Kaiti SC", "STKaiti", serif; font-size: 24px; font-weight: 400; }
.category-list { display: flex; flex-wrap: wrap; gap: 9px; }
.category-list button {
  padding: 8px 14px; border: 1px solid rgba(201,160,94,.25); border-radius: 22px;
  color: rgba(216,204,186,.86); background: transparent; cursor: pointer; font-size: 15px;
}
.category-list button:hover, .category-list button.active { border-color: rgba(201,160,94,.65); color: var(--gold); background: rgba(201,160,94,.12); }
.category-results { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 14px; }
.category-results:empty { display: none; }
.category-results button {
  display: flex; justify-content: space-between; padding: 11px 13px; border: 1px solid rgba(201,160,94,.16);
  border-radius: 8px; color: var(--paper); background: rgba(59,50,38,.45); cursor: pointer;
}
.category-results button span { color: var(--gold); }
.popular-panel h2 { display: flex; align-items: center; gap: 8px; }
.popular-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.popular-grid button {
  min-height: 112px; padding: 14px; border: 1px solid rgba(201,160,94,.23); border-radius: 9px;
  color: var(--paper); text-align: left; background: rgba(59,50,38,.34); cursor: pointer;
}
.popular-grid b { color: var(--gold); font-family: "Kaiti SC", "STKaiti", serif; font-size: 18px; font-weight: 400; }
.popular-grid span { float: right; color: var(--gold-light); font-size: 13px; }
.popular-grid small { display: block; clear: both; margin-top: 7px; color: #a99c89; line-height: 1.55; }
.interpretation .result-head { display: flex; align-items: baseline; justify-content: space-between; }
.interpretation .result-head > span { color: #928575; font-size: 13px; }
.interpretation article { padding: 18px; border: 2px solid rgba(201,160,94,.35); border-radius: 12px; background: rgba(201,160,94,.05); }
.interpretation article > div { display: flex; align-items: baseline; justify-content: space-between; }
.interpretation h3 { margin: 0; color: var(--gold); font-family: "Kaiti SC", "STKaiti", serif; font-size: 25px; font-weight: 400; }
.interpretation article b { color: var(--gold-light); }
.interpretation article p { line-height: 1.8; }
.ancient { color: #aa9d8b; font-size: 14px; font-style: italic; }
.advice { color: #e28a82; }

.feature-share {
  position: fixed; z-index: 18; right: 18px; bottom: 18px; width: 56px; height: 56px; display: grid; place-items: center;
  border: 1px solid rgba(201,160,94,.5); border-radius: 50%; color: var(--gold); background: linear-gradient(135deg, rgba(201,160,94,.3), rgba(209,63,66,.2));
  box-shadow: 0 8px 25px rgba(0,0,0,.3); cursor: pointer;
}
.bottom-nav { display: none; }
.dream-dialog { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 20px; }
.dream-dialog[hidden] { display: none; }
.dialog-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.72); }
.dream-dialog article {
  position: relative; width: min(460px,100%); padding: 30px; border: 2px solid rgba(201,160,94,.36);
  border-radius: 16px; background: var(--card); box-shadow: 0 24px 70px rgba(0,0,0,.5);
}
.dialog-close { position: absolute; top: 9px; right: 12px; border: 0; color: var(--muted); background: transparent; font-size: 25px; cursor: pointer; }
.dream-dialog h3 { margin: 0; color: var(--gold); font-family: "Kaiti SC","STKaiti",serif; font-size: 30px; font-weight: 400; }
.dream-dialog article > b { color: var(--gold-light); }

.tool-intro { text-align: center; }
.tool-form { display: grid; gap: 14px; }
.tool-form label { display: grid; gap: 7px; color: rgba(216,204,186,.86); }
.tool-form input, .tool-form select, .tool-form textarea {
  width: 100%; min-height: 50px; padding: 11px 14px; border: 1px solid rgba(201,160,94,.25);
  border-radius: 9px; outline: none; color: var(--paper); background: var(--surface);
}
.tool-form textarea { min-height: 100px; resize: vertical; }
.tool-form input:focus, .tool-form select:focus, .tool-form textarea:focus { border-color: var(--gold); }
.tool-options { display: flex; flex-wrap: wrap; gap: 9px; }
.tool-options button {
  padding: 8px 14px; border: 1px solid rgba(201,160,94,.25); border-radius: 22px;
  color: rgba(216,204,186,.86); background: transparent; cursor: pointer;
}
.tool-options button.active { border-color: var(--gold); color: var(--gold); background: rgba(201,160,94,.12); }
.tool-result { line-height: 1.9; }
.tool-result h2 { font-size: 28px; }
.tool-result .result-seal {
  width: 52px; height: 52px; display: grid; place-items: center; float: right;
  border: 1px solid rgba(209,63,66,.5); border-radius: 50%; color: #e47a72; font-family: "Kaiti SC","STKaiti",serif;
}

/* Shared ritual pages */
.ritual-main { width: min(1120px, calc(100% - 32px)); }
.ritual-title { padding-top: 3px; }
.ritual-title small { display: block; margin-top: 10px; color: var(--gold); font-size: 13px; }
.seo-fallback {
  width: min(860px, calc(100% - 36px));
  margin: auto;
  padding: 120px 0 90px;
  color: var(--paper);
}
.seo-fallback h1 {
  margin: 0 0 18px;
  color: var(--gold);
  font-family: "Kaiti SC", "STKaiti", serif;
  font-size: clamp(36px, 6vw, 58px);
  font-weight: 400;
}
.seo-fallback p, .seo-fallback li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}
.stat-pill {
  width: max-content; margin: 0 auto 20px; padding: 10px 24px; border: 1px solid rgba(201,160,94,.32);
  border-radius: 28px; color: #a99c88; background: rgba(42,33,22,.65);
}
.stat-pill b { color: var(--gold); font-weight: 400; }
.ritual-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.ritual-field { display: grid; gap: 8px; color: #b8aa96; }
.ritual-field.wide, .ritual-form > .wide { grid-column: 1 / -1; }
.ritual-field input, .ritual-field select, .ritual-field textarea,
.question-panel input, .palm-form select {
  width: 100%; min-width: 0; min-height: 54px; padding: 12px 16px; border: 1px solid rgba(201,160,94,.25);
  border-radius: 9px; outline: none; color: var(--paper); background: var(--surface);
}
.ritual-field textarea { min-height: 96px; resize: vertical; }
.ritual-field input:focus, .ritual-field select:focus, .ritual-field textarea:focus, .question-panel input:focus { border-color: var(--gold); }
.ritual-form fieldset { min-width: 0; padding: 0; border: 0; }
.ritual-form legend, .palm-form > form > label { margin-bottom: 9px; color: #b8aa96; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice {
  min-width: 100px; padding: 10px 16px; border: 1px solid rgba(201,160,94,.25); border-radius: 9px;
  color: #c1b4a1; background: rgba(59,50,38,.42); cursor: pointer;
}
.choice i, .choice small { display: block; font-style: normal; }
.choice i { margin-bottom: 4px; font-size: 25px; }
.choice small { margin-top: 3px; color: #8d8171; font-size: 11px; }
.choice.active { border-color: var(--gold); color: var(--gold-light); background: rgba(201,160,94,.13); box-shadow: inset 0 0 15px rgba(201,160,94,.08); }
.lamp-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lamp-choices .choice { min-width: 0; min-height: 132px; display: grid; align-content: center; justify-items: start; text-align: left; }
.lamp-choices .choice i { color: #907a50; font-size: 34px; }
.lamp-art { display:inline-block; width:58px; height:58px; vertical-align:middle; }
.lamp-choices .choice i svg { display:block; width:64px; height:64px; }
.lamp-item { display:inline-flex; align-items:center; gap:.12em; }
.lamp-item .lamp-art { width:36px; height:36px; }
.lamp-choices .choice.active i { color: #d63f42; }
.lamp-choices .choice small { font-size: 13px; }
.duration-choices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.duration-choices .choice { min-width: 0; min-height: 105px; display: grid; place-content: center; gap: 9px; }
.duration-choices .choice b { color: #cbbca7; font-family: "Kaiti SC","STKaiti",serif; font-size: 19px; font-weight: 400; }
.duration-choices .choice strong { color: #d43f42; font-size: 26px; font-weight: 400; }
.duration-choices .choice.active { box-shadow: 0 8px 25px rgba(201,160,94,.22), inset 0 0 18px rgba(201,160,94,.08); }
.centered-button { margin: 4px auto 0; }
.panel-note { color: #928675; font-size: 13px; }
.light-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.light-grid article { display: grid; place-items: center; padding: 20px 14px; border: 1px solid rgba(201,160,94,.2); border-radius: 12px; text-align: center; background: rgba(59,50,38,.35); }
.light-grid article span { font-size: 38px; filter: drop-shadow(0 0 12px rgba(222,174,88,.35)); }
.light-grid article b { margin: 8px 0 4px; color: var(--gold); font-weight: 400; }
.light-grid article small { color: #968a79; line-height: 1.5; }
.new-light { animation: light-in .8s ease both; }

.date-switcher { display: grid; grid-template-columns: 130px 1fr 130px; align-items: center; text-align: center; }
.date-switcher button, .week-strip button, .outline-button {
  padding: 10px 14px; border: 1px solid rgba(201,160,94,.27); border-radius: 22px; color: var(--gold);
  background: transparent; cursor: pointer;
}
.date-switcher h2 { margin: 0; font-size: 30px; }
.date-switcher p { margin: 5px 0 0; color: #9d917f; }
.almanac-summary { display: grid; grid-template-columns: 1fr 120px 1fr; align-items: center; gap: 20px; margin: 25px 0; }
.almanac-summary > div:not(.day-seal) { min-height: 112px; display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 14px; padding: 18px; border-radius: 12px; background: rgba(59,50,38,.42); }
.almanac-summary b { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #ad3939; font-size: 22px; }
.almanac-summary .ji b { background: #425b48; }
.almanac-summary span { line-height: 1.8; }
.day-seal { width: 104px; height: 104px; display: grid; place-content: center; justify-self: center; border: 1px solid rgba(201,160,94,.45); border-radius: 50%; text-align: center; background: rgba(201,160,94,.09); }
.day-seal strong { color: var(--gold); font-size: 23px; font-weight: 400; }
.day-seal small { color: #8c806e; }
.almanac-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.almanac-grid article { min-height: 82px; display: grid; align-content: center; gap: 6px; padding: 13px; border: 1px solid rgba(201,160,94,.16); border-radius: 9px; background: rgba(59,50,38,.25); }
.almanac-grid small { color: #8d8171; }.almanac-grid b { color: #c8baa5; font-size: 14px; font-weight: 400; }
.hour-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; }
.hour-grid article { display: grid; place-items: center; gap: 4px; padding: 10px 3px; border: 1px solid rgba(201,160,94,.14); border-radius: 8px; background: rgba(59,50,38,.32); }
.hour-grid small { color: #817665; font-size: 10px; }.hour-grid span { color: #7fc094; font-size: 12px; }.hour-grid .bad span { color: #da7b74; }
.week-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.week-strip button { display: grid; gap: 4px; border-radius: 9px; color: #a99d8b; }.week-strip button.active { color: var(--gold); background: rgba(201,160,94,.12); }.week-strip span { font-size: 11px; }

.masters-panel { margin-left: auto; margin-right: auto; }
.masters-panel > p { margin: 0 0 14px; color: #b8ab98; font-size: 17px; }
.master-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.master-card { display: grid; grid-template-columns: 44px 1fr; padding: 18px; border: 1px solid rgba(201,160,94,.22); border-radius: 13px; color: #b4a794; text-align: left; background: rgba(59,50,38,.3); cursor: pointer; }
.master-card > span { grid-row: 1 / 3; font-size: 30px; }.master-card b { color: var(--gold); font-size: 19px; font-weight: 400; }.master-card small { color: #8d8171; }
.master-card strong, .master-card em { grid-column: 1 / -1; font-style: normal; }.master-card strong { margin-top: 13px; color: #c2a86f; font-weight: 400; }.master-card em { margin-top: 4px; color: #958977; font-size: 12px; line-height: 1.5; }
.master-card.active { border-color: rgba(201,160,94,.7); background: rgba(201,160,94,.09); box-shadow: 0 0 22px rgba(222,193,137,.22); }
.question-panel { width: min(830px, 100%); margin-left: auto; margin-right: auto; }
.question-panel form { display: grid; gap: 18px; }.question-panel label { display: grid; gap: 14px; text-align: center; color: #b8ab98; font-size: 17px; }
.fortune-result { display: grid; grid-template-columns: 180px 1fr; gap: 30px; }
.fortune-stick { min-height: 310px; display: grid; align-content: center; justify-items: center; padding: 20px; border: 2px solid rgba(201,160,94,.38); border-radius: 70px 70px 12px 12px; background: linear-gradient(180deg, rgba(201,160,94,.14), rgba(119,42,34,.25)); box-shadow: inset 0 0 28px rgba(201,160,94,.16); }
.fortune-stick small { color: #978a77; }.fortune-stick strong { color: var(--gold); font-size: 32px; font-weight: 400; writing-mode: vertical-rl; letter-spacing: .2em; }.fortune-stick span { margin-top: 12px; color: #e68c82; }
.fortune-copy h2 { font-size: 30px; }.fortune-copy blockquote, .hexagram-reading blockquote { margin: 12px 0; padding: 15px; border-left: 3px solid var(--gold); color: #c9bca8; background: rgba(59,50,38,.3); line-height: 1.9; }
.fortune-copy h3, .reading-grid h3, .hexagram-reading h3 { color: var(--gold); font-weight: 400; }.fortune-copy p { line-height: 1.8; }.asked { color: #918574; }

.segmented { display: grid; grid-template-columns: repeat(2, 1fr); overflow: hidden; border: 1px solid rgba(201,160,94,.25); border-radius: 10px; }
.segmented button { min-height: 52px; border: 0; color: #b8ab98; background: var(--surface); cursor: pointer; }
.segmented button.active { color: var(--gold); background: rgba(201,160,94,.2); }
.birth-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.result-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.result-heading small { color: #928675; }.result-heading h2 { margin: 4px 0 0; font-size: 30px; }.result-heading > span { width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid rgba(209,63,66,.55); border-radius: 50%; color: #df7770; font-size: 24px; }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pillars article { display: grid; place-items: center; gap: 6px; padding: 16px; border: 1px solid rgba(201,160,94,.24); border-radius: 10px; background: rgba(59,50,38,.34); }
.pillars b { color: var(--gold); font-size: 26px; font-weight: 400; }.pillars small, .pillars span { color: #8e8271; }
.reading-grid, .hexagram-reading { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }
.reading-grid article, .hexagram-reading article { padding: 17px; border: 1px solid rgba(201,160,94,.17); border-radius: 10px; background: rgba(59,50,38,.28); }
.reading-grid p, .hexagram-reading p { margin-bottom: 0; color: #ad9f8b; line-height: 1.8; }
.element-bars { display: grid; gap: 8px; }.element-bars span { position: relative; overflow: hidden; padding: 6px 10px; border-radius: 6px; background: rgba(255,255,255,.04); }.element-bars span::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: rgba(201,160,94,.15); }

.palm-form { width: min(830px, 100%); margin-left: auto; margin-right: auto; }
.palm-form form { display: grid; gap: 14px; }
.upload-zone { min-height: 250px; display: grid !important; place-items: center; align-content: center; gap: 7px; overflow: hidden; padding: 20px; border: 1px dashed rgba(201,160,94,.45); border-radius: 12px; color: var(--gold) !important; background: rgba(59,50,38,.28); cursor: pointer; }
.upload-zone input { display: none; }.upload-zone > span { font-size: 50px; }.upload-zone small { color: #8e8272; }
.upload-zone img { display: none; max-width: 100%; max-height: 360px; border-radius: 10px; }.upload-zone img.visible { display: block; }
.reference-details { overflow: hidden; border: 1px solid rgba(201,160,94,.32); border-radius: 18px; background: rgba(31,24,16,.42); }
.reference-details summary { position: relative; padding: 20px 24px; color: var(--gold); cursor: pointer; font-family: "Kaiti SC","STKaiti",serif; font-size: 21px; list-style: none; }
.reference-details summary::-webkit-details-marker { display: none; }
.reference-details summary::after { content: "⌄"; position: absolute; right: 24px; top: 16px; color: #a98850; font-family: serif; font-size: 28px; transition: transform .25s ease; }
.reference-details[open] summary::after { transform: rotate(180deg); }
.reference-details summary span { margin-right: 7px; }
.palm-reference { display: grid; justify-items: center; gap: 12px; margin: 0; padding: 24px 28px 18px; border-top: 1px solid rgba(201,160,94,.2); background: radial-gradient(circle at 50% 40%, rgba(201,160,94,.08), transparent 64%); }
.palm-reference img { display: block; width: min(100%, 1000px); height: auto; border-radius: 20px; box-shadow: 0 18px 45px rgba(0,0,0,.28), 0 0 0 1px rgba(201,160,94,.08); }
.palm-reference figcaption { color: #908573; text-align: center; font-size: 15px; letter-spacing: .04em; }

.naming-benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; width: min(760px, 100%); margin: 14px auto 30px; }
.naming-blessing { margin: -8px 0 14px; color: #a99d8b; text-align: center; }
.naming-benefits span { padding: 12px; border: 1px solid rgba(201,160,94,.2); border-radius: 9px; color: #bca574; background: rgba(59,50,38,.3); font-size: 13px; }
.naming-form { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.name-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.name-grid article { padding: 18px; border: 1px solid rgba(201,160,94,.2); border-radius: 12px; background: rgba(59,50,38,.32); }
.name-grid article > div:first-child { display: flex; align-items: center; gap: 10px; }.name-grid article > div > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: var(--gold); background: rgba(201,160,94,.12); }
.name-grid h3 { flex: 1; margin: 0; color: var(--gold); font-size: 27px; font-weight: 400; }.name-grid b { color: #df7b73; }.name-grid p { color: #b9ab98; }.name-grid small { color: #8d8171; }
.score-row { display: grid; gap: 6px; margin-top: 14px; }.score-row i { position: relative; overflow: hidden; padding: 5px 8px; border-radius: 5px; color: #a99c89; background: rgba(0,0,0,.14); font-size: 11px; font-style: normal; }.score-row i::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--score); background: rgba(201,160,94,.12); }

.hexagram-stage { text-align: center; }.coin-bowl { width: 100px; height: 100px; display: grid; place-items: center; margin: auto; border: 1px solid rgba(201,160,94,.4); border-radius: 50%; color: var(--gold); font-size: 50px; animation: bowl-shake .6s ease-in-out infinite; }
.line-stack { width: 170px; display: grid; gap: 9px; margin: 18px auto; }.line-stack > span { display: flex; gap: 18px; height: 12px; animation: line-in .35s ease both; }.line-stack i { display: block; height: 100%; flex: 1; background: var(--gold); box-shadow: 0 0 8px rgba(201,160,94,.3); }.line-stack .moving i { background: #d85c55; }
.outline-button { display: block; margin: 18px auto 0; }.toast { position: fixed; z-index: 60; left: 50%; bottom: 28px; padding: 11px 18px; border: 1px solid rgba(201,160,94,.4); border-radius: 24px; color: var(--paper); background: rgba(42,33,22,.96); opacity: 0; transform: translate(-50%,20px); pointer-events: none; transition: .25s; }.toast.show { opacity: 1; transform: translate(-50%,0); }

/* Profile */
.profile-main { width: min(960px, calc(100% - 32px)); padding-top: 92px; }
.profile-identity { display: grid; gap: 20px; }
.lucky-card { padding: 22px; border: 2px dashed rgba(201,160,94,.38); border-radius: 17px; text-align: center; background: linear-gradient(135deg, rgba(201,160,94,.08), rgba(209,63,66,.05), rgba(201,160,94,.08)); }
.lucky-card p { margin: 0; color: var(--gold); letter-spacing: .16em; }
.lucky-card > div { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 10px 0; }
.lucky-card strong { color: var(--gold); font-family: "Kaiti SC","STKaiti",serif; font-size: 46px; font-weight: 400; letter-spacing: .12em; text-shadow: 0 0 15px rgba(201,160,94,.25); }
.lucky-card > div button { width: 36px; height: 36px; border: 1px solid rgba(201,160,94,.4); border-radius: 50%; color: var(--gold); background: transparent; cursor: pointer; }
.lucky-card small { display: block; color: #9e927f; }
.text-button { padding: 6px; border: 0; color: var(--gold); background: transparent; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.profile-summary { display: flex; align-items: center; gap: 16px; }
.avatar { width: 58px; height: 58px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(201,160,94,.35); border-radius: 50%; color: var(--gold); background: rgba(201,160,94,.1); font-size: 28px; }
.profile-name { flex: 1; }.profile-name h1 { margin: 0; color: var(--paper); font-size: 23px; font-weight: 400; }.profile-name p { margin: 4px 0; color: #a99c89; }.profile-name small { color: #786e61; }
.merit { display: grid; justify-items: end; }.merit small { color: #9a8e7c; }.merit strong { color: var(--gold); font-size: 30px; font-weight: 400; }.merit span { padding: 4px 11px; border: 1px solid rgba(201,160,94,.3); border-radius: 16px; color: var(--gold); background: rgba(201,160,94,.1); font-size: 12px; }
.profile-status { margin: 0; padding: 12px; border: 1px solid rgba(201,160,94,.14); border-radius: 9px; color: #aa9d8b; background: rgba(59,50,38,.3); }.profile-status b { color: var(--gold); }
.phone-card { display: flex; gap: 14px; padding: 17px; border: 2px solid rgba(201,160,94,.34); border-radius: 13px; background: linear-gradient(135deg, rgba(209,63,66,.08), rgba(201,160,94,.08)); }
.phone-card > span { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(201,160,94,.35); border-radius: 50%; color: var(--gold); font-size: 20px; }
.phone-card h2 { margin: 0; font-size: 18px; }.phone-card p { color: #a99d8b; font-size: 13px; line-height: 1.7; }
.small-button { width: auto; min-width: 150px; height: 42px; padding: 0 18px; font-size: 14px; }
.phone-form { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; padding: 18px; border: 1px solid rgba(201,160,94,.25); border-radius: 12px; background: rgba(59,50,38,.3); }
.phone-form label { display: grid; gap: 7px; color: #a99d8b; font-size: 13px; }.phone-form input, .phone-form select, .restore-dialog input { min-width: 0; height: 46px; padding: 0 12px; border: 1px solid rgba(201,160,94,.24); border-radius: 8px; outline: 0; color: var(--paper); background: var(--surface); }
.phone-form p { grid-column: 1 / -1; margin: 0; color: #e47d76; }.phone-form .ritual-button { margin: 0; }
.profile-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }.profile-section-head h2 { margin: 0; }.profile-section-head h2 span { padding: 2px 8px; border: 1px solid rgba(201,160,94,.28); border-radius: 13px; font-family: serif; font-size: 12px; }
.clear-record { border: 0; color: #817568; background: transparent; cursor: pointer; }.clear-record:hover { color: #dc7069; }
.profile-lamps > div:last-child { margin-top: 15px; }
.profile-lamp { display: flex; align-items: center; gap: 16px; padding: 18px; border: 1px solid rgba(201,160,94,.2); border-radius: 12px; background: rgba(59,50,38,.3); }.profile-lamp > span { font-size: 44px; filter: drop-shadow(0 0 12px rgba(201,160,94,.3)); }.profile-lamp div { display: grid; gap: 5px; }.profile-lamp b { color: var(--gold); font-weight: 400; }.profile-lamp small { color: #918574; }
.profile-record-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }.profile-record-grid .feature-panel { margin-top: 0; }.record-box h2 { font-size: 20px; }.record-box .profile-section-head > span { color: #867a6b; font-size: 12px; }
.profile-empty { padding: 24px 10px; border: 1px dashed rgba(201,160,94,.18); border-radius: 10px; text-align: center; }.profile-empty p { color: #8e8271; }.profile-empty a { display: inline-block; padding: 8px 15px; border: 1px solid rgba(201,160,94,.3); border-radius: 20px; color: var(--gold); text-decoration: none; }
.record-list { display: grid; gap: 8px; margin-top: 14px; }.record-list article { display: grid; gap: 4px; padding: 11px; border: 1px solid rgba(201,160,94,.13); border-radius: 8px; background: rgba(59,50,38,.3); }.record-list b { overflow: hidden; color: #c5b7a3; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }.record-list small { color: #776d60; }
.record-clear-text { display: block; margin: 10px auto 0; font-size: 12px; }
.profile-orders > div:last-child { display: grid; gap: 9px; margin-top: 15px; }
.profile-order { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 14px; border: 1px solid rgba(201,160,94,.16); border-radius: 10px; background: rgba(59,50,38,.3); }
.profile-order div { min-width: 0; display: grid; gap: 4px; }.profile-order b { color: #c7b9a5; font-weight: 400; }.profile-order small { overflow: hidden; color: #776d60; text-overflow: ellipsis; white-space: nowrap; }.profile-order strong { color: var(--gold); font-weight: 400; }
.order-status { padding: 5px 10px; border-radius: 999px; color: var(--gold); background: rgba(201,160,94,.12); font-size: 12px; white-space: nowrap; }.status-paid { color: #79d89c; background: rgba(62,174,103,.14); }.status-rejected, .status-expired { color: #e58b84; background: rgba(209,63,66,.14); }
.merit-records > div { display: grid; gap: 8px; }.merit-records article { display: flex; align-items: center; justify-content: space-between; padding: 12px; border: 1px solid rgba(201,160,94,.13); border-radius: 8px; background: rgba(59,50,38,.3); }.merit-records article div { display: grid; gap: 3px; }.merit-records article b { color: #c2b49f; font-weight: 400; }.merit-records article small { color: #776d60; }.merit-records article > span { color: var(--gold); }
.restore-dialog { width: min(420px, calc(100% - 32px)); padding: 28px; border: 1px solid rgba(201,160,94,.4); border-radius: 15px; color: var(--paper); background: var(--card); box-shadow: 0 25px 80px rgba(0,0,0,.6); }.restore-dialog::backdrop { background: rgba(0,0,0,.7); }.restore-dialog > button:first-child { position: absolute; top: 8px; right: 12px; border: 0; color: #998c7a; background: transparent; font-size: 26px; cursor: pointer; }.restore-dialog h2 { color: var(--gold); }.restore-dialog input { width: 100%; margin: 12px 0; }.restore-dialog .ritual-button { width: 100%; min-width: 0; }.restore-dialog small { display: block; margin-top: 10px; color: #d4847d; text-align: center; }
.payment-dialog { width: min(520px, calc(100% - 28px)); max-height: calc(100vh - 30px); overflow: auto; padding: 28px; border: 1px solid rgba(201,160,94,.45); border-radius: 17px; color: var(--paper); background: #241b13; box-shadow: 0 28px 90px rgba(0,0,0,.7); }.payment-dialog::backdrop { background: rgba(0,0,0,.76); backdrop-filter: blur(4px); }
.payment-close { position: absolute; top: 8px; right: 12px; border: 0; color: #9f9280; background: transparent; font-size: 27px; cursor: pointer; }
.payment-head { text-align: center; }.payment-head small { color: var(--gold); letter-spacing: .15em; }.payment-head h2 { margin: 7px 0; color: var(--gold); font-family: "Kaiti SC","STKaiti",serif; font-size: 28px; font-weight: 400; }.payment-head p { margin: 0; color: #9f9382; font-size: 13px; }
.payment-price { display: flex; align-items: center; justify-content: space-between; margin: 20px 0 14px; padding: 15px; border: 1px solid rgba(201,160,94,.24); border-radius: 10px; background: rgba(59,50,38,.5); }.payment-price span { color: #a99c89; }.payment-price strong { color: #f3c95f; font-size: 29px; }
.payment-channels { display: grid; grid-template-columns: repeat(2,1fr); gap: 9px; }.payment-channels button { height: 42px; border: 1px solid rgba(201,160,94,.22); border-radius: 9px; color: #ad9f8d; background: rgba(59,50,38,.3); cursor: pointer; }.payment-channels button.active { border-color: var(--gold); color: var(--gold); background: rgba(201,160,94,.12); }
.payment-qr { display: grid; justify-items: center; gap: 10px; margin: 17px 0; }.payment-qr img { width: 210px; height: 210px; padding: 8px; border-radius: 10px; background: #fff; object-fit: contain; }.payment-qr p { margin: 0; color: #948876; text-align: center; font-size: 12px; line-height: 1.6; }
.payment-order { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 8px; color: #8f8373; background: rgba(0,0,0,.15); font-size: 12px; }.payment-order code { overflow: hidden; color: #bcae9b; text-overflow: ellipsis; }
.payment-submit { width: 100%; margin-top: 15px; }.payment-status { min-height: 20px; margin: 10px 0 0; color: #e78c84; text-align: center; font-size: 13px; }
.price-hint { margin: 8px 0 0; color: var(--gold); text-align: center; font-size: 13px; }
.bazi-unlock { margin-top: 18px; padding: 22px; border: 1px solid rgba(201,160,94,.3); border-radius: 13px; text-align: center; background: linear-gradient(135deg, rgba(201,160,94,.09), rgba(209,63,66,.05)); }
.bazi-unlock h3 { margin: 0; color: var(--gold); font-size: 24px; }.bazi-unlock p { color: #a99d8b; }.bazi-unlock small { display: block; margin-top: 8px; color: #827666; }
.capture-guide { padding: 15px 18px; border: 1px solid rgba(201,160,94,.18); border-radius: 10px; background: rgba(59,50,38,.28); }.capture-guide h3 { margin: 0 0 7px; color: var(--gold); }.capture-guide p { margin: 0; color: #a99d8b; line-height: 1.8; }
.palm-upload-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }.palm-upload-actions label { min-height: 58px; display: grid; place-content: center; margin: 0; text-align: center; cursor: pointer; }.palm-upload-actions small { display: block; margin-top: 2px; font-size: 11px; }
.temple-main { width: min(820px, calc(100% - 40px)); }.temple-panel { text-align: center; }.temple-progress { display: flex; align-items: center; justify-content: space-between; color: #a99d8b; }.temple-progress strong { color: var(--gold); font-size: 24px; }
.incense-burner { position: relative; width: 260px; height: 250px; display: grid; place-items: end center; margin: 24px auto; }.incense-burner > span { width: 210px; height: 92px; display: grid; place-items: center; border: 2px solid rgba(201,160,94,.35); border-radius: 20px 20px 70px 70px; color: var(--gold); background: linear-gradient(#5b291d,#26150f); font-size: 36px; box-shadow: 0 18px 35px rgba(0,0,0,.35); }
.incense-sticks { position: absolute; z-index: -1; bottom: 75px; left: 50%; width: 180px; height: 170px; transform: translateX(-50%); }.incense-sticks i { position: absolute; bottom: 0; left: calc(34px + var(--i) * 17px); width: 4px; height: 135px; border-radius: 4px; background: linear-gradient(#d44b43 0 8px,#b79254 8px); }.incense-sticks i::before { content: ""; position: absolute; top: -8px; left: -5px; width: 14px; height: 14px; border-radius: 50%; background: rgba(218,172,90,.7); filter: blur(5px); animation: halo-pulse 2s infinite; }
.temple-stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin: 22px 0; }.temple-stats article { padding: 16px; border: 1px solid rgba(201,160,94,.18); border-radius: 10px; background: rgba(59,50,38,.3); }.temple-stats small { display: block; color: #8e8271; }.temple-stats b { color: var(--gold); font-size: 22px; }
.temple-merit { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 22px 0 4px; }.temple-merit small { color: #998c79; }.temple-merit strong { color: var(--gold); font-size: 34px; }

@keyframes light-in { from { transform: scale(.7); opacity: 0; } }
@keyframes line-in { from { transform: scaleX(.2); opacity: 0; } }
@keyframes bowl-shake { 25% { transform: rotate(-4deg); } 75% { transform: rotate(4deg); } }

.meditation-main { padding-bottom: 120px; }
.meditation-title { padding-top: 10px; }
.meditation-lotus {
  position: relative; width: 100px; height: 100px; display: grid; place-items: center; margin: 0 auto 12px;
  border: 1px solid rgba(201,160,94,.4); border-radius: 50%; color: var(--gold); background: rgba(201,160,94,.1);
}
.meditation-lotus::before {
  content: ""; position: absolute; inset: 4px; border-radius: 50%;
  background: rgba(201,160,94,.15); filter: blur(15px); animation: halo-pulse 4s ease-in-out infinite;
}
.meditation-lotus span { position: relative; font-size: 48px; }
.meditation-title blockquote {
  width: min(450px, 100%); margin: 20px auto 0; padding: 12px 18px;
  border: 1px solid rgba(201,160,94,.3); border-radius: 12px; color: var(--paper); background: rgba(59,50,38,.42);
  font-family: "Kaiti SC","STKaiti",serif; font-size: 17px;
}
.meditation-title blockquote small { display: block; margin-top: 4px; color: #928675; font-family: inherit; font-size: 12px; }
.library-note { margin: -8px 0 18px; color: #958977; font-size: 13px; }
.track-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.track-card {
  min-height: 116px; display: flex; align-items: center; gap: 16px; padding: 18px;
  border: 1px solid rgba(201,160,94,.2); border-radius: 14px; color: var(--paper);
  text-align: left; background: rgba(59,50,38,.45); cursor: pointer; transition: border-color .2s, background .2s, transform .2s;
}
.track-card:hover { transform: translateY(-2px); border-color: rgba(201,160,94,.48); }
.track-card.active { border-color: rgba(201,160,94,.7); background: rgba(201,160,94,.1); }
.track-icon {
  width: 62px; height: 62px; display: grid; place-items: center; flex: 0 0 auto;
  border: 1px solid color-mix(in srgb, var(--track-color) 50%, transparent); border-radius: 50%;
  background: rgba(59,50,38,.72); font-size: 30px;
}
.track-card.active .track-icon { animation: spin-slow 18s linear infinite; box-shadow: 0 0 20px rgba(201,160,94,.28); }
.track-copy { min-width: 0; display: grid; flex: 1; }
.track-copy b { overflow: hidden; color: var(--gold); font-family: "Kaiti SC","STKaiti",serif; font-size: 21px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.track-copy > span { overflow: hidden; color: #baae9b; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.track-copy small { color: #827767; font-size: 12px; }
.track-play, .player-main-button, .mute-button {
  display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(201,160,94,.38);
  border-radius: 50%; color: var(--gold); background: transparent;
}
.track-play { width: 52px; height: 52px; font-size: 20px; }
.player-row { display: flex; align-items: center; gap: 16px; }
.player-art {
  width: 80px; height: 80px; display: grid; place-items: center; flex: 0 0 auto;
  border: 2px solid rgba(201,160,94,.4); border-radius: 50%; background: linear-gradient(135deg, rgba(201,160,94,.15), rgba(209,63,66,.1));
  box-shadow: 0 0 22px rgba(201,160,94,.22); font-size: 38px; animation: spin-slow 18s linear infinite;
}
.player-copy { min-width: 0; flex: 1; }
.player-copy h2 { overflow: hidden; margin: 0; font-size: 24px; text-overflow: ellipsis; white-space: nowrap; }
.player-copy p { overflow: hidden; margin: 2px 0; color: #b7aa97; text-overflow: ellipsis; white-space: nowrap; }
.player-copy small { color: #887c6d; }
.player-main-button { width: 58px; height: 58px; background: rgba(201,160,94,.1); font-size: 22px; cursor: pointer; }
.mute-button { width: 42px; height: 42px; font-size: 18px; cursor: pointer; }
.progress-track {
  width: 100%; height: 10px; display: block; padding: 0; margin: 18px 0 12px; overflow: hidden;
  border: 0; border-radius: 10px; background: rgba(59,50,38,.9); cursor: pointer;
}
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--red)); }
.volume-row { display: flex; align-items: center; gap: 10px; color: #8f8373; font-size: 13px; }
.volume-row input { flex: 1; accent-color: var(--gold); }
.volume-row output { width: 30px; font-variant-numeric: tabular-nums; }
.merit-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; color: #887c6d; font-size: 13px; }
.merit-row p { margin: 0; }
.merit-row button {
  padding: 7px 15px; border: 1px solid rgba(209,63,66,.45); border-radius: 20px;
  color: #e98a83; background: rgba(209,63,66,.1); cursor: pointer;
}
.finish-message { margin: 12px 0 0; padding: 0; text-align: center; }
.finish-message.short { padding: 11px; border: 1px solid rgba(216,204,186,.15); border-radius: 8px; color: #9d9180; background: rgba(59,50,38,.4); }
.finish-message.complete { padding: 11px; border: 1px solid rgba(72,187,120,.35); border-radius: 8px; color: #8be0aa; background: rgba(45,125,75,.15); }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.guide-grid article { padding: 18px; border: 1px solid rgba(201,160,94,.2); border-radius: 13px; background: rgba(59,50,38,.42); }
.guide-grid h3 { margin: 0; color: var(--gold); font-family: "Kaiti SC","STKaiti",serif; font-size: 21px; font-weight: 400; }
.guide-grid p { margin: 3px 0 9px; color: #a99d8a; font-size: 13px; }
.guide-grid > article > span { padding: 4px 9px; border: 1px solid rgba(201,160,94,.28); border-radius: 14px; color: var(--gold); font-size: 12px; }
.guide-grid ol { padding-left: 20px; color: #aa9e8c; font-size: 13px; line-height: 1.8; }
.lotus-celebration { position: fixed; z-index: 50; inset: 0; pointer-events: none; overflow: hidden; }
.lotus-celebration span { position: absolute; bottom: -60px; font-size: 46px; animation: lotus-rise 3s ease-out forwards; }

@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes halo-pulse { 50% { transform: scale(1.15); opacity: .75; } }
@keyframes lotus-rise {
  0% { transform: translateY(0) scale(.6); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translateY(-90vh) scale(1.4) rotate(20deg); opacity: 0; }
}

@media (max-width: 1050px) {
  .feature-nav { display: none; }
}
@media (max-width: 700px) {
  .feature-header { height: 58px; }
  .header-inner { width: calc(100% - 24px); }
  .feature-brand svg { width: 31px; }
  .feature-brand span { font-size: 22px; }
  .record-action { display: none; }
  .feature-main { width: calc(100% - 28px); padding-top: 78px; padding-bottom: 110px; }
  .feature-title h1 { font-size: 36px; }
  .feature-panel { padding: 18px; margin-top: 16px; }
  .search-panel form { flex-direction: column; }
  .ritual-button { width: 100%; }
  .category-results, .popular-grid { grid-template-columns: 1fr; }
  .track-grid, .guide-grid { grid-template-columns: 1fr; }
  .track-card { min-height: 104px; padding: 14px; gap: 12px; }
  .track-icon { width: 54px; height: 54px; font-size: 26px; }
  .track-play { width: 44px; height: 44px; }
  .player-row { flex-wrap: wrap; }
  .player-art { width: 66px; height: 66px; }
  .player-copy { min-width: calc(100% - 90px); }
  .player-main-button { margin-left: auto; }
  .merit-row { align-items: stretch; flex-direction: column; }
  .feature-share { right: 12px; bottom: 94px; width: 50px; height: 50px; }
  .bottom-nav {
    position: fixed; z-index: 19; inset: auto 0 0; display: grid; grid-template-columns: repeat(6,1fr);
    padding: 7px 2px max(7px, env(safe-area-inset-bottom)); border-top: 1px solid rgba(201,160,94,.2);
    background: rgba(42,33,22,.97); backdrop-filter: blur(12px);
  }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 1px; color: #8f8373; text-decoration: none; font-size: 11px; }
  .bottom-nav span { color: #aa9d8b; font-size: 20px; line-height: 1.2; }
  .ritual-main { width: calc(100% - 24px); }
  .ritual-title { padding-top: 4px; }
  .ritual-title .title-icon { width: 60px; height: 60px; }
  .ritual-title p { font-size: 15px; line-height: 1.7; }
  .ritual-form, .birth-form, .naming-form { grid-template-columns: 1fr; }
  .ritual-field.wide, .ritual-form > .wide { grid-column: auto; }
  .master-grid, .light-grid, .reading-grid, .hexagram-reading, .name-grid, .naming-benefits { grid-template-columns: 1fr; }
  .master-card { padding: 14px; }
  .date-switcher { grid-template-columns: 84px 1fr 84px; }
  .date-switcher button { padding: 9px 5px; font-size: 12px; }
  .date-switcher h2 { font-size: 22px; }
  .almanac-summary { grid-template-columns: 1fr; }
  .day-seal { grid-row: 1; }
  .almanac-grid { grid-template-columns: repeat(2, 1fr); }
  .hour-grid { grid-template-columns: repeat(4, 1fr); }
  .week-strip { grid-template-columns: repeat(4, 1fr); }
  .fortune-result { grid-template-columns: 1fr; }
  .fortune-stick { width: 150px; min-height: 260px; margin: auto; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .lamp-choices .choice { min-width: 120px; }
  .lamp-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .duration-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toast { bottom: 88px; white-space: nowrap; }
  .profile-main { width: calc(100% - 24px); padding-top: 76px; }
  .lucky-card { padding: 18px 10px; }
  .lucky-card strong { font-size: 36px; }
  .profile-summary { align-items: flex-start; flex-wrap: wrap; }
  .profile-name { min-width: calc(100% - 80px); }
  .merit { width: 100%; grid-auto-flow: column; align-items: center; justify-content: start; gap: 10px; }
  .phone-form, .profile-record-grid { grid-template-columns: 1fr; }
  .palm-upload-actions, .temple-stats { grid-template-columns: 1fr; }
  .profile-order { grid-template-columns: minmax(0, 1fr) auto; }.profile-order .order-status { grid-column: 1 / -1; justify-self: start; }
  .phone-form p { grid-column: auto; }
  .reference-details summary { padding: 16px 46px 16px 16px; font-size: 17px; }
  .reference-details summary::after { right: 16px; top: 12px; }
  .palm-reference { padding: 14px 10px 12px; overflow-x: auto; }
  .palm-reference img { width: 760px; max-width: none; }
  .palm-reference figcaption { position: sticky; left: 0; width: calc(100vw - 70px); font-size: 13px; }
}

/* 2026 editorial redesign */
:root {
  --bg: #f7f5ee;
  --card: #fffefa;
  --surface: #eceae2;
  --gold: #a98545;
  --gold-light: #b6934f;
  --paper: #253946;
  --muted: #798184;
  --red: #b83b36;
  --navy: #19364a;
  --line: rgba(25, 54, 74, .17);
}

body {
  color: var(--paper);
  background:
    linear-gradient(rgba(247,245,238,.965), rgba(247,245,238,.965)),
    repeating-linear-gradient(0deg, transparent 0 5px, rgba(25,54,74,.025) 5px 6px);
}
.feature-bg {
  background:
    radial-gradient(circle at 91% 82%, rgba(184,59,54,.12) 0 42px, transparent 43px),
    linear-gradient(155deg, transparent 0 64%, rgba(25,54,74,.035) 64.2% 64.5%, transparent 64.7%),
    var(--bg);
}
.feature-bg::after { opacity: .018; mix-blend-mode: multiply; }
.mountains {
  inset: 24% -10% 0 33%;
  opacity: .14;
  background:
    linear-gradient(155deg, transparent 45%, var(--navy) 45.2%, transparent 45.5%) 0 0/52% 68%,
    linear-gradient(205deg, transparent 45%, var(--navy) 45.2%, transparent 45.5%) 100% 0/52% 68%;
}
.dust { display: none; }

.feature-header {
  height: 66px;
  border-color: var(--line);
  background: rgba(247,245,238,.9);
  box-shadow: 0 1px 0 rgba(255,255,255,.65);
}
.header-inner { width: min(1280px, calc(100% - 44px)); }
.feature-brand { color: var(--navy); }
.feature-brand svg { width: 31px; height: 36px; fill: transparent; stroke-width: 1.45; }
.feature-brand span { font-size: 23px; }
.feature-nav { gap: clamp(12px, 1.4vw, 20px); }
.feature-nav a { color: #5f6b70; font-family: "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 13px; }
.feature-nav a:hover, .feature-nav .active { color: var(--red); }
.feature-actions { font-family: "PingFang SC", sans-serif; }
.circle-action, .record-action { border-color: var(--line); border-radius: 2px; color: var(--navy); background: rgba(255,255,255,.35); }
.circle-action { border-radius: 50%; }

.feature-main {
  width: min(1050px, calc(100% - 48px));
  padding: 116px 0 110px;
}
.ritual-main { width: min(1140px, calc(100% - 48px)); }
.feature-title {
  position: relative;
  min-height: 160px;
  padding: 12px 0 36px 122px;
  border-bottom: 1px solid var(--navy);
  text-align: left;
}
.feature-title::after {
  content: "ZHIZHI · JI";
  position: absolute;
  right: 0;
  bottom: 35px;
  color: rgba(25,54,74,.25);
  font-family: Georgia, serif;
  font-size: 11px;
  letter-spacing: .3em;
}
.title-icon {
  position: absolute;
  top: 8px;
  left: 0;
  width: 82px;
  height: 96px;
  margin: 0;
  border-color: var(--navy);
  border-radius: 50% 50% 46% 46%;
  color: var(--navy);
  background: transparent;
}
.title-icon {
  isolation: isolate;
  overflow: visible;
  border-radius: 48% 52% 46% 54% / 53% 47% 55% 45%;
  box-shadow: 7px 8px 0 rgba(20, 55, 75, .055);
}
.title-icon::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 7px;
  border: 1px solid rgba(20, 55, 75, .14);
  border-radius: 52% 48% 54% 46% / 47% 53% 45% 55%;
}
.title-icon::after {
  content: attr(data-mark);
  position: absolute;
  right: -8px;
  bottom: 8px;
  min-width: 22px;
  padding: 2px 4px 1px;
  color: var(--red);
  background: var(--bg);
  font-family: Georgia, serif;
  font-size: 9px;
  line-height: 1;
  letter-spacing: .12em;
  text-align: center;
}
.title-icon svg {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.title-icon .glyph-accent { stroke: var(--red); }
.feature-title img.dream-emblem { object-fit: contain; border: 0; border-radius: 0; background: none; box-shadow: none; }
.feature-title h1 {
  color: var(--navy);
  font-size: clamp(40px, 5vw, 60px);
  letter-spacing: .05em;
}
.feature-title p { margin-top: 12px; color: #667379; font-size: 16px; }
.ritual-title small { color: var(--red); font-family: "PingFang SC", sans-serif; }
body[data-page="qifu"] .ritual-title { min-height: 0; padding-block: 4px 16px; }
body[data-page="qifu"] .ritual-title .title-icon { top: 0; width: 60px; height: 72px; }
body[data-page="qifu"] .ritual-title { padding-left: 80px; }
body[data-page="qifu"] .ritual-title p { margin-top: 4px; }
.lamp-strip { display: flex; align-items: center; gap: 12px; padding: 8px 0; color: var(--navy); }
.lamp-strip + .qifu-panel { margin-top: 0; }
.lamp-window { display: flex; flex: 1; min-width: 0; overflow: hidden; }
.lamp-group { flex: none; display: flex; align-items: center; gap: 1.25em; min-width: 100%; padding-right: 1.25em; white-space: nowrap; animation: lamp-flow 24s linear infinite; }
.lamp-window .lamp-group { animation-duration: var(--lamp-cycle, 24s); }
.lamp-window.paused .lamp-group, .lamp-window:hover .lamp-group { animation-play-state: paused; }
.lamp-strip button { color: inherit; border: 1px solid var(--line); background: transparent; padding: 6px; cursor: pointer; }
@keyframes lamp-flow { to { transform: translateX(-100%); } }
@media (max-width: 520px) { .lamp-strip { flex-wrap: wrap; } .lamp-window { flex-basis: 65%; } }
@media (prefers-reduced-motion: reduce) {
  .lamp-window { overflow-x: auto; }
  .lamp-group { animation: none; }
  .lamp-group[aria-hidden], #lampPause { display: none; }
}
.naming-blessing {
  margin: 24px 0 18px;
  color: #68757a;
  text-align: center;
  line-height: 1.7;
}

.feature-panel {
  margin-top: 32px;
  padding: 30px 34px;
  border: 0;
  border-top: 1px solid var(--navy);
  border-radius: 0;
  background: rgba(255,254,250,.62);
  box-shadow: none;
  backdrop-filter: none;
}
.feature-panel:hover { border-color: var(--red); }
.feature-panel > p:first-child { color: #667278; }
.feature-panel h2 { color: var(--navy); font-size: 25px; letter-spacing: .03em; }
.panel-note, .ancient, .library-note { color: #7b8486; }

.search-panel form { gap: 0; border-bottom: 1px solid var(--navy); }
.search-panel input {
  height: 59px;
  padding-left: 0;
  border: 0;
  border-radius: 0;
  color: var(--navy);
  background: transparent;
  font-size: 18px;
}
.search-panel input:focus { box-shadow: none; }
.ritual-button {
  min-width: 166px;
  height: 52px;
  border-radius: 2px;
  background: var(--red);
  box-shadow: 6px 6px 0 rgba(184,59,54,.11);
  font-family: "PingFang SC", sans-serif;
  font-size: 15px;
}
.category-list {
  gap: 0 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.category-list button {
  padding: 8px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: #6d797d;
  background: transparent;
}
.category-list button:hover, .category-list button.active { border-color: var(--red); color: var(--red); background: transparent; }
.category-results { column-gap: 24px; row-gap: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.category-results button {
  min-width: 0;
  gap: 16px;
  padding: 13px 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--navy);
  background: transparent;
}
.category-results button span:last-child { flex-shrink: 0; }
@media (max-width: 700px) { .category-results { grid-template-columns: 1fr; } }
.popular-grid { grid-template-columns: 1fr; gap: 0; counter-reset: dreams; }
.popular-grid button {
  min-height: 92px;
  padding: 18px 4px 18px 68px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--paper);
  background: transparent;
  counter-increment: dreams;
}
.popular-grid button::before {
  content: "0" counter(dreams);
  float: left;
  margin-left: -64px;
  color: var(--red);
  font-family: Georgia, serif;
}
.popular-grid button:hover { padding-left: 78px; background: rgba(25,54,74,.025); }
.popular-grid b, .popular-grid span, .interpretation h3 { color: var(--navy); }
.popular-grid small { color: #788286; }
.interpretation article {
  border: 0;
  border-left: 3px solid var(--red);
  border-radius: 0;
  background: #edeae1;
}
.advice { color: var(--red); }

.ritual-form { gap: 25px 32px; }
.ritual-field, .ritual-form legend, .palm-form > form > label { color: #657278; font-family: "PingFang SC", sans-serif; font-size: 13px; }
.ritual-field input, .ritual-field select, .ritual-field textarea,
.question-panel input, .palm-form select,
.tool-form input, .tool-form select, .tool-form textarea {
  min-height: 54px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--navy);
  border-radius: 0;
  color: var(--navy);
  background: transparent;
}
.ritual-field input:focus, .ritual-field select:focus, .ritual-field textarea:focus, .question-panel input:focus { border-color: var(--red); box-shadow: none; }
.choice, .tool-options button {
  border-color: var(--line);
  border-radius: 2px;
  color: #5f6d72;
  background: rgba(255,255,255,.48);
}
.choice.active, .tool-options button.active {
  border-color: var(--navy);
  color: var(--navy);
  background: #e7e7df;
  box-shadow: inset 3px 0 0 var(--red);
}
.lamp-choices .choice, .duration-choices .choice, .light-grid article,
.master-card, .reading-grid article, .hexagram-reading article,
.name-grid article, .almanac-grid article, .hour-grid article,
.temple-stats article, .guide-grid article {
  border-color: var(--line);
  border-radius: 2px;
  background: rgba(255,255,255,.45);
  box-shadow: none;
}
.lamp-choices .choice.active i { color: var(--red); }
.duration-choices .choice b { color: var(--navy); }
.duration-choices .choice strong { color: var(--red); }
.duration-choices .choice.active { box-shadow: inset 3px 0 0 var(--red); }
.stat-pill {
  margin: 22px 0 4px auto;
  border: 0;
  border-radius: 0;
  color: #778286;
  background: transparent;
}
.stat-pill b, .light-grid article b { color: var(--red); }
.light-grid article small { color: #7c8587; }

.masters-panel > p { font-family: "PingFang SC", sans-serif; font-size: 13px !important; }
.master-card { color: var(--paper); }
.master-card.active { border-color: var(--navy); background: #e8e7df; box-shadow: inset 3px 0 0 var(--red); }
.master-card b, .master-card strong { color: var(--navy); }
.master-card small, .master-card em { color: #748084; }
.fortune-stick {
  border-color: var(--navy);
  color: var(--navy);
  background: #e8e6dc;
  box-shadow: 10px 10px 0 rgba(25,54,74,.06);
}
.fortune-copy h2, .fortune-copy h3, .result-heading h2,
.hexagram-reading h3, .name-grid h3 { color: var(--navy); }
.fortune-copy blockquote, .hexagram-reading blockquote { color: var(--red); }
.outline-button, .date-switcher button, .week-strip button {
  border-color: var(--line);
  border-radius: 2px;
  color: var(--navy);
}

.almanac-summary > div:not(.day-seal), .capture-guide, .bazi-unlock {
  border-radius: 2px;
  color: var(--paper);
  background: #ebe9e0;
}
.day-seal { border-color: var(--navy); background: transparent; }
.day-seal strong, .date-switcher h2, .almanac-grid b { color: var(--navy); }
.almanac-grid small { color: #7c8588; }
.week-strip button.active { color: white; background: var(--navy); }
.bazi-unlock { border-left: 3px solid var(--red); }
.bazi-unlock h3, .capture-guide h3 { color: var(--navy); }
.bazi-unlock p, .bazi-unlock small, .capture-guide p { color: #738084; }

.reference-details { border-color: var(--line); border-radius: 2px; background: rgba(255,255,255,.45); }
.reference-details summary { color: var(--navy); }
.palm-reference { background: #e8e5dc; }
.palm-upload-actions label { border-radius: 2px; }
.naming-benefits span { border-color: var(--line); border-radius: 2px; color: #5f6d72; background: rgba(255,255,255,.4); }
.score-row i { color: #667378; }
.segmented { border-color: var(--line); border-radius: 2px; }
.segmented button { color: #68757a; background: transparent; }
.segmented button.active { color: white; background: var(--navy); }
.upload-zone { border-color: var(--line); border-radius: 2px; color: var(--navy) !important; background: #ebe9e1; }
.upload-zone small { color: #798286; }
.pillars article, .element-bars span { border-color: var(--line); border-radius: 2px; background: #ebe9e1; }
.pillars b { color: var(--navy); }
.pillars small, .pillars span { color: #778286; }
.element-bars span::before, .score-row i::before { background: rgba(184,59,54,.09); }
.coin-bowl { border-color: var(--navy); color: var(--red); }
.line-stack i { background: var(--navy); box-shadow: none; }

.meditation-lotus {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}
.meditation-title blockquote { border: 0; border-left: 3px solid var(--red); border-radius: 0; color: var(--navy); background: #e9e6dd; }
.track-grid { gap: 0; }
.track-card {
  min-height: 108px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--paper);
  background: transparent;
  box-shadow: none;
}
.track-card:hover, .track-card.active { transform: none; border-color: var(--navy); background: rgba(25,54,74,.035); }
.track-icon { border-color: var(--line); background: #ebe9e1; }
.track-copy b, .track-play, .player-copy h2 { color: var(--navy); }
.track-copy > span, .player-copy p { color: #68757a; }
.track-copy small, .player-copy small { color: #8a9294; }
.track-play, .player-main-button, .mute-button { border-color: var(--line); color: var(--navy); }
.player-art { border-color: var(--navy); background: #ebe9e1; box-shadow: none; }
.progress-track { background: #deddd6; }
.progress-track span { background: var(--red); }
.guide-grid h3 { color: var(--navy); }
.guide-grid p, .guide-grid ol { color: #6e7a7e; }

.profile-identity, .profile-lamps, .profile-orders, .merit-records { border-top-color: var(--navy); }
.lucky-card { border-color: var(--navy); border-radius: 2px; background: var(--navy); }
.lucky-card p, .lucky-card small, .lucky-card button { color: #d5dcda; }
.lucky-card strong { color: white; }
.avatar { border-color: var(--navy); color: var(--navy); background: transparent; }
.profile-name h1, .profile-section-head h2, .record-box h2 { color: var(--navy); }
.phone-card { border-radius: 2px; background: #e9e7df; }
.profile-lamp, .profile-order, .record-list article, .merit-records article { border-color: var(--line); background: transparent; }
.profile-status, .phone-form, .profile-empty { border-color: var(--line); border-radius: 2px; color: #68757a; background: #ebe9e1; }
.profile-status b { color: var(--red); }
.phone-form label { color: #68757a; }
.phone-form input, .phone-form select, .restore-dialog input { border: 0; border-bottom: 1px solid var(--navy); border-radius: 0; color: var(--navy); background: transparent; }
.profile-lamp b, .profile-order b, .record-list b, .merit-records article b { color: var(--navy); }
.profile-lamp small, .profile-order small, .record-list small, .merit-records article small { color: #7d8688; }
.profile-order strong, .merit-records article > span { color: var(--red); }
.profile-order [data-resume-order] { grid-column: 1 / -1; justify-self: start; margin: 0; min-height: 44px; }
.profile-empty a { border-color: var(--navy); border-radius: 2px; color: var(--navy); }

.temple-progress strong, .temple-merit strong, .temple-stats b { color: var(--red); }
.incense-burner > span { border-color: var(--navy); color: white; background: var(--navy); box-shadow: 10px 12px 0 rgba(25,54,74,.08); }

.feature-share {
  border-color: var(--navy);
  color: white;
  background: var(--navy);
  box-shadow: none;
}
.bottom-nav { border-color: var(--line); background: rgba(247,245,238,.97); }
.bottom-nav a, .bottom-nav span { color: #6e797d; }

.payment-dialog {
  border-color: var(--navy);
  border-radius: 2px;
  color: var(--paper);
  background: #f7f5ee;
}
.payment-dialog::backdrop { background: rgba(16,31,42,.67); }
.payment-head small, .payment-head h2 { color: var(--navy); }
.payment-head p { color: #768084; }
.payment-price { border: 0; border-bottom: 1px solid var(--navy); border-radius: 0; background: transparent; }
.payment-price span { color: #758084; }
.payment-price strong { color: var(--red); }
.payment-channels button { border-color: var(--line); border-radius: 2px; color: #667378; background: transparent; }
.payment-channels button.active { border-color: var(--navy); color: var(--navy); background: #e9e7df; }
.payment-order { border-radius: 0; color: #7a8486; background: #e9e7df; }
.payment-order code { color: var(--navy); }
.price-hint { color: var(--red); }
.search-panel #dreamForm {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 166px;
  align-items: stretch;
  gap: 0;
}
.search-panel #dreamForm .ritual-button {
  width: 100%;
  min-width: 0;
}
.search-panel #dreamForm .price-hint {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0;
  padding: 13px 0 2px;
  border-top: 1px solid var(--line);
  text-align: center;
  white-space: normal;
}
.toast { border-color: var(--navy); color: white; background: var(--navy); }
.restore-dialog { border-color: var(--navy); border-radius: 2px; color: var(--paper); background: var(--bg); box-shadow: 18px 22px 0 rgba(25,54,74,.12); }
.restore-dialog::backdrop { background: rgba(16,31,42,.67); }
.restore-dialog h2 { color: var(--navy); }
.finish-message.short { border-color: var(--line); border-radius: 2px; color: #657278; background: #ebe9e1; }

.membership-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: 36px;
  overflow: hidden;
  border-top: 0;
  color: white;
  background: var(--navy);
}
.membership-panel::after {
  content: "止";
  position: absolute;
  right: -14px;
  bottom: -80px;
  color: rgba(255,255,255,.045);
  font-family: "Kaiti SC", serif;
  font-size: 260px;
}
.membership-copy, .membership-plans { position: relative; z-index: 1; }
.membership-copy > small, .section-kicker, .dialog-kicker {
  color: #d2a052;
  font-family: Georgia, serif;
  font-size: 11px;
  letter-spacing: .24em;
}
.membership-copy h2 { max-width: 560px; margin: 12px 0; color: white; font-size: 30px; }
.membership-copy p { max-width: 620px; color: #c5ced0; line-height: 1.8; }
.membership-benefits { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; }
.membership-benefits span { color: #e5e9e7; font-size: 13px; }
.membership-plans { display: grid; gap: 10px; align-content: center; }
.membership-plans button {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 16px;
  padding: 17px 18px;
  border: 1px solid rgba(255,255,255,.24);
  color: white;
  text-align: left;
  background: transparent;
  cursor: pointer;
}
.membership-plans button:hover, .membership-plans button.recommended { border-color: #d2a052; background: rgba(210,160,82,.11); }
.membership-plans small { font-size: 15px; }.membership-plans strong { grid-row: 1 / 3; grid-column: 2; align-self: center; color: #f0c36f; font-size: 24px; }
.membership-plans span { color: #9fadaf; font-size: 12px; }
.member-seal { width: 160px; height: 160px; display: grid; place-content: center; justify-items: center; margin: auto; border: 1px solid #d2a052; border-radius: 50%; }
.member-seal span, .member-seal small { color: #c8d0d0; }.member-seal strong { color: #f0c36f; font-size: 46px; font-weight: 400; }

.growth-panel { border-top-color: var(--red); }
.growth-overview { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; margin-top: 22px; }
.monthly-reflection { min-height: 210px; padding: 26px; border-left: 3px solid var(--red); background: #ebe9e1; }
.monthly-reflection > small { color: var(--red); letter-spacing: .16em; }
.monthly-reflection h3 { margin: 28px 0 10px; color: var(--navy); font-size: 26px; font-weight: 400; }
.monthly-reflection p { margin: 0; color: #68757a; line-height: 1.85; }
.theme-map { display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 10px; padding: 24px; border: 1px solid var(--line); }
.theme-map span { padding: calc(7px + var(--weight) * 2px) calc(10px + var(--weight) * 3px); color: var(--navy); background: rgba(25,54,74,.06); font-size: calc(12px + var(--weight) * 2px); }
.theme-map span:first-child { color: white; background: var(--red); }
.theme-map small { margin-left: 6px; opacity: .58; }
.insight-timeline { margin-top: 28px; }
.insight-timeline > article { display: grid; grid-template-columns: 68px 1fr auto; gap: 18px; padding: 20px 2px; border-top: 1px solid var(--line); }
.insight-timeline time { color: var(--red); font-family: Georgia, serif; }
.insight-timeline article div > small { color: #818b8d; text-transform: uppercase; letter-spacing: .12em; }
.insight-timeline h3 { margin: 5px 0; color: var(--navy); font-size: 19px; font-weight: 400; }
.insight-timeline p { display: -webkit-box; overflow: hidden; margin: 0; color: #68757a; line-height: 1.7; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.insight-timeline article > span { align-self: start; padding: 4px 9px; border: 1px solid var(--line); color: #657278; font-size: 12px; }

.insight-actions {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(132px, auto) minmax(132px, auto);
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.insight-actions > div { min-width: 0; display: grid; gap: 4px; }
.insight-actions small { color: var(--red); letter-spacing: .08em; }
.insight-actions strong { overflow-wrap: anywhere; color: #758084; font-size: 12px; font-weight: 400; }
.insight-actions .outline-button { min-width: 132px; white-space: nowrap; }
.fortune-result .insight-actions { grid-column: 1 / -1; }
body[data-page="lottery"] :is(#drawAgain, [data-followup], [data-share-card]) {
  --action-edge: #234456;
  min-height: 46px;
  padding: 9px 18px;
  border: 1px solid var(--action-edge);
  border-radius: 8px;
  background: #244b60;
  color: #fff;
  font: 600 17px/1.4 "PingFang SC", sans-serif;
  box-shadow: 0 3px 0 var(--action-edge);
  cursor: pointer;
}
body[data-page="lottery"] #drawAgain { --action-edge: #832c27; background: #ac3932; }
body[data-page="lottery"] [data-share-card] { --action-edge: #748995; background: #edf2f3; color: #183d51; }
body[data-page="lottery"] :is(#drawAgain, [data-followup], [data-share-card]):hover { filter: brightness(.94); }
body[data-page="lottery"] :is(#drawAgain, [data-followup], [data-share-card]):active { transform: translateY(2px); box-shadow: none; }
body[data-page="lottery"] :is(#drawAgain, [data-followup], [data-share-card]):focus-visible { outline: 3px solid #326984; outline-offset: 4px; }
body[data-page="lottery"] .insight-actions .outline-button { margin: 0; min-width: 0; }

.followup-dialog {
  width: min(650px, calc(100% - 28px));
  max-height: calc(100vh - 32px);
  padding: 30px;
  border: 1px solid var(--navy);
  color: var(--paper);
  background: var(--bg);
}
.followup-dialog::backdrop { background: rgba(16,31,42,.67); backdrop-filter: blur(5px); }
.followup-dialog h2 { margin: 8px 0 22px; color: var(--navy); font-family: "Kaiti SC", serif; font-size: 29px; font-weight: 400; }
.followup-thread { max-height: 350px; display: grid; gap: 12px; overflow-y: auto; padding-right: 5px; }
.followup-thread article { width: fit-content; max-width: 88%; padding: 13px 15px; line-height: 1.7; }
.assistant-message { border-left: 2px solid var(--red); color: #485b64; background: #e9e7df; }
.user-message { justify-self: end; color: white; background: var(--navy); }
.followup-dialog form { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 20px; }
.followup-dialog textarea { min-height: 72px; padding: 12px; border: 1px solid var(--line); color: var(--navy); background: white; resize: vertical; }
.followup-dialog .ritual-button { min-width: 140px; height: auto; }
.followup-note { min-height: 20px; margin: 10px 0 0; color: #778286; font-size: 12px; }
.followup-note button { padding: 0; border: 0; border-bottom: 1px solid var(--red); color: var(--red); background: transparent; cursor: pointer; }

@media (max-width: 700px) {
  .feature-header { height: 60px; }
  .header-inner { width: calc(100% - 28px); }
  .feature-main, .ritual-main, .profile-main { width: calc(100% - 30px); padding-top: 88px; }
  .feature-title { min-height: 138px; padding: 5px 0 28px 82px; }
  .title-icon { width: 59px; height: 72px; }
  .feature-title::after { display: none; }
  .feature-title h1 { font-size: 38px; }
  .feature-panel { margin-top: 23px; padding: 23px 18px; }
  .search-panel form { border-bottom: 0; }
  .search-panel #dreamForm { grid-template-columns: 1fr; gap: 12px; }
  .search-panel #dreamForm .price-hint { grid-column: 1; padding-top: 12px; }
  .search-panel input { padding: 0 2px; border-bottom: 1px solid var(--navy); }
  .category-list { gap: 0 16px; }
  .popular-grid button { padding-left: 56px; }
  .popular-grid button::before { margin-left: -52px; }
  .bottom-nav { box-shadow: 0 -1px 0 rgba(255,255,255,.7); }
  .membership-panel, .growth-overview { grid-template-columns: 1fr; }
  .membership-panel { gap: 22px; }
  .membership-copy h2 { font-size: 25px; }
  .membership-benefits { display: grid; }
  .insight-timeline > article { grid-template-columns: 54px 1fr; }
  .insight-timeline article > span { grid-column: 2; justify-self: start; }
  .insight-actions { grid-template-columns: 1fr 1fr; }
  .insight-actions > div { grid-column: 1 / -1; }
  .followup-dialog { padding: 24px 18px; }
  .followup-dialog form { grid-template-columns: 1fr; }
  .followup-dialog .ritual-button { min-height: 48px; }
}

@media (max-width: 900px) and (min-width: 701px) {
  .insight-actions { grid-template-columns: 1fr 1fr; }
  .insight-actions > div { grid-column: 1 / -1; }
  .insight-actions .outline-button { width: 100%; }
}

/* Membership center */
.membership-main {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  margin: auto;
  padding: 108px 0 110px;
}
.membership-hero {
  position: relative;
  z-index: 1;
  min-height: 520px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 60px;
  padding: 64px;
  color: white;
  background: var(--navy);
}
.membership-page .feature-bg {
  z-index: 0;
  pointer-events: none;
}
.membership-page .feature-header {
  z-index: 20;
}
.membership-page .bottom-nav {
  z-index: 25;
}
.membership-hero-copy > small, .membership-section-head > small { color: #d5a85b; font-family: Georgia, serif; font-size: 11px; letter-spacing: .28em; }
.membership-hero h1 { margin: 20px 0; color: white; font-size: clamp(44px, 6vw, 72px); font-weight: 400; line-height: 1.2; letter-spacing: .03em; }
.membership-hero-copy > p { max-width: 640px; color: #c1cbce; font-size: 17px; line-height: 1.9; }
.membership-status { width: fit-content; display: grid; gap: 5px; margin-top: 35px; padding: 15px 18px; border-left: 3px solid #d5a85b; background: rgba(255,255,255,.07); }
.membership-status span { color: #d5a85b; font-size: 12px; }.membership-status b { color: white; font-weight: 400; }.membership-status small { color: #aab5b8; }
.membership-status.active { background: rgba(213,168,91,.13); }
.membership-orbit { position: relative; width: min(360px, 100%); aspect-ratio: 1; display: grid; place-items: center; justify-self: center; border: 1px solid rgba(213,168,91,.7); border-radius: 50%; }
.membership-orbit::before, .membership-orbit::after { content: ""; position: absolute; inset: 15%; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.membership-orbit::after { inset: 31%; border-color: rgba(213,168,91,.45); }
.membership-orbit span { color: #f0c46f; font-family: "Kaiti SC", serif; font-size: 88px; }
.membership-orbit i { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: #d5a85b; }
.membership-orbit i:nth-of-type(1) { top: 13%; left: 26%; }.membership-orbit i:nth-of-type(2) { right: 5%; bottom: 39%; }.membership-orbit i:nth-of-type(3) { bottom: 8%; left: 36%; }
.membership-value { display: grid; grid-template-columns: repeat(4, 1fr); border-left: 1px solid var(--line); }
.membership-value article { min-height: 260px; padding: 30px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.membership-value article > span { color: var(--red); font-family: Georgia, serif; }
.membership-value h2 { margin: 55px 0 14px; color: var(--navy); font-size: 25px; font-weight: 400; }
.membership-value p { color: #6d797d; line-height: 1.8; }
.membership-pricing, .membership-process, .membership-faq { padding: 90px 0 0; }
.membership-section-head { max-width: 680px; margin-bottom: 35px; }
.membership-section-head h2 { margin: 12px 0; color: var(--navy); font-size: 42px; font-weight: 400; }
.membership-section-head p { color: #6d797d; line-height: 1.8; }
.member-plan-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.member-plan-grid > article { position: relative; min-height: 520px; padding: 38px; border: 1px solid var(--navy); background: rgba(255,254,250,.7); }
.member-plan-grid > article.featured { color: white; background: var(--navy); }
.member-plan-grid em { position: absolute; top: 0; right: 0; padding: 8px 19px; color: var(--navy); background: #f0c46f; font-style: normal; font-size: 12px; }
.member-plan-grid article > small { color: var(--red); letter-spacing: .15em; }.member-plan-grid .featured > small { color: #f0c46f; }
.member-plan-grid h3 { margin: 12px 0 26px; color: var(--navy); font-size: 30px; font-weight: 400; }.member-plan-grid .featured h3 { color: white; }
.member-plan-grid article > strong { color: var(--red); font-size: 56px; font-weight: 400; }.member-plan-grid .featured > strong { color: #f0c46f; }
.member-plan-grid article > p { color: #758084; }.member-plan-grid .featured > p { color: #abb7b9; }
.member-plan-grid ul { min-height: 155px; display: grid; gap: 14px; margin: 30px 0; padding: 25px 0 0; border-top: 1px solid var(--line); list-style: none; }
.member-plan-grid li { color: #5f6d72; }.member-plan-grid li::before { content: "✓"; margin-right: 10px; color: var(--red); }
.member-plan-grid .featured li { color: #d4dbdc; }.member-plan-grid .featured li::before { color: #f0c46f; }
.member-plan-grid .ritual-button { width: 100%; }
.member-plan-grid .featured .ritual-button { color: var(--navy); background: #f0c46f; box-shadow: none; }
.membership-process ol { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; border-top: 1px solid var(--navy); list-style: none; }
.membership-process li { min-height: 150px; display: grid; align-content: center; gap: 25px; padding: 22px; border-right: 1px solid var(--line); }
.membership-process li b { color: var(--red); font-family: Georgia, serif; font-weight: 400; }.membership-process li span { color: var(--navy); }
.membership-faq details { padding: 24px 2px; border-top: 1px solid var(--line); }.membership-faq details:last-child { border-bottom: 1px solid var(--line); }
.membership-faq summary { color: var(--navy); cursor: pointer; font-size: 19px; }.membership-faq details p { max-width: 760px; color: #69767a; line-height: 1.8; }

@media (max-width: 820px) {
  .membership-hero { grid-template-columns: 1fr; padding: 44px 32px; }
  .membership-orbit { width: 260px; }
  .membership-value { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .membership-main { width: calc(100% - 28px); padding-top: 82px; }
  .membership-hero { min-height: auto; padding: 38px 22px; }
  .membership-hero h1 { font-size: 43px; }
  .membership-orbit { width: 210px; }
  .membership-value, .member-plan-grid, .membership-process ol { grid-template-columns: 1fr; }
  .membership-value article { min-height: 190px; }
  .membership-value h2 { margin-top: 35px; }
  .membership-pricing, .membership-process, .membership-faq { padding-top: 68px; }
  .membership-section-head h2 { font-size: 34px; }
  .member-plan-grid > article { min-height: 0; padding: 30px 22px; }
  .membership-process li { min-height: 110px; }
}
.site-legal-strip {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 20px max(22px, calc((100vw - 1240px) / 2));
  border-top: 1px solid rgba(22, 56, 76, 0.16);
  color: #66767c;
  background: rgba(244, 240, 230, 0.94);
  font-size: 13px;
}
.site-legal-strip p { margin: 0; }
.site-legal-strip nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-legal-strip a { color: #16384c; text-underline-offset: 4px; }

.consent-dialog {
  width: min(92vw, 560px);
  padding: 42px;
  border: 1px solid rgba(22, 56, 76, 0.26);
  border-radius: 2px;
  color: #16384c;
  background: #f4f0e6;
  box-shadow: 0 30px 90px rgba(22, 56, 76, 0.28);
}
.consent-dialog::backdrop { background: rgba(12, 30, 41, 0.58); backdrop-filter: blur(8px); }
.consent-mark { display: block; width: 48px; height: 54px; object-fit: contain; margin-bottom: 20px; }
.consent-dialog > small:first-of-type { color: #bd3e38; letter-spacing: 0.18em; }
.consent-dialog h2 { margin: 8px 0 14px; font-size: 34px; font-weight: 500; }
.consent-dialog p { color: #5e7077; }
.consent-dialog label { display: block; margin: 24px 0; color: #405763; }
.consent-dialog label a { margin: 0 3px; color: #bd3e38; }
.consent-dialog .consent-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.consent-dialog .consent-actions > button { display: grid; place-items: center; box-sizing: border-box; width: 100%; min-width: 0; min-height: 52px; height: auto; margin: 0; padding: 10px; }
.consent-error { display: block; min-height: 1.5em; margin-top: 12px; color: #bd3e38; text-align: right; }

.payment-confirm { display: flex; align-items: flex-start; gap: 8px; margin: 14px 0; color: #66767c; font-size: 13px; }
.payment-confirm input { margin-top: 5px; }
.payment-confirm a { color: #bd3e38; }

.payment-dialog { box-sizing: border-box; padding: 16px 20px; max-height: calc(100dvh - 16px); }
.payment-head { padding-inline: 20px; }
.payment-head h2 { margin: 3px 0; font-size: clamp(21px, 4vw, 26px); line-height: 1.25; }
.payment-price { margin: 4px 0 7px; padding: 3px 8px; }
.payment-qr { margin: 8px 0; gap: 4px; }
.payment-qr img { box-sizing: border-box; width: clamp(150px, 26vh, 210px); height: auto; aspect-ratio: 1; }
.payment-order { padding: 5px 8px; }
.payment-confirm { margin: 8px 0; }
.payment-dialog .payment-submit { min-height: 44px; height: auto; margin: 0; padding: 8px 12px; }
.payment-status { min-height: 0; margin: 6px 0 0; }
.payment-status:empty { display: none; }
.account-safety-panel { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.account-safety-panel p { margin: 4px 0 0; color: var(--feature-muted); }
.account-safety-panel > div:last-child { display: flex; gap: 12px; }
.danger-button { color: #bd3e38 !important; border-color: rgba(189, 62, 56, 0.35) !important; }

@media (max-width: 720px) {
  .site-legal-strip { align-items: flex-start; flex-direction: column; padding-bottom: 100px; }
  .consent-dialog { padding: 28px 22px; }
  .consent-dialog .consent-actions { grid-template-columns: 1fr; }
  .account-safety-panel,.account-safety-panel > div:last-child { align-items: stretch; flex-direction: column; }
}

/* Digital incense and paper rituals */
.temple-main { width: min(1020px, calc(100% - 40px)); }
.temple-title { margin-bottom: 32px; }
.temple-title .ritual-glyph { width: 38px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.temple-title .ritual-glyph .glyph-accent { stroke: var(--red); }
.ritual-switch {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 0 0 18px;
  padding: 1px;
  border: 1px solid rgba(22, 56, 76, .22);
  background: rgba(22, 56, 76, .22);
}
.ritual-switch button {
  min-height: 90px;
  display: grid;
  grid-template-columns: 42px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  padding: 18px 24px;
  border: 0;
  color: #5d6d73;
  background: rgba(250, 248, 241, .94);
  text-align: left;
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
}
.ritual-switch button > span { grid-row: 1 / 3; color: var(--red); font-family: "Kaiti SC", "STKaiti", serif; font-size: 30px; }
.ritual-switch button b { align-self: end; color: var(--navy); font-size: 17px; font-weight: 500; }
.ritual-switch button small { align-self: start; margin-top: 3px; color: #839095; }
.ritual-switch button.active { color: white; background: var(--navy); }
.ritual-switch button.active b, .ritual-switch button.active small { color: white; }
.ritual-switch button.active > span { color: #e9bc68; }
.ritual-workbench[hidden] { display: none; }
.temple-panel.ritual-workbench { padding: 34px; text-align: left; }
.temple-progress { margin-bottom: 16px; color: #66767c; }
.temple-progress strong { color: var(--red); font-weight: 400; }
.burn-stage {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid #244656;
  background:
    radial-gradient(circle at 50% 86%, rgba(197, 111, 51, .17), transparent 29%),
    linear-gradient(155deg, #152e38 0%, #0b1f29 60%, #07171e 100%);
  box-shadow: inset 0 0 80px rgba(0, 0, 0, .28);
  isolation: isolate;
}
.burn-stage::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(238, 207, 150, .12);
  pointer-events: none;
}
.burn-stage::after {
  content: "心意留痕 · 数字仪式";
  position: absolute;
  top: 36px;
  left: 42px;
  color: rgba(235, 208, 157, .42);
  font-family: Georgia, "Songti SC", serif;
  font-size: 11px;
  letter-spacing: .24em;
}
.incense-rack { position: absolute; z-index: 4; inset: 0; pointer-events: none; }
.incense-stick { position: absolute; bottom: 115px; left: 50%; width: 8px; height: 250px; transform: translateX(-50%); }
.incense-stick:nth-child(1) { margin-left: -31px; }
.incense-stick:nth-child(3) { margin-left: 31px; }
.stick-body {
  position: absolute;
  bottom: 0;
  left: 2px;
  width: 4px;
  height: var(--incense-height, 236px);
  border-radius: 3px;
  background: linear-gradient(90deg, #7f351f, #c27a43 48%, #7a311e);
  box-shadow: 0 0 1px rgba(255,255,255,.4);
}
.ember, .ash-cap { position: absolute; z-index: 2; left: 0; bottom: calc(var(--incense-height, 236px) - 4px); width: 8px; height: 8px; border-radius: 50%; opacity: 0; }
.ash-cap { bottom: calc(var(--incense-height, 236px) + 2px); height: 14px; border-radius: 4px 4px 1px 1px; background: linear-gradient(#c6c1b8, #7d7d77); }
.burning .ember { opacity: 1; background: #f25a35; box-shadow: 0 0 7px #ff5e33, 0 0 18px rgba(255, 132, 52, .8); animation: ember-breathe 1.25s ease-in-out infinite alternate; }
.burning .ash-cap { opacity: .86; }
.complete .stick-body, .complete .ember, .complete .ash-cap { opacity: 0; }
@keyframes ember-breathe { to { transform: scale(.72); filter: brightness(1.35); } }
.incense-vessel {
  position: absolute;
  z-index: 6;
  bottom: 47px;
  left: 50%;
  width: 230px;
  height: 94px;
  display: grid;
  place-items: center;
  transform: translateX(-50%);
  border: 1px solid #d2a65e;
  border-radius: 12px 12px 62px 62px;
  color: #e6bd74;
  background: linear-gradient(145deg, #6e2c24, #32171a 58%, #170e12);
  box-shadow: inset 0 10px 20px rgba(255,255,255,.07), 0 18px 35px rgba(0,0,0,.45);
  font-family: "Kaiti SC", "STKaiti", serif;
  font-size: 34px;
}
.incense-vessel::before { content: ""; position: absolute; top: -8px; left: -7px; right: -7px; height: 16px; border: 1px solid #d2a65e; border-radius: 50%; background: #25191a; }
.ash-bed { position: absolute; z-index: 7; bottom: 132px; left: 50%; width: 192px; height: 23px; overflow: hidden; transform: translateX(-50%); border-radius: 50%; background: #aaa39a; opacity: calc(.15 + var(--burn-progress, 0)); }
.ash-bed i { position: absolute; bottom: -8px; width: 48px; height: 22px; border-radius: 50%; background: #c9c4bb; filter: blur(1px); }
.ash-bed i:nth-child(1) { left: 5px; }.ash-bed i:nth-child(2) { left: 35px; bottom: -4px; }.ash-bed i:nth-child(3) { left: 72px; }.ash-bed i:nth-child(4) { right: 22px; bottom: -2px; }.ash-bed i:nth-child(5) { right: 0; }
.smoke-field, .paper-smoke { position: absolute; z-index: 3; inset: 35px 0 120px; opacity: 0; pointer-events: none; transition: opacity .5s ease; }
.burning .smoke-field, .burning .paper-smoke { opacity: 1; }
.smoke-field i, .paper-smoke i { position: absolute; bottom: 35%; left: 50%; width: 36px; height: 130px; border-left: 2px solid rgba(229, 232, 228, .28); border-radius: 50%; filter: blur(1px); animation: smoke-rise 5.8s ease-in-out infinite; }
.smoke-field i:nth-child(1) { margin-left: -34px; animation-delay: -1s; }.smoke-field i:nth-child(2) { animation-delay: -3.5s; }.smoke-field i:nth-child(3) { margin-left: 31px; animation-delay: -2.2s; }.smoke-field i:nth-child(4) { margin-left: 6px; animation-delay: -4.8s; }
@keyframes smoke-rise { 0% { opacity: 0; transform: translate(0, 35px) scale(.65) rotate(2deg); } 28% { opacity: .65; } 100% { opacity: 0; transform: translate(34px, -145px) scale(1.45) rotate(18deg); } }
.ash-fall, .paper-ash-fall { position: absolute; z-index: 8; inset: 0; pointer-events: none; }
.ash-fall > i, .paper-ash-fall > i { position: absolute; top: 28%; width: var(--ash-size); height: calc(var(--ash-size) * .55); border-radius: 50%; background: #c3beb5; box-shadow: 0 0 3px rgba(255,255,255,.25); animation: ash-drop var(--fall-time) linear forwards; }
@keyframes ash-drop { to { opacity: .15; transform: translate(var(--drift), 255px) rotate(330deg); } }
.burn-readout { display: grid; grid-template-columns: 150px 1fr 58px; align-items: center; gap: 22px; padding: 20px 0; border-bottom: 1px solid rgba(22, 56, 76, .22); }
.burn-readout > div:first-child { display: grid; gap: 3px; }.burn-readout small { color: #697a80; }.burn-readout strong { color: var(--navy); font-family: Georgia, serif; font-size: 28px; font-weight: 400; font-variant-numeric: tabular-nums; }
.burn-readout > span { color: var(--red); font-family: Georgia, serif; text-align: right; }
.burn-meter { height: 2px; background: rgba(22, 56, 76, .16); }.burn-meter i { display: block; width: 0; height: 100%; background: var(--red); transition: width .12s linear; }
.ritual-controls, .paper-intention { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 25px; padding-top: 24px; }
.ritual-controls h2 { margin: 0 0 12px; color: var(--navy); font-size: 15px; font-weight: 500; }
.incense-choice { display: flex; gap: 8px; }.incense-choice button { min-width: 82px; padding: 9px 15px; border: 1px solid rgba(22,56,76,.28); color: #64757b; background: transparent; cursor: pointer; }.incense-choice button.active { border-color: var(--navy); color: white; background: var(--navy); }
.ritual-button:disabled { cursor: not-allowed; opacity: .55; box-shadow: none; }
.temple-stats article { border-color: rgba(22,56,76,.16); border-radius: 0; background: rgba(255,255,255,.32); text-align: left; }
.temple-stats small { color: #78868a; }.temple-stats b { color: var(--red); font-weight: 400; }
.finish-message { min-height: 1.6em; margin: 8px 0 0; color: var(--red); text-align: center; }.finish-message.error { color: #a52f2a; }
.temple-merit { margin: 26px 0 70px; padding: 16px; border-top: 1px solid rgba(22,56,76,.2); border-bottom: 1px solid rgba(22,56,76,.2); }

.paper-stage-real { min-height: 430px; }
.paper-stage-real.burning { box-shadow: inset 0 0 95px rgba(222, 90, 28, .12); }
.joss-paper { position: absolute; z-index: 4; bottom: 105px; left: 50%; width: 330px; height: 205px; transform: translateX(-50%) rotate(-1deg); filter: drop-shadow(0 18px 18px rgba(0,0,0,.36)); }
.paper-face { position: absolute; left: 0; top: 0; width: var(--paper-remaining, 100%); height: 100%; overflow: hidden; clip-path: polygon(0 0, 96% 0, 100% 4%, 97% 11%, 100% 19%, 96% 28%, 100% 37%, 97% 47%, 100% 58%, 96% 69%, 100% 79%, 97% 88%, 100% 96%, 96% 100%, 0 100%); border: 1px solid #c7a255; background: linear-gradient(135deg, #c63d31 0 8%, #d9a340 8% 92%, #b92e2a 92%); color: #6f1f1b; box-shadow: inset 0 0 0 12px rgba(255,225,130,.18); white-space: nowrap; }
.paper-face::before, .paper-face::after { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(113,36,24,.42); }.paper-face::after { inset: 30px; border-style: dotted; }
.paper-face span, .paper-face b, .paper-face small { position: absolute; left: 0; width: 330px; text-align: center; }
.paper-face span { top: 38px; font-family: Georgia, serif; font-size: 12px; letter-spacing: .35em; }.paper-face b { top: 65px; font-family: "Kaiti SC", "STKaiti", serif; font-size: 52px; font-weight: 400; }.paper-face small { bottom: 28px; font-size: 11px; letter-spacing: .16em; }
.paper-char { position: absolute; z-index: 5; top: -5px; left: calc(var(--paper-remaining, 100%) - 31px); width: 49px; height: 215px; opacity: 0; clip-path: polygon(44% 0, 100% 0, 100% 100%, 28% 100%, 48% 93%, 23% 84%, 51% 75%, 18% 64%, 48% 53%, 21% 43%, 50% 33%, 18% 23%, 47% 13%, 25% 5%); background: radial-gradient(ellipse at 35% 50%, #ff7a22 0 5%, #7c2b1e 15%, #191514 42%, transparent 69%); filter: blur(2px) drop-shadow(0 0 6px rgba(246,90,28,.68)); }
.paper-curl { position: absolute; z-index: 6; right: calc(100% - var(--paper-remaining, 100%) - 5px); bottom: 16px; width: 30px; height: 88px; opacity: 0; border-radius: 65% 10% 55% 20%; background: linear-gradient(90deg, transparent, rgba(68,27,18,.9) 45%, #bd7135); box-shadow: 6px 0 10px rgba(0,0,0,.35); transform: rotate(4deg) skewY(-7deg); transform-origin: bottom; }
.paper-fire-glow { position: absolute; z-index: 2; left: var(--paper-front-x, 50%); bottom: 72px; width: 220px; height: 180px; opacity: 0; border-radius: 50%; background: radial-gradient(ellipse, rgba(255,122,35,.42), rgba(228,62,25,.14) 42%, transparent 72%); filter: blur(16px); transform: translateX(-50%) scale(var(--flame-strength, 1)); pointer-events: none; }
.real-fire-layer { position: absolute; z-index: 10; left: var(--paper-front-x, 50%); bottom: 78px; width: 205px; aspect-ratio: 260 / 300; overflow: hidden; opacity: 0; transform: translateX(-33%) scale(var(--flame-strength, 1)); transform-origin: 33% 88%; mix-blend-mode: screen; filter: contrast(1.55) brightness(1.08) saturate(1.12) drop-shadow(0 0 8px rgba(255,82,20,.62)); -webkit-mask-image: radial-gradient(ellipse 72% 92% at 38% 55%, #000 38%, rgba(0,0,0,.92) 58%, transparent 88%); mask-image: radial-gradient(ellipse 72% 92% at 38% 55%, #000 38%, rgba(0,0,0,.92) 58%, transparent 88%); pointer-events: none; }
.real-fire-layer video { width: 100%; height: 100%; display: block; object-fit: cover; }
.real-fire-ready.burning .real-fire-layer { opacity: var(--real-fire-opacity, 1); }
.real-fire-ready.complete .real-fire-layer { opacity: 0; }
.paper-fire-canvas { position: absolute; z-index: 9; inset: 0; width: 100%; height: 100%; pointer-events: none; filter: saturate(1.04) contrast(1.02); }
.canvas-fire-ready .paper-fire, .canvas-fire-ready .paper-smoke { opacity: 0 !important; visibility: hidden; }
.canvas-fire-ready:not(.real-fire-ready) .paper-sparks { opacity: 0 !important; visibility: hidden; }
.real-fire-ready .paper-fire-canvas { opacity: 0; visibility: hidden; }
.paper-fire { position: absolute; z-index: 8; left: calc(var(--paper-remaining, 100%) - 54px); bottom: -10px; width: 105px; height: 105px; opacity: 0; filter: drop-shadow(0 0 12px rgba(255,81,24,.9)); transform: scale(var(--flame-strength, 1)); transform-origin: 50% 100%; }
.paper-fire::before { content: ""; position: absolute; z-index: 2; left: 7px; right: 5px; bottom: -2px; height: 29px; border-radius: 50%; background: radial-gradient(ellipse, #fff0a1 0 8%, #ff9d31 25%, #ed431d 53%, transparent 74%); filter: blur(3px); }
.paper-fire i { position: absolute; bottom: 0; width: 29px; height: 68px; overflow: hidden; border-radius: 52% 48% 68% 32% / 68% 62% 38% 32%; background: radial-gradient(circle at 50% 78%, #fff1a5 0 8%, #ffd052 18%, #ff7826 48%, #d9361e 68%, transparent 72%); mix-blend-mode: screen; transform-origin: 50% 100%; animation: paper-flame .5s ease-in-out infinite alternate; }
.paper-fire i::after { content: ""; position: absolute; left: 38%; bottom: 4px; width: 32%; height: 55%; border-radius: 50% 50% 34% 34%; background: linear-gradient(to top, #fff7c2, #ffd75e 60%, transparent); opacity: .82; }
.paper-fire i:nth-child(1) { left: 7px; bottom: 2px; height: 57px; transform: rotate(-12deg); animation-delay: -.32s; }.paper-fire i:nth-child(2) { left: 23px; bottom: 4px; width: 34px; height: 92px; animation-delay: -.11s; }.paper-fire i:nth-child(3) { left: 45px; bottom: 1px; height: 73px; transform: rotate(9deg); animation-delay: -.43s; }.paper-fire i:nth-child(4) { left: 66px; bottom: 3px; width: 24px; height: 50px; transform: rotate(15deg); animation-delay: -.2s; }.paper-fire i:nth-child(5) { left: 35px; bottom: 0; width: 28px; height: 48px; animation-delay: -.37s; }.paper-fire i:nth-child(6) { left: 1px; bottom: -1px; width: 22px; height: 37px; animation-delay: -.05s; }.paper-fire i:nth-child(7) { left: 79px; bottom: -1px; width: 21px; height: 34px; animation-delay: -.27s; }
.burning .paper-char, .burning .paper-curl, .burning .paper-fire, .burning .paper-fire-glow { opacity: 1; }.complete .paper-face, .complete .paper-char, .complete .paper-curl, .complete .paper-fire, .complete .paper-fire-glow { opacity: 0; }
.paper-stage-real[data-phase="kindling"] .paper-fire { filter: drop-shadow(0 0 7px rgba(255,113,39,.72)); }.paper-stage-real[data-phase="embers"] .paper-fire { filter: saturate(1.35) drop-shadow(0 0 15px rgba(255,61,17,.95)); }
@keyframes paper-flame { 0% { margin-left: -2px; transform: scale(.83, 1.05) rotate(-5deg); } 100% { margin-left: 3px; transform: scale(1.08, .82) rotate(7deg); filter: brightness(1.18); } }
.paper-smoke i { left: var(--paper-front-x, 50%); right: auto; bottom: 125px; height: 150px; animation-duration: 4.5s; }.paper-smoke i:nth-child(1) { margin-left: -12px; }.paper-smoke i:nth-child(2) { margin-left: 16px; animation-delay: -1.8s; }.paper-smoke i:nth-child(3) { margin-left: -29px; animation-delay: -3.1s; }
.paper-sparks { position: absolute; z-index: 10; inset: 0; overflow: hidden; pointer-events: none; }
.paper-sparks i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #ffd66d; box-shadow: 0 0 5px #ff7a24, 0 0 10px rgba(255,77,21,.8); animation: spark-rise var(--spark-time) ease-out forwards; }
@keyframes spark-rise { 0% { opacity: 0; transform: translate(0,0) scale(.7); } 12% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--spark-drift), var(--spark-lift)) scale(.15); } }
.paper-ash-fall > i { top: auto; height: var(--ash-size); clip-path: polygon(0 15%, 83% 0, 100% 75%, 35% 100%); background: #8b8175; animation-name: paper-cinder-fall; }
.paper-ash-fall > i.hot { background: linear-gradient(135deg, #ff9a36, #6b2a21 50%, #262222 60%); box-shadow: 0 0 5px rgba(255,91,29,.9); }
@keyframes paper-cinder-fall { 0% { opacity: 1; transform: translate(0,0) rotate(0); } 45% { opacity: .92; } 100% { opacity: .08; transform: translate(var(--drift), 145px) rotate(390deg) scale(.45); } }
.paper-ash-pile { position: absolute; z-index: 3; bottom: 68px; left: 50%; width: 360px; height: 55px; transform: translateX(-50%); opacity: calc(.12 + var(--paper-progress, 0)); }
.paper-ash-pile i { position: absolute; bottom: 0; width: 100px; height: 35px; border-radius: 50%; background: linear-gradient(#77756f, #343a3a); filter: blur(1px); }
.paper-ash-pile i:nth-child(1) { left: 20px; }.paper-ash-pile i:nth-child(2) { left: 76px; height: 45px; }.paper-ash-pile i:nth-child(3) { left: 132px; }.paper-ash-pile i:nth-child(4) { right: 70px; height: 42px; }.paper-ash-pile i:nth-child(5) { right: 18px; }.paper-ash-pile i:nth-child(6) { left: 125px; bottom: 15px; }
.paper-intention label { display: grid; gap: 10px; color: var(--navy); font-size: 15px; }.paper-intention input { width: 100%; min-height: 50px; padding: 0 15px; border: 1px solid rgba(22,56,76,.3); color: var(--navy); background: rgba(255,255,255,.42); font: inherit; outline: none; }.paper-intention input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(189,62,56,.08); }

@media (max-width: 700px) {
  .temple-main { width: calc(100% - 24px); }
  .temple-title { margin-bottom: 22px; }
  .ritual-switch button { min-height: 82px; grid-template-columns: 32px 1fr; padding: 14px; }
  .ritual-switch button > span { font-size: 25px; }
  .temple-panel.ritual-workbench { padding: 16px; }
  .temple-progress { align-items: flex-end; }.temple-progress strong { font-size: 18px; }
  .burn-stage, .paper-stage-real { min-height: 365px; }
  .burn-stage::before { inset: 12px; }.burn-stage::after { top: 23px; left: 25px; }
  .incense-stick { bottom: 102px; }
  .incense-vessel { bottom: 37px; width: 200px; height: 82px; }
  .ash-bed { bottom: 111px; width: 170px; }
  .burn-readout { grid-template-columns: 105px 1fr 42px; gap: 12px; }.burn-readout strong { font-size: 22px; }
  .ritual-controls, .paper-intention { grid-template-columns: 1fr; align-items: stretch; }
  .incense-choice { display: grid; grid-template-columns: repeat(3, 1fr); }.incense-choice button { min-width: 0; padding: 9px 5px; }
  .ritual-controls .ritual-button, .paper-intention .ritual-button { width: 100%; }
  .joss-paper { bottom: 92px; width: 260px; height: 166px; }
  .paper-face span, .paper-face b, .paper-face small { width: 260px; }.paper-face span { top: 30px; }.paper-face b { top: 51px; font-size: 43px; }.paper-face small { bottom: 23px; }
  .paper-char { height: 172px; }.paper-curl { height: 68px; }.paper-fire { left: calc(var(--paper-remaining, 100%) - 50px); bottom: -12px; }.paper-fire-glow { bottom: 55px; width: 180px; }.real-fire-layer { bottom: 66px; width: 178px; }.paper-smoke i { bottom: 102px; }.paper-ash-pile { bottom: 54px; width: 290px; }
}

@media (prefers-reduced-motion: reduce) {
  .smoke-field i, .paper-smoke i, .paper-fire i, .burning .ember { animation-duration: 8s; }
}

/* Structured Bazi, Tarot and Fengshui tools */
.feature-header .header-inner { max-width: 1320px; }
.feature-nav {
  min-width: 0;
  overflow-x: auto;
  justify-content: flex-start;
  scrollbar-width: none;
}
.feature-nav::-webkit-scrollbar { display: none; }

.chart-proof {
  margin: -8px 0 22px;
  color: #7b878b;
  font: 12px/1.7 "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: .04em;
}
.pillars em {
  max-width: 100%;
  overflow: hidden;
  color: #899397;
  font-size: 11px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.result-action {
  display: block;
  margin: 20px 0 0;
  padding: 16px 18px;
  border-left: 3px solid var(--red);
  color: #435c68;
  background: rgba(189, 62, 56, .045);
  line-height: 1.8;
}
.bazi-premium { margin-top: 20px; }
.bazi-explainer { margin: 22px 0; padding: 20px 24px; border-left: 4px solid #a93d34; background: #f2eee3; color: #203e4c; }
.bazi-explainer h3 { margin: 0 0 10px; color: #17384b; font: 700 22px/1.4 "PingFang SC", sans-serif; }
.bazi-explainer p { margin: 8px 0; font: 18px/1.8 "PingFang SC", sans-serif; }
.premium-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.premium-head h3 { margin: 0; color: var(--navy); font-size: 25px; font-weight: 500; }
.premium-head small { color: var(--red); letter-spacing: .1em; }
.dayun-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--navy); border-left: 1px solid var(--line); }
.dayun-track article { min-width: 0; padding: 15px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.35); }
.dayun-track small, .dayun-track span { display: block; color: #7a878c; font-size: 11px; }
.dayun-track b { display: block; margin: 5px 0; color: var(--navy); font-size: 22px; font-weight: 500; }
.shensha-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.shensha-list { padding: 0; list-style: none; }
.shensha-list li { padding: 7px 10px; border: 1px solid var(--line); color: #5d7079; background: rgba(255,255,255,.34); font-size: 12px; }
.result-disclaimer { color: #7d888c; font-size: 12px; line-height: 1.8; }

.advanced-page {
  --ink: #17384b;
  --vermillion: #bd3e38;
  --rice: #f4f0e6;
  --mist: #e5e7e1;
  color: var(--ink);
  background: var(--rice);
}
.advanced-bg {
  background:
    linear-gradient(115deg, transparent 0 48%, rgba(22,56,76,.045) 48.1% 48.25%, transparent 48.35% 100%),
    radial-gradient(circle at 84% 18%, rgba(189,62,56,.06), transparent 22%),
    #f4f0e6;
}
.advanced-bg::after { opacity: .022; }
.advanced-bg .mountains { opacity: .08; }
.orbit { position: absolute; border: 1px solid rgba(22,56,76,.12); border-radius: 50%; }
.orbit-one { width: 620px; height: 620px; top: 12%; right: -260px; }
.orbit-two { width: 360px; height: 360px; bottom: -160px; left: -100px; }
.advanced-main { width: min(1120px, calc(100% - 40px)); padding-top: 118px; }
.advanced-hero {
  display: grid;
  grid-template-columns: 104px 1fr;
  align-items: center;
  gap: 30px;
  margin-bottom: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--ink);
}
.advanced-hero .title-icon {
  position: relative;
  width: 92px;
  height: 104px;
  margin: 0;
  border-color: var(--ink);
  border-radius: 46px;
  color: var(--ink);
  background: transparent;
}
.advanced-hero .title-icon::after {
  content: attr(data-mark);
  position: absolute;
  right: -8px;
  bottom: 6px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: white;
  background: var(--vermillion);
  font: 12px Georgia, serif;
}
.advanced-hero .title-icon svg { width: 44px; stroke-width: 1.35; }
.advanced-hero .glyph-accent { stroke: var(--vermillion); }
.advanced-hero small { color: var(--vermillion); font: 11px Georgia, serif; letter-spacing: .2em; }
.advanced-hero h1 { margin: 5px 0 4px; color: var(--ink); font-size: clamp(42px, 6vw, 72px); font-weight: 400; letter-spacing: .06em; }
.advanced-hero p { margin: 0; color: #687a82; font-size: 16px; }
.advanced-layout { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 28px; align-items: start; }
.advanced-page .feature-panel { border-color: rgba(22,56,76,.24); border-radius: 2px; background: rgba(250,248,241,.82); box-shadow: none; }
.advanced-form { margin: 0; padding: 34px; }
.panel-index { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.panel-index span { color: var(--vermillion); font: 14px Georgia, serif; }
.panel-index p { margin: 0; color: var(--ink); font-size: 21px; }
.panel-index::after { content: ""; height: 1px; flex: 1; background: rgba(22,56,76,.18); }
.advanced-page .ritual-field textarea { min-height: 118px; }
.advanced-page fieldset { margin-top: 26px; padding: 0; border: 0; }
.advanced-page fieldset legend { margin-bottom: 10px; color: #65757c; font-size: 13px; }
.spread-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.spread-choice {
  min-height: 78px;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  border: 1px solid rgba(22,56,76,.2);
  color: var(--ink);
  background: rgba(255,255,255,.38);
  text-align: left;
  cursor: pointer;
}
.spread-choice > b { color: var(--vermillion); font: 28px Georgia, serif; font-weight: 400; }
.spread-choice span { display: grid; gap: 3px; }
.spread-choice strong { font-weight: 500; }
.spread-choice small { color: #78868b; font-size: 11px; }
.spread-choice.active { border-color: var(--ink); color: white; background: var(--ink); }
.spread-choice.active small { color: #bdc8cc; }
.spread-choice.active > b { color: #e5a099; }
.ethics-note { margin: 20px 0; color: #738188; font-size: 12px; line-height: 1.8; }
.advanced-submit { width: 100%; border-radius: 2px; box-shadow: 8px 8px 0 rgba(189,62,56,.12); }
.tool-manifest { display: grid; grid-template-columns: auto 1fr; gap: 5px 10px; padding-top: 3px; }
.tool-manifest span { color: var(--vermillion); font: 26px Georgia, serif; }
.tool-manifest p { margin: 8px 0 24px; padding-bottom: 15px; border-bottom: 1px solid rgba(22,56,76,.2); color: #677980; font-size: 11px; line-height: 1.5; }
.advanced-result { margin-top: 42px; }
.advanced-result .result-heading h2 { color: var(--ink); }
.tarot-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.tarot-card { min-width: 0; opacity: 0; transform: translateY(16px); transition: opacity .45s var(--delay), transform .45s var(--delay); }
.tarot-card.revealed { opacity: 1; transform: translateY(0); }
.tarot-card-face { min-height: 230px; display: grid; place-items: center; align-content: center; gap: 12px; padding: 18px; border: 1px solid var(--ink); color: var(--ink); background: linear-gradient(155deg, rgba(189,62,56,.04), transparent 42%), #eeece4; text-align: center; }
.tarot-card-face::before, .tarot-card-face::after { content: ""; width: 34px; height: 1px; background: var(--vermillion); }
.tarot-card-face > span { color: var(--vermillion); font-size: 22px; }
.tarot-card-face b { font-size: 21px; font-weight: 500; }
.tarot-card-face small { color: #6d7d83; }
.tarot-card-copy { padding: 14px 3px 22px; }
.tarot-card-copy em { color: var(--vermillion); font-size: 12px; font-style: normal; }
.tarot-card-copy p { margin: 5px 0 0; color: #556a73; font-size: 13px; line-height: 1.75; }
.result-conclusion { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 22px; border-top: 1px solid var(--ink); }
.result-conclusion article { padding: 18px; border-right: 1px solid rgba(22,56,76,.18); }
.result-conclusion article:last-child { border-right: 0; }
.result-conclusion small { color: var(--vermillion); }
.result-conclusion p { color: #526770; line-height: 1.8; }

.compass-workbench { position: relative; overflow: hidden; padding: 38px; }
.compass-workbench::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: -110px;
  bottom: -180px;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(22,56,76,.09);
  border-radius: 50%;
  box-shadow: 0 0 0 45px rgba(22,56,76,.035), 0 0 0 90px rgba(22,56,76,.025);
  pointer-events: none;
}
.compass-workbench form { position: relative; z-index: 1; }
.compass-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; padding-bottom: 22px; border-bottom: 1px solid var(--ink); }
.compass-heading small { color: var(--vermillion); letter-spacing: .14em; }
.compass-heading h2 { margin: 6px 0 0; color: var(--ink); font-size: 30px; font-weight: 500; }
.live-bearing { min-width: 140px; text-align: right; }
.live-bearing b { display: block; color: var(--vermillion); font: 34px Georgia, serif; font-weight: 400; }
.live-bearing span { color: #6e7f85; font-size: 12px; }
.bearing-field { display: grid; grid-template-columns: 1fr 112px; align-items: center; gap: 12px; }
.bearing-field > span { grid-column: 1 / -1; }
.bearing-field input[type="range"] { height: 2px; padding: 0; border: 0; accent-color: var(--vermillion); }
.house-summary { margin-top: 36px; }
.house-summary > p { color: #526770; line-height: 1.85; }
.direction-chips { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 20px; border-top: 1px solid var(--ink); border-left: 1px solid rgba(22,56,76,.18); }
.direction-chips span { min-height: 82px; display: grid; place-content: center; gap: 4px; padding: 12px; border-right: 1px solid rgba(22,56,76,.18); border-bottom: 1px solid rgba(22,56,76,.18); text-align: center; }
.direction-chips b { color: var(--ink); font-size: 18px; font-weight: 500; }
.direction-chips small { color: #77858a; }
.direction-chips .personal-match { background: rgba(189,62,56,.06); }
.nine-palace { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid rgba(22,56,76,.18); }
.nine-palace article { min-height: 145px; display: grid; align-content: space-between; padding: 16px; border-right: 1px solid rgba(22,56,76,.18); border-bottom: 1px solid rgba(22,56,76,.18); background: rgba(255,255,255,.25); }
.nine-palace small { color: #74838a; }
.nine-palace div { display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; text-align: center; }
.nine-palace b, .nine-palace strong { color: var(--vermillion); font: 24px Georgia, serif; font-weight: 400; }
.nine-palace i { color: var(--ink); font: 32px Georgia, serif; font-style: normal; }
.nine-palace article > span { color: #62747b; font-size: 11px; }
.panel-note { margin: 18px 0 0; color: #6c7b81; font-size: 13px; line-height: 1.8; }
.date-candidates { border-top: 1px solid var(--ink); }
.date-candidates article { display: grid; grid-template-columns: 68px 1fr auto; align-items: center; gap: 18px; padding: 16px 6px; border-bottom: 1px solid rgba(22,56,76,.16); }
.date-candidates time { color: var(--vermillion); font: 23px Georgia, serif; }
.date-candidates b { color: var(--ink); font-weight: 500; }
.date-candidates p { margin: 4px 0 0; color: #718087; font-size: 12px; }
.date-candidates > article > span { padding: 5px 9px; border: 1px solid rgba(189,62,56,.35); color: var(--vermillion); font-size: 11px; }
.empty-candidates { color: #728087; }

@media (max-width: 700px) {
  .advanced-main { width: calc(100% - 24px); padding-top: 90px; }
  .advanced-hero { grid-template-columns: 68px 1fr; gap: 17px; margin-bottom: 22px; padding-bottom: 22px; }
  .advanced-hero .title-icon { width: 62px; height: 72px; }
  .advanced-hero .title-icon svg { width: 31px; }
  .advanced-hero .title-icon::after { right: -5px; width: 24px; height: 24px; font-size: 10px; }
  .advanced-hero h1 { font-size: 40px; }
  .advanced-hero p { font-size: 13px; line-height: 1.6; }
  .advanced-layout { grid-template-columns: 1fr; }
  .tool-manifest { display: none; }
  .advanced-form, .compass-workbench { padding: 20px 16px; }
  .spread-grid { grid-template-columns: 1fr; }
  .tarot-cards { grid-template-columns: 1fr; }
  .tarot-card { display: grid; grid-template-columns: 110px 1fr; gap: 14px; }
  .tarot-card-face { min-height: 160px; padding: 10px; }
  .tarot-card-face b { font-size: 17px; }
  .result-conclusion { grid-template-columns: 1fr; }
  .result-conclusion article { border-right: 0; border-bottom: 1px solid rgba(22,56,76,.18); }
  .premium-head, .compass-heading { align-items: flex-start; flex-direction: column; }
  .live-bearing { text-align: left; }
  .bearing-field { grid-template-columns: 1fr; }
  .bearing-field > span { grid-column: auto; }
  .direction-chips { grid-template-columns: repeat(2, 1fr); }
  .nine-palace article { min-height: 112px; padding: 9px; }
  .nine-palace small { font-size: 9px; }
  .nine-palace b, .nine-palace strong { font-size: 18px; }
  .nine-palace i { font-size: 24px; }
  .date-candidates article { grid-template-columns: 52px 1fr; gap: 10px; }
  .date-candidates > article > span { grid-column: 2; justify-self: start; }
  .dayun-track { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .tarot-card { opacity: 1; transform: none; transition: none; }
}

/* Labels orient the reader; entered values and selected choices carry the emphasis. */
.ritual-form .ritual-field > span, .ritual-form legend {
  color: #556168; font-size: 17px; line-height: 1.55; font-weight: 500;
}
.ritual-form .ritual-field :is(input:not([type=range]), select, textarea) {
  color: #153649; font-size: clamp(20px, 1.6vw, 24px); font-weight: 650;
  line-height: 1.45; min-width: 0; max-width: 100%;
}
.ritual-form .ritual-field ::placeholder { color: #626a6e; opacity: 1; font-size: 18px; font-weight: 400; }
.qifu-panel > h2 { color: #586268; font: 500 20px/1.5 "PingFang SC", sans-serif; }
.qifu-panel .choice { position: relative; font: 650 22px/1.45 "PingFang SC", sans-serif; color: #17384b; }
.qifu-panel .choice small { font-size: 16px; line-height: 1.55; font-weight: 400; color: #505d63; }
.qifu-panel .duration-choices b { font: 600 19px/1.45 "PingFang SC", sans-serif; }
.qifu-panel .duration-choices strong { font-size: 28px; font-weight: 700; color: #a3312e; }
.qifu-panel .choice.active { background: #fbefe3; border: 2px solid #953b32; }
.qifu-panel .choice.active::after { content: "已选"; font: 600 14px/1.4 "PingFang SC", sans-serif; color: #81372c; }
.qifu-panel .ritual-button { font-size: 22px; font-weight: 700; }
.qifu-panel :is(input, select, textarea, button):focus-visible { outline: 3px solid #315b70; outline-offset: 3px; }
@media(max-width:600px) {
  .qifu-panel .lamp-choices { grid-template-columns: 1fr; }
  .qifu-panel .lamp-choices .choice { min-height: 80px; grid-template-columns: auto 1fr auto; align-items: center; gap: 2px 12px; }
  .qifu-panel .lamp-choices i { grid-row: 1 / 3; }
  .qifu-panel .lamp-choices small { grid-row: 2; grid-column: 2 / -1; }
  .qifu-panel .lamp-choices .active::after { grid-row: 1; grid-column: 3; }
}
