:root {
  color-scheme: light;
  --ink: #2a211b;
  --muted: #76675a;
  --paper: #ead3ad;
  --paper-deep: #c59258;
  --wood: #a7652c;
  --wood-dark: #71431f;
  --jade: #0f6b5b;
  --rose: #b55b70;
  --gold: #d9a34b;
  --cream: #fff7ea;
  --night: #111a25;
  --violet: #6b4fb2;
  --shadow: 0 22px 60px rgba(16, 12, 8, 0.28);
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

body.is-locked {
  overflow: hidden;
}

body.is-locked .app-shell {
  display: none;
}

.login-gate {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at 50% 22%, rgba(217, 163, 75, 0.22), transparent 18rem),
    linear-gradient(180deg, #f7edda 0%, #ead8b6 100%);
}

body:not(.is-locked) .login-gate {
  display: none;
}

.login-card {
  width: min(100%, 390px);
  padding: 30px;
  border: 1px solid rgba(139, 91, 50, 0.2);
  border-radius: 8px;
  background: rgba(255, 252, 246, 0.92);
  box-shadow: 0 22px 48px rgba(123, 73, 31, 0.18);
}

.login-card .eyebrow {
  margin-bottom: 12px;
  color: #6f4b33;
  text-shadow: none;
}

.login-card h1 {
  margin: 0 0 26px;
  color: #6f4b33;
  font-family: "Songti SC", "STSong", serif;
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
}

.login-card label {
  display: grid;
  gap: 8px;
  color: rgba(93, 62, 40, 0.76);
  font-size: 13px;
  font-weight: 700;
}

.login-card input {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(152, 103, 60, 0.22);
  border-radius: 8px;
  color: #5b3b27;
  background: #fffaf1;
  font-size: 18px;
  outline: none;
}

.login-card input:focus {
  border-color: rgba(138, 101, 72, 0.52);
  box-shadow: 0 0 0 3px rgba(138, 101, 72, 0.12);
}

.login-card button {
  width: 100%;
  min-height: 48px;
  margin-top: 16px;
  border: 0;
  border-radius: 8px;
  color: #fff7e7;
  background: linear-gradient(180deg, #8f6042, #6d4630);
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
}

.login-error {
  min-height: 20px;
  margin: 12px 0 0;
  color: #9b3b2b;
  font-size: 13px;
  font-weight: 700;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(203, 158, 88, 0.18), transparent 26rem),
    radial-gradient(circle at 84% 18%, rgba(107, 79, 178, 0.24), transparent 22rem),
    linear-gradient(135deg, #101a21 0%, #25302d 50%, #69452d 100%);
}

button,
input {
  font: inherit;
}

.app-shell {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 18px;
}

.hero {
  position: relative;
  min-height: auto;
  display: grid;
  gap: 22px;
  padding: clamp(22px, 5vw, 56px);
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: #101722;
}

.hero__cosmos {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 52% 45%, rgba(255, 236, 181, 0.2), transparent 5rem),
    radial-gradient(circle at 50% 42%, rgba(251, 221, 151, 0.16), transparent 7rem),
    radial-gradient(circle at 54% 38%, rgba(123, 76, 176, 0.34), transparent 18rem),
    radial-gradient(circle at 18% 78%, rgba(15, 107, 91, 0.22), transparent 18rem),
    linear-gradient(160deg, #080d18 0%, #121b2c 38%, #2b1f39 70%, #5b3c28 100%);
  filter: saturate(1.04) contrast(1.05);
}

.hero__cosmos::before,
.hero__cosmos::after {
  content: "";
  position: absolute;
  inset: 0;
}

.hero__cosmos::before {
  background-image:
    radial-gradient(circle, rgba(255, 245, 212, 0.92) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(187, 215, 255, 0.68) 0 1px, transparent 1.8px);
  background-position: 0 0, 36px 52px;
  background-size: 86px 86px, 128px 128px;
  animation: starDrift 18s linear infinite;
  opacity: 0.78;
}

.hero__cosmos::after {
  background: linear-gradient(90deg, transparent, rgba(255, 236, 187, 0.2), transparent);
  transform: translateX(-100%) rotate(8deg);
  animation: omenSweep 5.8s ease-in-out infinite;
}

.star {
  position: absolute;
  width: 88px;
  height: 88px;
  border: 1px solid rgba(255, 232, 177, 0.46);
  border-radius: 50%;
  box-shadow: 0 0 28px rgba(255, 226, 169, 0.28);
  animation: pulseStar 4s ease-in-out infinite;
}

.star::before,
.star::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 1px;
  height: 120%;
  background: rgba(255, 232, 177, 0.46);
  transform: translate(-50%, -50%);
}

.star::after {
  width: 120%;
  height: 1px;
}

.star--one {
  left: 11%;
  top: 15%;
}

.star--two {
  right: 13%;
  top: 22%;
  width: 54px;
  height: 54px;
  animation-delay: 1.2s;
}

.star--three {
  right: 25%;
  bottom: 17%;
  width: 38px;
  height: 38px;
  animation-delay: 2s;
}

.astrolabe {
  position: absolute;
  left: 50%;
  top: 45%;
  width: min(62vw, 590px);
  aspect-ratio: 1;
  translate: -50% -50%;
  border: 1px solid rgba(255, 232, 177, 0.58);
  border-radius: 50%;
  box-shadow: inset 0 0 50px rgba(255, 214, 145, 0.08), 0 0 70px rgba(107, 79, 178, 0.25);
  animation: rotateSlow 28s linear infinite;
}

.astrolabe span {
  position: absolute;
  inset: 10%;
  border: 1px solid rgba(255, 232, 177, 0.34);
  border-radius: 50%;
}

.astrolabe span:nth-child(2) {
  inset: 24%;
  border-style: dashed;
}

.astrolabe span:nth-child(3) {
  inset: 50% 6%;
  height: 1px;
  border: 0;
  border-top: 1px solid rgba(255, 232, 177, 0.42);
  border-radius: 0;
  transform: rotate(32deg);
}

.astrolabe span:nth-child(4) {
  inset: 6% 50%;
  width: 1px;
  border: 0;
  border-left: 1px solid rgba(255, 232, 177, 0.42);
  border-radius: 0;
  transform: rotate(-28deg);
}

.crystal-orbit {
  position: absolute;
  left: 50%;
  top: 45%;
  width: min(48vw, 450px);
  aspect-ratio: 1;
  translate: -50% -50%;
  animation: rotateSlow 18s linear infinite reverse;
}

.crystal-orbit i {
  --angle: 0deg;
  position: absolute;
  left: calc(50% - 15px);
  top: calc(50% - 15px);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.92) 0 14%, transparent 15%),
    linear-gradient(135deg, rgba(151, 104, 224, 0.92), rgba(255, 220, 143, 0.8));
  box-shadow: inset -8px -8px 14px rgba(23, 15, 37, 0.34), 0 0 24px rgba(255, 225, 166, 0.28);
  transform: rotate(var(--angle)) translateX(205px) rotate(calc(var(--angle) * -1));
}

.crystal-orbit i:nth-child(2) {
  --angle: 62deg;
}

.crystal-orbit i:nth-child(3) {
  --angle: 126deg;
}

.crystal-orbit i:nth-child(4) {
  --angle: 188deg;
}

.crystal-orbit i:nth-child(5) {
  --angle: 250deg;
}

.crystal-orbit i:nth-child(6) {
  --angle: 312deg;
}

.hero__content {
  position: relative;
  max-width: 620px;
  color: white;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.62);
  z-index: 1;
}

.eyebrow {
  position: relative;
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 0 0 14px;
  padding: 6px 12px 6px 10px;
  border: 1px solid rgba(255, 232, 177, 0.26);
  border-radius: 999px;
  color: #fff4d3;
  background:
    radial-gradient(circle at 18% 50%, rgba(255, 232, 177, 0.22), transparent 1.8rem),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(153, 216, 200, 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 26px rgba(255, 232, 177, 0.14);
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-shadow: 0 0 18px rgba(255, 232, 177, 0.32);
}

.eyebrow::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 1px solid rgba(255, 232, 177, 0.86);
  border-radius: 50%;
  background:
    radial-gradient(circle at 68% 34%, rgba(10, 14, 24, 0.98) 0 4px, transparent 4.5px),
    linear-gradient(135deg, #fff8d8, #d7f3e8);
  box-shadow: 0 0 14px rgba(255, 232, 177, 0.46);
}

.eyebrow::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 12px;
  bottom: 3px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 232, 177, 0.78), transparent);
  opacity: 0.7;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 740px;
  font-size: clamp(42px, 9vw, 88px);
  line-height: 0.96;
}

.hero h1 {
  position: relative;
  display: inline-block;
  padding-right: 0.28em;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", "PingFang SC", serif;
  font-weight: 800;
  color: transparent;
  background:
    linear-gradient(115deg, #fff8df 0%, #f6d98a 35%, #ffffff 55%, #bfe7dd 86%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 28px rgba(255, 232, 177, 0.16), 0 8px 26px rgba(0, 0, 0, 0.34);
}

.hero h1::before {
  content: "";
  position: absolute;
  left: 0.02em;
  right: 0.18em;
  bottom: -0.13em;
  height: 3px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent, rgba(255, 232, 177, 0.92), rgba(153, 216, 200, 0.82), transparent);
  box-shadow: 0 0 18px rgba(255, 232, 177, 0.36);
}

.hero h1::after {
  content: "☾";
  position: absolute;
  right: -0.34em;
  top: -0.18em;
  color: #ffe9a8;
  font-size: 0.34em;
  text-shadow: 0 0 18px rgba(255, 232, 177, 0.46);
}

.intro {
  max-width: 560px;
  margin-top: 18px;
  font-size: clamp(16px, 2.4vw, 20px);
  line-height: 1.75;
  color: rgba(255, 250, 236, 0.9);
}

.workbench,
.stage-grid,
.board-section,
.result-section,
.database-section {
  margin-top: 18px;
}

.profile-form {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.9fr auto;
  gap: 12px;
  align-items: end;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid rgba(255, 232, 177, 0.2);
  background:
    radial-gradient(circle at 16% 8%, rgba(255, 220, 148, 0.2), transparent 9rem),
    radial-gradient(circle at 86% 20%, rgba(126, 95, 207, 0.28), transparent 11rem),
    radial-gradient(circle at 60% 100%, rgba(15, 107, 91, 0.22), transparent 12rem),
    linear-gradient(145deg, rgba(16, 23, 35, 0.78), rgba(35, 29, 48, 0.7) 52%, rgba(38, 48, 43, 0.72));
  box-shadow: 0 28px 80px rgba(3, 7, 12, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.profile-form::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 244, 218, 0.78) 0 1px, transparent 1.8px),
    linear-gradient(120deg, transparent, rgba(255, 232, 177, 0.14), transparent);
  background-size: 46px 46px, 100% 100%;
  mask-image: linear-gradient(120deg, transparent, #000 18%, transparent 68%);
  opacity: 0.38;
  pointer-events: none;
}

.profile-form > * {
  position: relative;
  z-index: 1;
}

.profile-form__section {
  grid-column: 1 / -1;
  margin: 0 0 -2px;
  color: rgba(255, 232, 177, 0.92);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

label {
  display: grid;
  gap: 7px;
  color: rgba(255, 246, 226, 0.78);
  font-size: 13px;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

input,
output,
select {
  display: flex;
  align-items: center;
  min-height: 46px;
  width: 100%;
  border: 1px solid rgba(255, 232, 177, 0.18);
  border-radius: 8px;
  padding: 0 14px;
  color: #fff8e7;
  background: rgba(8, 13, 21, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 22px rgba(0, 0, 0, 0.12);
}

input::placeholder {
  color: rgba(255, 246, 226, 0.52);
}

select {
  appearance: none;
  font: inherit;
  background:
    linear-gradient(45deg, transparent 50%, rgba(255, 232, 177, 0.72) 50%) calc(100% - 18px) 20px / 7px 7px no-repeat,
    linear-gradient(135deg, rgba(255, 232, 177, 0.72) 50%, transparent 50%) calc(100% - 13px) 20px / 7px 7px no-repeat,
    rgba(8, 13, 21, 0.42);
}

button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  padding: 0 22px;
  color: white;
  background: var(--jade);
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(15, 107, 91, 0.25);
}

.stage-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 18px;
}

.astro-panel,
.paper-panel,
.board-section,
.result-section,
.database-section {
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 250, 240, 0.96);
  box-shadow: var(--shadow);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.section-title span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: white;
  background: var(--ink);
  font-size: 12px;
}

.section-title h2 {
  font-size: 21px;
}

.portrait {
  display: grid;
  grid-template-columns: 154px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 180px;
}

.astro-canvas {
  position: relative;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 248, 225, 0.96) 0 8%, transparent 9%),
    radial-gradient(circle at 50% 50%, rgba(107, 79, 178, 0.24), rgba(15, 107, 91, 0.16) 55%, rgba(255, 236, 192, 0.2));
  box-shadow: inset 0 0 0 1px rgba(42, 33, 27, 0.1), 0 18px 34px rgba(42, 33, 27, 0.16);
}

.astro-svg {
  width: 100%;
  height: 100%;
}

.draw-ring,
.draw-line {
  fill: none;
  stroke: rgba(42, 33, 27, 0.66);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 560;
  stroke-dashoffset: 560;
  animation: drawStroke 2.4s ease forwards;
}

.draw-ring {
  stroke: rgba(217, 163, 75, 0.8);
}

.draw-ring--slow {
  animation-duration: 3.2s;
}

.draw-line--one {
  animation-delay: 0.6s;
}

.draw-line--two {
  animation-delay: 1.2s;
}

.draw-line--three {
  animation-delay: 1.7s;
}

.node {
  fill: rgba(107, 79, 178, 0.86);
  opacity: 0;
  filter: drop-shadow(0 0 10px rgba(107, 79, 178, 0.42));
  animation: nodePulse 1.7s ease forwards;
}

.node--one {
  animation-delay: 1s;
}

.node--two {
  fill: rgba(217, 163, 75, 0.9);
  animation-delay: 1.35s;
}

.node--three {
  fill: rgba(216, 237, 240, 0.94);
  animation-delay: 1.7s;
}

.node--four {
  fill: rgba(181, 91, 112, 0.9);
  animation-delay: 2s;
}

.scan-light {
  position: absolute;
  inset: -20%;
  background: conic-gradient(from 0deg, transparent 0 74%, rgba(255, 237, 184, 0.5) 80%, transparent 86% 100%);
  animation: rotateSlow 4.8s linear infinite;
  mix-blend-mode: screen;
  pointer-events: none;
}

.portrait p {
  color: var(--muted);
  font-size: 14px;
}

.portrait strong {
  display: block;
  margin: 5px 0 9px;
  font-size: 34px;
}

.portrait span {
  line-height: 1.6;
  color: var(--muted);
}

.traits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.traits span {
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(15, 107, 91, 0.1);
  color: var(--jade);
  font-size: 13px;
}

.paper {
  position: relative;
  min-height: 360px;
  padding: 24px 24px 20px;
  border-radius: 4px;
  background:
    radial-gradient(circle at 78% 18%, rgba(132, 82, 42, 0.13), transparent 12rem),
    radial-gradient(circle at 18% 78%, rgba(217, 163, 75, 0.12), transparent 14rem),
    linear-gradient(105deg, rgba(255, 255, 255, 0.3), transparent 42%),
    linear-gradient(180deg, #f0d8aa, #dfbe83);
  box-shadow: inset 0 0 0 1px rgba(78, 49, 20, 0.1), 0 14px 26px rgba(78, 49, 20, 0.18);
  overflow: hidden;
}

.paper::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(113, 67, 31, 0.08), transparent 7rem),
    linear-gradient(90deg, transparent 49%, rgba(79, 51, 35, 0.12) 50%, transparent 51%),
    repeating-linear-gradient(102deg, rgba(73, 48, 29, 0.035) 0 2px, transparent 3px 11px);
  pointer-events: none;
}

.paper-hand {
  position: absolute;
  left: 42%;
  top: 140px;
  width: 92px;
  height: 32px;
  border-radius: 70% 28% 32% 72%;
  background: rgba(244, 205, 181, 0.96);
  box-shadow: -18px 18px 26px rgba(72, 40, 18, 0.16);
  transform: rotate(-18deg);
  animation: birthdayTreeHand 4.2s ease-in-out both;
  z-index: 2;
}

.paper-hand::after {
  content: "";
  position: absolute;
  left: -58px;
  top: 16px;
  width: 70px;
  height: 5px;
  border-radius: 999px;
  background: #6b2030;
  transform: rotate(-10deg);
}

.formula-head {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 26px;
  color: #4f3323;
  font-family: "Bradley Hand", "Kaiti SC", cursive;
  font-size: 30px;
  grid-column: 1 / -1;
}

.formula-sketch {
  position: relative;
  z-index: 1;
  width: min(390px, 100%);
  margin: 12px auto 14px;
  color: #4f3323;
  font-family: "Bradley Hand", "Kaiti SC", cursive;
  font-size: 34px;
  aspect-ratio: 1.44;
}

.formula-sketch svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.sketch-line {
  fill: none;
  stroke: rgba(67, 43, 29, 0.76);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 360;
  stroke-dashoffset: 360;
  animation: drawStroke 1.2s ease forwards;
}

.sketch-line--b {
  animation-delay: 0.2s;
}

.sketch-line--c {
  animation-delay: 0.4s;
}

.sketch-line--d {
  animation-delay: 1.55s;
}

.sketch-line--e {
  animation-delay: 2.45s;
}

.sketch-line--f {
  animation-delay: 1.75s;
}

.sketch-line--g {
  animation-delay: 1.92s;
}

.sketch-line--h {
  animation-delay: 2.08s;
}

.sketch-line--i {
  animation-delay: 2.62s;
}

.sketch-numbers {
  position: absolute;
  inset: 0;
}

.sketch-numbers span {
  position: absolute;
  translate: -50% -50%;
  opacity: 0;
  animation: writeNumber 520ms ease forwards;
}

.sketch-num--top {
  left: 50%;
  top: 26%;
}

.sketch-num--mid-left {
  left: 43%;
  top: 50%;
}

.sketch-num--mid-right {
  left: 57%;
  top: 50%;
}

.sketch-num--base-a {
  left: 24%;
  top: 82%;
}

.sketch-num--base-b {
  left: 43%;
  top: 81%;
}

.sketch-num--base-c {
  left: 57%;
  top: 81%;
}

.sketch-num--base-d {
  left: 76%;
  top: 82%;
}

.formula-list {
  position: relative;
  z-index: 1;
  display: none;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
  color: #5e4938;
  line-height: 1.6;
  grid-column: 1 / -1;
}

.formula-list li {
  opacity: 0;
  transform: translateY(8px);
  animation: writeNumber 520ms ease forwards;
}

.number-meanings {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
  margin-top: 8px;
}

.meaning-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 10px;
  align-items: center;
  min-height: 96px;
  padding: 12px;
  border: 1px solid rgba(79, 51, 35, 0.14);
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 12%, rgba(217, 163, 75, 0.2), transparent 3rem),
    rgba(255, 248, 229, 0.6);
  box-shadow: 0 10px 22px rgba(78, 49, 20, 0.08);
  opacity: 0;
  transform: translateX(14px);
  animation: meaningReveal 620ms ease forwards;
}

.meaning-card span {
  grid-column: 1 / -1;
  color: #8b6342;
  font-size: 12px;
}

.meaning-card strong {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 50%;
  color: #fff8e7;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 232, 177, 0.24), transparent 1.2rem),
    #4f3323;
  font-family: "Bradley Hand", "Kaiti SC", cursive;
  font-size: clamp(16px, 2vw, 22px);
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 232, 177, 0.18), 0 6px 12px rgba(79, 51, 35, 0.18);
}

.meaning-card strong:not(:empty) {
  border-radius: 999px;
}

.meaning-card em {
  color: #4f3323;
  font-style: normal;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.formula-subtitle {
  display: none;
}

.board-caption {
  margin: -4px 0 16px;
  color: var(--muted);
  line-height: 1.7;
}

.wood-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(9, minmax(28px, 1fr));
  gap: clamp(8px, 2.2vw, 17px);
  padding: clamp(16px, 4vw, 28px);
  border: 12px solid #ba7435;
  border-radius: 8px;
  background:
    linear-gradient(100deg, rgba(255, 223, 163, 0.22), transparent 30%),
    repeating-linear-gradient(8deg, rgba(255, 255, 255, 0.05) 0 10px, rgba(82, 39, 11, 0.07) 11px 16px),
    var(--wood);
  box-shadow: inset 0 0 0 3px rgba(255, 215, 142, 0.24), var(--shadow);
  overflow: hidden;
}

.wood-board::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 4px;
  box-shadow: inset 0 0 42px rgba(255, 230, 173, 0.2), inset 0 0 0 1px rgba(255, 225, 164, 0.25);
  pointer-events: none;
}

.socket,
.bead {
  aspect-ratio: 1;
  border-radius: 50%;
}

.socket {
  position: relative;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 218, 154, 0.9), rgba(126, 67, 25, 0.16) 33%, rgba(78, 37, 14, 0.28) 68%, rgba(255, 216, 141, 0.45) 70%);
  box-shadow: inset 5px 5px 9px rgba(63, 28, 8, 0.38), inset -4px -4px 8px rgba(255, 222, 158, 0.44);
}

.socket .bead {
  width: 88%;
  margin: 6%;
  animation: beadPlace 820ms cubic-bezier(0.16, 0.95, 0.28, 1.18) both;
}

.bead {
  position: relative;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.92) 0 12%, transparent 13%),
    radial-gradient(circle at 68% 72%, rgba(0, 0, 0, 0.26), transparent 0 28%, transparent 29%),
    linear-gradient(42deg, rgba(255, 255, 255, 0.35), transparent 32%),
    var(--bead-color);
  box-shadow: inset -12px -14px 18px rgba(22, 12, 11, 0.32), inset 5px 5px 9px rgba(255, 255, 255, 0.28), 0 12px 18px rgba(51, 31, 22, 0.24);
}

.bead::after {
  content: "";
  width: 21%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(18, 13, 14, 0.3);
  box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.36), 0 0 6px rgba(255, 255, 255, 0.18);
}

.bead.bead--photo {
  border-radius: 0;
  overflow: visible;
  background: var(--bead-image) center / contain no-repeat;
  box-shadow: none;
  filter: drop-shadow(0 9px 12px rgba(0, 0, 0, 0.22));
}

.bead.bead--photo::before,
.bead.bead--photo::after {
  display: none;
}

.socket .bead.bead--photo {
  width: 118%;
  margin: -9%;
}

.bracelet-wrap {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 24px;
  align-items: center;
}

.bracelet-preview {
  display: grid;
  justify-items: center;
  gap: 12px;
  min-width: 0;
}

.bracelet {
  position: relative;
  width: var(--finished-bracelet-size, min(430px, 80vw));
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.72) 0 37%, transparent 38%),
    radial-gradient(circle, transparent 48%, rgba(80, 55, 36, 0.28) 49% 50%, transparent 51%),
    radial-gradient(circle at 50% 62%, rgba(71, 44, 24, 0.18), transparent 42%);
  filter: drop-shadow(0 24px 34px rgba(39, 24, 18, 0.22));
}

.bracelet.bracelet--dense {
  max-width: 500px;
}

.bracelet::before,
.bracelet::after {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  border: 2px solid rgba(98, 62, 39, 0.16);
}

.bracelet::after {
  inset: 24%;
  border-color: rgba(255, 255, 255, 0.6);
  filter: blur(8px);
}

.bracelet .bead {
  position: absolute;
  width: var(--bead-size, 52px);
  height: var(--bead-size, 52px);
  left: calc(50% - var(--bead-half, 26px));
  top: calc(50% - var(--bead-half, 26px));
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.98) 0 9%, transparent 10%),
    radial-gradient(circle at 42% 34%, rgba(255, 255, 255, 0.38), transparent 0 28%, transparent 29%),
    linear-gradient(138deg, rgba(255, 255, 255, 0.36), transparent 28%, rgba(255, 255, 255, 0.12) 54%, transparent 72%),
    radial-gradient(circle at 70% 76%, rgba(0, 0, 0, 0.28), transparent 34%),
    var(--bead-color);
  box-shadow:
    inset -13px -15px 20px rgba(18, 10, 12, 0.28),
    inset 7px 7px 13px rgba(255, 255, 255, 0.32),
    0 14px 22px rgba(0, 0, 0, 0.22);
  transform: rotate(var(--angle)) translateX(var(--bracelet-radius, 170px)) rotate(calc(var(--angle) * -1));
  animation: braceletAppear 850ms cubic-bezier(0.16, 0.95, 0.28, 1.18) both;
}

.bracelet .bead::before {
  content: "";
  position: absolute;
  inset: 16% 18% auto auto;
  width: 42%;
  height: 20%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.26);
  filter: blur(3px);
  transform: rotate(-24deg);
}

.bracelet .bead::after {
  content: "";
  position: absolute;
  left: 18%;
  top: 16%;
  width: 18%;
  height: 18%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 10px 8px 18px rgba(255, 255, 255, 0.22);
}

.bracelet .bead.bead--photo {
  overflow: visible;
  background: var(--bead-image) center / contain no-repeat;
  box-shadow: none;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.2));
}

.bracelet .bead.bead--photo::before,
.bracelet .bead.bead--photo::after {
  display: none;
}

.bracelet-size-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  color: rgba(108, 79, 56, 0.78);
  font-size: 12px;
}

.bracelet-size-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bracelet-size-legend i {
  display: inline-block;
  width: var(--legend-size);
  height: var(--legend-size);
  border-radius: 50%;
  background: linear-gradient(145deg, #fff9ef, #d9a34b);
  box-shadow: inset -2px -3px 5px rgba(111, 73, 36, 0.18);
}

.recipe {
  display: grid;
  gap: 11px;
}

.recipe-summary {
  display: grid;
  gap: 6px;
  padding: 15px;
  border: 1px solid rgba(217, 163, 75, 0.34);
  border-radius: 8px;
  background:
    radial-gradient(circle at 86% 16%, rgba(217, 163, 75, 0.24), transparent 4.8rem),
    linear-gradient(145deg, rgba(255, 249, 231, 0.96), rgba(245, 230, 202, 0.72));
  box-shadow: 0 14px 28px rgba(82, 54, 31, 0.12);
}

.recipe-summary span {
  color: #7b5b3a;
  font-size: 13px;
}

.recipe-summary strong {
  color: #4f3323;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
}

.recipe-summary em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.55;
}

.recipe-item,
.db-card {
  border: 1px solid rgba(42, 33, 27, 0.12);
  border-radius: 8px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.58);
}

.recipe-item header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 6px;
}

.recipe-item strong,
.db-card strong {
  display: block;
  margin-bottom: 6px;
}

.recipe-item header span {
  flex: 0 0 auto;
  color: #7a4f2b;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.recipe-item p,
.db-card p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.database-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

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

.db-card header div {
  min-width: 0;
}

.db-card--asset,
.db-card--library {
  display: grid;
  gap: 12px;
  padding: 12px;
  background:
    radial-gradient(circle at 20% 12%, rgba(255, 232, 177, 0.16), transparent 4rem),
    rgba(255, 250, 240, 0.9);
}

.db-card--library {
  background:
    radial-gradient(circle at 16% 10%, rgba(136, 194, 177, 0.12), transparent 5rem),
    radial-gradient(circle at 88% 0%, rgba(229, 181, 98, 0.18), transparent 5.6rem),
    rgba(255, 250, 240, 0.92);
}

.db-card__images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.db-card__image {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 132px;
  padding: 8px;
  border: 1px solid rgba(84, 67, 45, 0.14);
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.7), transparent 5rem),
    linear-gradient(145deg, #f8f3e8, #ded8ca);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66), 0 12px 26px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin: 0;
}

.db-card__image--showcase {
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 230, 172, 0.42), transparent 4.8rem),
    radial-gradient(circle at 18% 18%, rgba(108, 193, 176, 0.3), transparent 4.4rem),
    radial-gradient(circle at 78% 86%, rgba(158, 105, 77, 0.28), transparent 4.6rem),
    linear-gradient(150deg, #172024 0%, #203531 48%, #4a382c 100%);
}

.db-card__image img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 148px;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(39, 31, 22, 0.14);
}

.db-card__image--showcase img {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 6px;
  object-fit: cover;
  filter: none;
  box-shadow: 0 8px 18px rgba(39, 31, 22, 0.14);
}

.db-card__image figcaption {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 2;
  display: inline-grid;
  min-height: 22px;
  place-items: center;
  padding: 0 8px;
  border-radius: 999px;
  color: #fff9ed;
  background: rgba(49, 35, 25, 0.72);
  font-size: 11px;
}

.db-card__hero {
  position: relative;
  min-height: 220px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(84, 67, 45, 0.14);
  border-radius: 8px;
  background: #f5eddf;
  box-shadow: 0 16px 30px rgba(31, 23, 16, 0.12);
}

.db-card__hero img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.db-card__hero figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  display: inline-grid;
  min-height: 24px;
  place-items: center;
  padding: 0 9px;
  border-radius: 999px;
  color: #fff9ed;
  background: rgba(31, 24, 20, 0.76);
  font-size: 12px;
}

.db-card__body header span {
  color: var(--muted);
  font-size: 12px;
}

.price-pill {
  flex: 0 0 auto;
  display: inline-grid;
  min-height: 28px;
  place-items: center;
  padding: 0 10px;
  border: 1px solid rgba(217, 163, 75, 0.4);
  border-radius: 999px;
  color: #4f3323;
  background:
    linear-gradient(135deg, rgba(255, 248, 226, 0.96), rgba(234, 199, 132, 0.42));
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.db-tags,
.db-functions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.db-tags span,
.db-functions em {
  display: inline-grid;
  min-height: 24px;
  place-items: center;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
}

.db-tags span {
  color: #fff8e7;
  background: #4f3323;
}

.db-functions em {
  color: #3d2a1e;
  border: 1px solid rgba(217, 163, 75, 0.38);
  background: rgba(255, 232, 177, 0.56);
}

@keyframes drawStroke {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes writeNumber {
  from {
    opacity: 0;
    transform: translateY(8px) rotate(-4deg) scale(0.86);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(-1deg) scale(1);
  }
}

@keyframes nodePulse {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  65% {
    opacity: 1;
    transform: scale(1.24);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes beadPlace {
  from {
    opacity: 0;
    transform: translateY(-72px) scale(0.72);
    filter: blur(2px);
  }
  62% {
    opacity: 1;
    transform: translateY(6px) scale(1.06);
    filter: blur(0);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes braceletAppear {
  from {
    opacity: 0;
    transform: rotate(var(--angle)) translateX(calc(var(--bracelet-radius, 170px) - 42px)) rotate(calc(var(--angle) * -1)) scale(0.5);
  }
  to {
    opacity: 1;
    transform: rotate(var(--angle)) translateX(var(--bracelet-radius, 170px)) rotate(calc(var(--angle) * -1)) scale(1);
  }
}

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

@keyframes starDrift {
  to {
    background-position: 86px 86px, 164px 180px;
  }
}

@keyframes omenSweep {
  0%,
  38% {
    transform: translateX(-120%) rotate(8deg);
  }
  74%,
  100% {
    transform: translateX(120%) rotate(8deg);
  }
}

@keyframes pulseStar {
  0%,
  100% {
    opacity: 0.42;
    transform: scale(0.94);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes handDraw {
  0% {
    opacity: 0;
    transform: translate(-150px, -22px) rotate(-18deg);
  }
  18% {
    opacity: 1;
  }
  65% {
    opacity: 1;
    transform: translate(-36px, 98px) rotate(-10deg);
  }
  100% {
    opacity: 0;
    transform: translate(26px, 132px) rotate(-8deg);
  }
}

@keyframes birthdayTreeHand {
  0% {
    opacity: 0;
    transform: translate(-210px, 118px) rotate(-18deg);
  }
  8%,
  82% {
    opacity: 1;
  }
  20% {
    transform: translate(-70px, 122px) rotate(-15deg);
  }
  42% {
    transform: translate(42px, 68px) rotate(-12deg);
  }
  64% {
    transform: translate(0, 8px) rotate(-16deg);
  }
  82% {
    transform: translate(120px, 10px) rotate(-10deg);
  }
  100% {
    opacity: 0;
    transform: translate(180px, 120px) rotate(-8deg);
  }
}

@keyframes meaningReveal {
  from {
    opacity: 0;
    transform: translateX(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@media (max-width: 860px) {
  .app-shell {
    padding: 10px;
  }

  .hero {
    min-height: 430px;
  }

  .astrolabe {
    width: 138vw;
  }

  .crystal-orbit {
    width: 106vw;
  }

  .crystal-orbit i {
    transform: rotate(var(--angle)) translateX(170px) rotate(calc(var(--angle) * -1));
  }

  .profile-form,
  .stage-grid,
  .bracelet-wrap,
  .database-grid {
    grid-template-columns: 1fr;
  }

  .portrait {
    grid-template-columns: 118px 1fr;
  }

  .wood-board {
    grid-template-columns: repeat(7, 1fr);
    border-width: 8px;
  }

  .bracelet .bead {
    transform: rotate(var(--angle)) translateX(var(--bracelet-radius, 120px)) rotate(calc(var(--angle) * -1));
  }
}

.stepper {
  position: sticky;
  top: 10px;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px;
  border: 1px solid rgba(255, 232, 177, 0.18);
  border-radius: 8px;
  background: rgba(10, 14, 22, 0.76);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.step-dot {
  min-height: 38px;
  padding: 0 8px;
  border: 1px solid rgba(255, 232, 177, 0.18);
  border-radius: 999px;
  color: rgba(255, 248, 228, 0.72);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

.step-dot.is-active {
  color: #241811;
  background: linear-gradient(135deg, #fff1bd, #d9a34b);
  box-shadow: 0 0 24px rgba(255, 224, 153, 0.28);
}

.step-dot.is-complete {
  color: rgba(255, 244, 216, 0.95);
  border-color: rgba(255, 232, 177, 0.44);
}

.step-screen {
  display: none;
  min-height: calc(100vh - 104px);
  animation: sceneIn 520ms ease both;
}

.step-screen.is-active {
  display: block;
}

.hero.step-screen.is-active {
  display: block;
}

.profile-form--floating {
  position: relative;
  z-index: 2;
  grid-template-columns: 1.1fr 1fr 0.9fr auto;
  backdrop-filter: blur(18px);
}

.wish-field {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: rgba(255, 246, 226, 0.78);
}

.size-field {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: rgba(255, 246, 226, 0.78);
}

.size-field legend,
.wish-field legend {
  flex: 0 0 100%;
  margin-bottom: 4px;
  color: rgba(255, 232, 177, 0.9);
  font-size: 13px;
  font-weight: 700;
}

.wish-field legend {
  margin-bottom: 10px;
}

.size-field legend {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 5px;
  width: 100%;
}

.size-field:has(.measure-help[open]) legend {
  margin-bottom: 100px;
}

.measure-help {
  position: static;
  display: inline-block;
  z-index: 8;
}

.measure-help[open] {
  z-index: 12;
}

.measure-help summary {
  display: inline-grid;
  place-items: center;
  width: 16px;
  min-height: 16px;
  height: 16px;
  border: 1px solid rgba(255, 232, 177, 0.38);
  border-radius: 50%;
  color: #fff4cf;
  background: rgba(255, 232, 177, 0.12);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  list-style: none;
  cursor: pointer;
}

.measure-help summary::-webkit-details-marker {
  display: none;
}

.measure-help p {
  position: absolute;
  top: 24px;
  left: 0;
  right: auto;
  width: 100%;
  margin: 8px 0 2px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 232, 177, 0.28);
  border-radius: 8px;
  color: #fff8e7;
  background: rgba(17, 23, 33, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-size: 12px;
  line-height: 1.6;
}

.measure-help:not([open]) p {
  display: none;
}

.measure-help[open] p {
  display: block;
}

.size-field label,
.wish-field label {
  display: block;
  color: rgba(255, 248, 232, 0.9);
}

.size-field input,
.wish-field input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.size-field span,
.wish-field span {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 13px 8px 10px;
  border: 1px solid rgba(255, 232, 177, 0.15);
  border-radius: 8px;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 232, 177, 0.13), transparent 2.5rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 246, 226, 0.035));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 18px rgba(0, 0, 0, 0.12);
  font-size: 13px;
  font-weight: 650;
  transition: 180ms ease;
}

.size-field span {
  justify-content: center;
  min-width: 74px;
  padding: 8px 13px;
}

.wish-field span::before {
  content: "◇";
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  color: #fff0ba;
  background: rgba(217, 163, 75, 0.16);
  font-size: 13px;
}

.wish-field label:nth-of-type(1) span::before {
  content: "财";
}

.wish-field label:nth-of-type(2) span::before {
  content: "安";
}

.wish-field label:nth-of-type(3) span::before {
  content: "智";
}

.wish-field label:nth-of-type(4) span::before {
  content: "缘";
}

.wish-field label:nth-of-type(5) span::before {
  content: "愈";
}

.wish-field label:nth-of-type(6) span::before {
  content: "育";
}

.wish-field label:nth-of-type(7) span::before {
  content: "运";
}

.wish-field label:nth-of-type(8) span::before {
  content: "护";
}

.wish-field label:nth-of-type(9) span::before {
  content: "圆";
}

.size-field input:checked + span,
.wish-field input:checked + span {
  color: #fff8e7;
  border-color: rgba(255, 232, 177, 0.5);
  background:
    radial-gradient(circle at 82% 20%, rgba(255, 232, 177, 0.28), transparent 3rem),
    linear-gradient(135deg, #0f6b5b, #27523d);
  box-shadow: 0 12px 24px rgba(15, 107, 91, 0.28);
  transform: translateY(-1px);
}

.wish-field input:checked + span::before {
  color: #241811;
  background: linear-gradient(135deg, #fff1bd, #d9a34b);
}

.wish-field--detail {
  display: block;
}

.wish-field--detail legend {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.wish-field--detail legend small {
  color: rgba(255, 248, 232, 0.58);
  font-size: 12px;
  font-weight: 600;
}

.wish-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-height: none;
  padding-right: 4px;
  overflow: visible;
}

.wish-detail-grid::-webkit-scrollbar {
  width: 7px;
}

.wish-detail-grid::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 232, 177, 0.28);
}

.wish-group {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 8px;
  border: 1px solid rgba(255, 232, 177, 0.14);
  border-radius: 8px;
  background: rgba(17, 23, 33, 0.26);
}

.wish-group:has(input:checked) {
  border-color: rgba(255, 232, 177, 0.32);
  background: rgba(31, 59, 50, 0.35);
}

.wish-group__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  color: #ffe8b1;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 246, 226, 0.04));
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.wish-group__toggle::after {
  content: "展开";
  color: rgba(255, 248, 232, 0.62);
  font-size: 12px;
  font-weight: 650;
}

.wish-group.is-open .wish-group__toggle::after {
  content: "收起";
}

.wish-group:has(input:checked) .wish-group__toggle::before {
  content: "已选";
  order: 2;
  margin-left: auto;
  margin-right: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  color: #271c13;
  background: linear-gradient(135deg, #fff1bd, #d9a34b);
  font-size: 11px;
}

.wish-group label {
  display: none;
  width: calc(50% - 4px);
}

.wish-group:has(input:checked):not(.is-open) label:has(input:checked) {
  display: block;
}

.wish-group.is-open label {
  display: block;
}

.wish-field--detail label {
  min-width: 0;
}

.wish-field--detail span {
  justify-content: flex-start;
  min-height: 34px;
  padding: 6px 9px;
  font-size: 12px;
  line-height: 1.2;
}

.wish-field--detail span::before,
.wish-field--detail label:nth-of-type(n) span::before {
  content: "＋";
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  font-size: 11px;
}

.wish-field--detail input:checked + span::before {
  content: "✓";
}

.divination-screen,
.formula-screen,
.board-section.step-screen,
.result-section.step-screen,
.order-section.step-screen,
.database-section.step-screen {
  padding: clamp(14px, 3vw, 24px);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 14%, rgba(255, 233, 177, 0.14), transparent 18rem),
    linear-gradient(160deg, rgba(16, 22, 34, 0.96), rgba(31, 26, 38, 0.96));
  box-shadow: var(--shadow);
}

.oracle-panel,
.formula-screen .paper-panel {
  min-height: calc(100vh - 154px);
  color: #fff6df;
  background: transparent;
  box-shadow: none;
}

.oracle-layout {
  display: grid;
  grid-template-columns: minmax(360px, 1.15fr) minmax(280px, 0.7fr);
  gap: clamp(22px, 5vw, 56px);
  align-items: center;
  min-height: calc(100vh - 250px);
}

.analysis-board {
  position: relative;
  --analysis-center-offset: 36px;
  width: min(72vh, 620px);
  max-width: 100%;
  margin: 0 auto;
  padding: 22px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 232, 177, 0.22), transparent 7rem),
    radial-gradient(circle at 14% 18%, rgba(137, 105, 220, 0.22), transparent 10rem),
    radial-gradient(circle at 86% 86%, rgba(15, 107, 91, 0.18), transparent 10rem),
    linear-gradient(145deg, rgba(14, 21, 34, 0.96), rgba(31, 27, 48, 0.94));
  box-shadow: inset 0 0 0 1px rgba(255, 232, 177, 0.18), 0 34px 80px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.analysis-board::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle, rgba(255, 245, 212, 0.52) 0 1px, transparent 1.8px),
    linear-gradient(90deg, rgba(255, 232, 177, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 232, 177, 0.06) 1px, transparent 1px);
  background-size: 86px 86px, 42px 42px, 42px 42px;
  opacity: 0.42;
  pointer-events: none;
}

.analysis-heading {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
  margin-bottom: 18px;
  color: #fff4d3;
}

.analysis-heading strong {
  font-size: 21px;
}

.analysis-heading span {
  max-width: 260px;
  color: rgba(255, 246, 226, 0.62);
  font-size: 12px;
  line-height: 1.5;
  text-align: right;
}

.analysis-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  grid-template-rows: repeat(3, minmax(118px, 1fr));
}

.analysis-card {
  min-height: 118px;
  padding: 13px 11px;
  border: 1px solid rgba(255, 232, 177, 0.14);
  border-radius: 8px;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 232, 177, 0.12), transparent 3rem),
    rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 24px rgba(0, 0, 0, 0.16);
  color: #fff6df;
  opacity: 0;
  transform: translateY(12px);
  animation: cardReveal 560ms ease forwards;
}

.analysis-card:nth-child(1) { grid-column: 1; grid-row: 1; }
.analysis-card:nth-child(2) { grid-column: 2; grid-row: 1; }
.analysis-card:nth-child(3) { grid-column: 3; grid-row: 1; }
.analysis-card:nth-child(4) { grid-column: 1; grid-row: 2; }
.analysis-card:nth-child(5) { grid-column: 3; grid-row: 2; }
.analysis-card:nth-child(6) { grid-column: 1; grid-row: 3; }
.analysis-card:nth-child(7) { grid-column: 2; grid-row: 3; }
.analysis-card:nth-child(8) { grid-column: 3; grid-row: 3; }

.analysis-card strong {
  display: block;
  margin-bottom: 8px;
  color: #ffe7a9;
  font-size: clamp(15px, 1.5vw, 19px);
  line-height: 1.15;
}

.analysis-card span {
  display: block;
  margin-bottom: 7px;
  color: #99d8c8;
  font-size: 13px;
  font-weight: 700;
}

.analysis-card--element {
  border-color: color-mix(in srgb, var(--element-color) 46%, rgba(255, 232, 177, 0.2));
  background:
    radial-gradient(circle at 88% 12%, color-mix(in srgb, var(--element-color) 28%, transparent), transparent 3rem),
    linear-gradient(135deg, color-mix(in srgb, var(--element-color) 12%, rgba(255, 255, 255, 0.06)), rgba(255, 255, 255, 0.06));
}

.analysis-card--element span {
  color: color-mix(in srgb, var(--element-color) 72%, #fff3cc);
}

.analysis-card p {
  color: rgba(255, 248, 232, 0.72);
  font-size: 12px;
  line-height: 1.55;
  display: none;
}

.analysis-center {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: calc(50% + var(--analysis-center-offset));
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  border: 1px solid rgba(255, 232, 177, 0.42);
  border-radius: 50%;
  color: #fff1bd;
  background:
    radial-gradient(circle at 36% 26%, rgba(255, 255, 255, 0.2), transparent 2rem),
    linear-gradient(145deg, rgba(107, 79, 178, 0.86), rgba(15, 107, 91, 0.74));
  box-shadow: 0 0 0 14px rgba(255, 232, 177, 0.08), 0 0 44px rgba(255, 232, 177, 0.22), 0 16px 36px rgba(0, 0, 0, 0.26);
  transform: translate(-50%, -50%);
  animation: analysisCenterGlow 4s ease-in-out infinite;
}

.analysis-center span {
  font-size: 72px;
  line-height: 0.8;
}

.analysis-center em {
  color: rgba(255, 248, 232, 0.86);
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
}

.oracle-layout .astro-canvas {
  width: min(72vh, 620px);
  max-width: 100%;
  margin: 0 auto;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 251, 225, 0.92) 0 6%, transparent 7%),
    radial-gradient(circle at 50% 50%, rgba(123, 76, 176, 0.34), rgba(15, 107, 91, 0.18) 54%, rgba(255, 236, 192, 0.08)),
    conic-gradient(from 20deg, rgba(255, 232, 177, 0.12), rgba(123, 76, 176, 0.24), rgba(15, 107, 91, 0.18), rgba(255, 232, 177, 0.12));
  box-shadow: inset 0 0 0 1px rgba(255, 236, 192, 0.26), inset 0 0 90px rgba(255, 232, 177, 0.14), 0 34px 80px rgba(0, 0, 0, 0.36);
}

.oracle-glow {
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 240, 184, 0.32), transparent 58%);
  animation: breatheGlow 3.8s ease-in-out infinite;
}

.oracle-card {
  position: absolute;
  width: 20%;
  height: 30%;
  border: 1px solid rgba(255, 234, 182, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 249, 229, 0.16), rgba(255, 255, 255, 0.02)),
    linear-gradient(160deg, rgba(73, 48, 94, 0.68), rgba(18, 26, 37, 0.82));
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.24);
  opacity: 0;
  animation: cardReveal 950ms ease forwards;
}

.oracle-card::before {
  content: "";
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(255, 229, 170, 0.38);
  border-radius: 50%;
}

.oracle-card--one {
  left: 7%;
  top: 28%;
  transform: rotate(-17deg);
  animation-delay: 0.3s;
}

.oracle-card--two {
  right: 7%;
  top: 25%;
  transform: rotate(18deg);
  animation-delay: 0.52s;
}

.oracle-card--three {
  left: 40%;
  bottom: 2%;
  transform: rotate(5deg);
  animation-delay: 0.72s;
}

.oracle-copy {
  color: #fff7e6;
}

.eyebrow-dark {
  margin-bottom: 12px;
  color: rgba(255, 232, 177, 0.78);
  font-size: 14px;
}

.oracle-copy p:not(.eyebrow-dark) {
  color: rgba(255, 250, 236, 0.72);
}

.oracle-copy strong {
  display: block;
  margin: 8px 0 14px;
  font-size: clamp(56px, 9vw, 112px);
  line-height: 0.95;
  text-shadow: 0 0 34px rgba(255, 226, 169, 0.18);
}

.oracle-copy > span {
  display: block;
  max-width: 460px;
  color: rgba(255, 250, 236, 0.78);
  font-size: 18px;
  line-height: 1.8;
}

.oracle-copy .traits span {
  color: #241811;
  background: linear-gradient(135deg, #fff3c8, #d8b56b);
}

.draw-ring--wide {
  animation-duration: 3.8s;
  stroke: rgba(255, 232, 177, 0.62);
}

.draw-line--four {
  animation-delay: 2.1s;
  stroke: rgba(255, 232, 177, 0.54);
}

.draw-line--five {
  animation-delay: 2.35s;
  stroke: rgba(255, 232, 177, 0.54);
}

.node--five {
  fill: rgba(255, 232, 177, 0.96);
  animation-delay: 2.2s;
}

.formula-screen .paper {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(260px, 1fr);
  gap: 8px 26px;
  width: min(980px, 100%);
  min-height: calc(100vh - 230px);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 44px);
  transform: rotate(-0.4deg);
}

.formula-screen {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 232, 177, 0.2), transparent 15rem),
    radial-gradient(circle at 82% 18%, rgba(137, 105, 220, 0.3), transparent 17rem),
    radial-gradient(circle at 72% 86%, rgba(15, 107, 91, 0.22), transparent 16rem),
    linear-gradient(145deg, #08101d 0%, #181f31 42%, #332940 68%, #573b24 100%);
}

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

.formula-screen::before {
  background-image:
    radial-gradient(circle, rgba(255, 245, 212, 0.72) 0 1px, transparent 1.7px),
    radial-gradient(circle, rgba(205, 225, 255, 0.36) 0 1px, transparent 1.8px),
    repeating-linear-gradient(112deg, rgba(255, 232, 177, 0.04) 0 2px, transparent 3px 16px);
  background-position: 0 0, 38px 54px, 0 0;
  background-size: 92px 92px, 134px 134px, 100% 100%;
  opacity: 0.52;
  animation: starDrift 22s linear infinite;
}

.formula-screen::after {
  background:
    linear-gradient(118deg, transparent 8%, rgba(255, 232, 177, 0.12) 28%, transparent 48%),
    radial-gradient(ellipse at 50% 100%, rgba(255, 177, 92, 0.12), transparent 40%);
  mix-blend-mode: screen;
  opacity: 0.78;
}

.formula-screen > * {
  position: relative;
  z-index: 1;
}

.board-section.step-screen {
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 232, 177, 0.18), transparent 18rem),
    linear-gradient(160deg, #101821, #253229 58%, #5c3925);
}

.board-section.step-screen .section-title,
.board-section.step-screen .board-caption {
  color: #fff6df;
}

.board-section.step-screen .section-title span,
.result-section.step-screen .section-title span,
.order-section.step-screen .section-title span,
.divination-screen .section-title span,
.formula-screen .section-title span {
  color: #241811;
  background: linear-gradient(135deg, #fff0ba, #d9a34b);
}

.board-caption {
  max-width: 760px;
}

.board-stage {
  position: relative;
  width: min(820px, 100%);
  margin: clamp(18px, 4vw, 34px) auto 0;
  padding: clamp(18px, 3vw, 28px);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 238, 190, 0.2), transparent 20rem),
    linear-gradient(180deg, rgba(255, 250, 232, 0.08), rgba(0, 0, 0, 0.12));
  box-shadow: inset 0 0 0 1px rgba(255, 232, 177, 0.16), 0 26px 70px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.board-stage::before {
  content: none;
}

.board-stage::after {
  content: none;
}

.bead-tray-label {
  margin-bottom: 14px;
  color: rgba(255, 232, 177, 0.72);
  font-size: 13px;
}

.wood-board {
  display: grid;
  grid-template-columns: repeat(var(--board-columns, 10), minmax(42px, 1fr));
  gap: clamp(10px, 1.8vw, 18px);
  justify-items: center;
  align-items: center;
  position: relative;
  width: 100%;
  min-height: auto;
  padding: clamp(16px, 3vw, 30px);
  border: clamp(10px, 2.2vw, 18px) solid #b56b2f;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 236, 184, 0.18), transparent 22%, transparent 72%, rgba(73, 35, 12, 0.16)),
    repeating-linear-gradient(4deg, rgba(255, 232, 176, 0.08) 0 8px, rgba(71, 35, 13, 0.07) 9px 16px),
    linear-gradient(135deg, #c98543, #a45e27 55%, #d08a44);
  box-shadow: inset 0 0 0 2px rgba(255, 223, 153, 0.22), inset 0 14px 24px rgba(255, 231, 177, 0.16), inset 0 -18px 28px rgba(69, 32, 10, 0.28);
}

.wood-board::after {
  content: "";
  position: absolute;
  inset: 3%;
  border: 1px solid rgba(255, 227, 163, 0.34);
  border-radius: 5px;
  pointer-events: none;
}

.wood-board .socket {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(42px, 6vw, 62px);
  aspect-ratio: 1;
  translate: none;
  opacity: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 28%, rgba(255, 207, 132, 0.58), rgba(121, 63, 24, 0.22) 30%, rgba(75, 35, 12, 0.48) 66%, rgba(255, 218, 143, 0.36) 82%);
  box-shadow: inset 6px 7px 12px rgba(47, 21, 7, 0.54), inset -5px -5px 9px rgba(255, 223, 152, 0.2), 0 1px 0 rgba(255, 226, 168, 0.18);
  animation: socketWake 500ms ease forwards;
  animation-delay: var(--socket-delay);
}

.wood-board .socket .bead {
  width: min(var(--board-bead-size, 96%), 96%);
  margin: 2%;
  transform-origin: center;
  animation: beadPlaceBoard 980ms cubic-bezier(0.16, 0.95, 0.28, 1.18) both;
}

.result-section.step-screen {
  color: #fff6df;
}

.result-section.step-screen .bracelet-wrap {
  min-height: calc(100vh - 240px);
}

.result-section.step-screen .recipe-item {
  color: var(--ink);
  background: rgba(255, 250, 240, 0.92);
}

.order-section.step-screen {
  color: #fff6df;
  min-height: auto;
  padding: 18px clamp(16px, 3vw, 30px) 20px;
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 232, 177, 0.16), transparent 15rem),
    radial-gradient(circle at 82% 18%, rgba(126, 95, 207, 0.22), transparent 17rem),
    radial-gradient(circle at 56% 96%, rgba(15, 107, 91, 0.18), transparent 18rem),
    linear-gradient(145deg, rgba(16, 23, 35, 0.88), rgba(35, 29, 48, 0.82) 52%, rgba(38, 48, 43, 0.84));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.order-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 292px);
  gap: clamp(16px, 3vw, 28px);
  align-items: center;
  min-height: auto;
  width: min(980px, 100%);
  margin: 0 auto;
  transform: translateY(-72px);
}

.order-section.step-screen .section-title {
  display: none;
}

.order-aside {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-content: center;
  padding: 18px;
  border: 1px solid rgba(255, 232, 177, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 10%, rgba(217, 163, 75, 0.13), transparent 6rem),
    rgba(18, 24, 35, 0.58);
  box-shadow: 0 22px 58px rgba(3, 7, 12, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.order-aside::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(90deg, transparent, rgba(255, 232, 177, 0.86), rgba(153, 216, 200, 0.74), transparent);
}

.order-aside__eyebrow {
  margin: 0;
  color: rgba(255, 232, 177, 0.74);
  font-size: 12px;
  font-weight: 800;
}

.order-aside > strong {
  color: #fff1bd;
  font-size: 22px;
  font-family: Georgia, "Songti SC", serif;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0;
  text-shadow: 0 0 20px rgba(255, 232, 177, 0.16);
}

.order-aside__meta {
  display: grid;
  gap: 2px;
  padding: 10px;
  border: 1px solid rgba(255, 232, 177, 0.18);
  border-radius: 6px;
  color: rgba(255, 248, 232, 0.78);
  background: rgba(255, 255, 255, 0.07);
}

.order-aside__meta span {
  color: rgba(255, 232, 177, 0.72);
  font-size: 12px;
  font-weight: 700;
}

.order-aside__meta b {
  color: #fff6df;
  font-size: 14px;
  font-weight: 800;
}

.order-qr {
  display: grid;
  gap: 7px;
  width: min(156px, 100%);
  margin: 0;
  padding: 9px;
  border: 1px solid rgba(255, 232, 177, 0.18);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.94);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.order-qr img {
  width: 100%;
  border-radius: 4px;
}

.order-qr figcaption {
  color: #6f5946;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.order-copy {
  position: relative;
  display: grid;
  gap: 15px;
  align-content: center;
  padding: clamp(22px, 2.8vw, 30px);
  border: 1px solid rgba(255, 232, 177, 0.2);
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 10%, rgba(217, 163, 75, 0.17), transparent 8rem),
    radial-gradient(circle at 8% 94%, rgba(153, 216, 200, 0.12), transparent 9rem),
    linear-gradient(135deg, rgba(34, 37, 48, 0.78), rgba(22, 27, 39, 0.72) 48%, rgba(31, 45, 43, 0.76));
  box-shadow: 0 28px 70px rgba(3, 7, 12, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.order-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(255, 232, 177, 0.76), rgba(153, 216, 200, 0.64), transparent) top / 100% 3px no-repeat,
    linear-gradient(115deg, transparent 0 18%, rgba(255, 232, 177, 0.11) 30%, transparent 44%);
  transform: translateX(-72%);
  animation: orderSheen 6.5s ease-in-out infinite;
  pointer-events: none;
}

.order-copy > * {
  position: relative;
  z-index: 1;
}

.order-copy .eyebrow-dark {
  margin: 0 0 2px;
  color: rgba(255, 232, 177, 0.76);
  font-size: 12px;
  font-weight: 800;
}

.order-copy strong {
  display: grid;
  gap: 4px;
  color: #fff1bd;
  max-width: 620px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.28;
  letter-spacing: 0;
  font-family: Georgia, "Songti SC", serif;
  font-weight: 700;
  text-shadow: 0 0 24px rgba(255, 232, 177, 0.2);
}

.order-copy strong > span {
  display: block;
}

.order-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 2px;
}

.order-proof span,
.order-proof em {
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 232, 177, 0.16);
  border-radius: 999px;
  color: rgba(255, 248, 232, 0.78);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}

.order-proof b {
  min-height: 30px;
  display: inline-grid;
  place-items: center;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  color: #241811;
  background: linear-gradient(135deg, #fff1bd, #d9a34b);
  font-size: 15px;
  font-weight: 500;
}

.order-copy p:not(.eyebrow-dark) {
  max-width: 640px;
  color: rgba(255, 250, 236, 0.78);
  font-size: 14px;
  line-height: 1.78;
}

.order-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 232, 177, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.order-flow span {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px 0 24px;
  color: rgba(255, 248, 232, 0.78);
  font-size: 12px;
  font-weight: 800;
}

.order-flow span::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d9a34b;
  box-shadow: 0 0 12px rgba(255, 232, 177, 0.28);
  transform: translateY(-50%);
}

.order-details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

.order-details span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(255, 232, 177, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.order-details em {
  color: rgba(255, 232, 177, 0.72);
  font-size: 12px;
  font-style: normal;
}

.order-details b {
  color: #fff6df;
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.order-number {
  position: relative;
  display: grid;
  gap: 8px;
  width: min(520px, 100%);
  padding: 13px 14px;
  border: 1px solid rgba(255, 232, 177, 0.3);
  border-radius: 8px;
  background:
    radial-gradient(circle at 96% 20%, rgba(255, 232, 177, 0.14), transparent 4rem),
    rgba(8, 13, 21, 0.48);
  overflow: hidden;
}

.order-number span {
  color: rgba(255, 232, 177, 0.76);
  font-size: 12px;
  font-weight: 500;
}

.order-number__row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.order-number b {
  color: #fff8e7;
  font-family: "Source Code Pro", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(17px, 2.1vw, 23px);
  font-weight: 700;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  user-select: all;
}

.copy-order-button {
  min-height: 34px;
  flex: 0 0 auto;
  padding: 0 14px;
  border: 1px solid rgba(255, 232, 177, 0.38);
  border-radius: 6px;
  color: #241811;
  background: linear-gradient(135deg, #fff1bd, #d9a34b);
  box-shadow: 0 10px 20px rgba(217, 163, 75, 0.12);
  font-size: 13px;
  font-weight: 900;
}

.copy-order-button:hover,
.copy-order-button:focus-visible {
  background: linear-gradient(135deg, #fff7d3, #e3b85f);
}

.order-number em {
  min-height: 13px;
  color: #99d8c8;
  font-size: 12px;
  font-style: normal;
}

.order-notes {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  counter-reset: orderNote;
  list-style: none;
}

.order-notes li {
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 3px 9px;
  min-height: auto;
  padding: 7px 8px;
  border: 1px solid rgba(255, 232, 177, 0.16);
  border-radius: 8px;
  color: rgba(255, 248, 232, 0.82);
  background:
    radial-gradient(circle at 96% 12%, rgba(255, 232, 177, 0.12), transparent 3.4rem),
    rgba(255, 255, 255, 0.07);
  box-shadow: none;
  line-height: 1.45;
  overflow: hidden;
  counter-increment: orderNote;
}

.order-notes li::before {
  content: counter(orderNote, decimal-leading-zero);
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid rgba(255, 232, 177, 0.28);
  border-radius: 50%;
  color: #241811;
  background: linear-gradient(135deg, #fff1bd, #d9a34b);
  font-size: 12px;
  font-weight: 500;
}

.order-notes strong {
  color: #fff1bd;
  font-size: 14px;
  font-weight: 500;
}

.order-notes span {
  color: rgba(255, 248, 232, 0.78);
  font-size: 12px;
  line-height: 1.28;
}

.database-section {
  display: none;
}

.database-section.step-screen .section-title {
  color: #fff8e7;
}

.database-section.step-screen .section-title span {
  color: #241811;
  background: linear-gradient(135deg, #fff1bd, #d9a34b);
}

.wizard-actions {
  position: sticky;
  bottom: 12px;
  z-index: 12;
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(10, 14, 22, 0.68);
  backdrop-filter: blur(18px);
}

.wizard-actions button {
  min-width: 132px;
}

.ghost-button {
  color: #fff5dc;
  border: 1px solid rgba(255, 232, 177, 0.26);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.ghost-button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

@keyframes sceneIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes breatheGlow {
  0%,
  100% {
    opacity: 0.56;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

@keyframes analysisCenterGlow {
  0%,
  100% {
    box-shadow: 0 0 0 13px rgba(255, 232, 177, 0.07), 0 0 38px rgba(255, 232, 177, 0.18), 0 16px 36px rgba(0, 0, 0, 0.26);
  }
  50% {
    box-shadow: 0 0 0 18px rgba(255, 232, 177, 0.1), 0 0 56px rgba(255, 232, 177, 0.28), 0 18px 40px rgba(0, 0, 0, 0.28);
  }
}

@keyframes cardReveal {
  from {
    opacity: 0;
    translate: 0 24px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes orderSheen {
  0%, 46% {
    transform: translateX(-72%);
  }
  70%, 100% {
    transform: translateX(82%);
  }
}

@keyframes orderHalo {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.96);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.04);
  }
}

@keyframes orderBeadBreathe {
  0%,
  100% {
    filter: saturate(0.96);
  }
  50% {
    filter: saturate(1.16) brightness(1.08);
  }
}

@keyframes socketWake {
  from {
    opacity: 0;
    transform: scale(0.72);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes beadPlaceBoard {
  0% {
    opacity: 0;
    transform: translateY(-86px) scale(0.72);
    filter: blur(1.5px);
  }
  64% {
    opacity: 1;
    transform: translateY(5px) scale(1.04);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes placingHand {
  0% {
    opacity: 0;
    transform: translate(-70px, -50px) rotate(-18deg);
  }
  12%,
  72% {
    opacity: 0.92;
  }
  38% {
    transform: translate(260px, 40px) rotate(-10deg);
  }
  70% {
    transform: translate(500px, 220px) rotate(-7deg);
  }
  100% {
    opacity: 0;
    transform: translate(620px, 280px) rotate(-7deg);
  }
}

@keyframes placingTool {
  0% {
    opacity: 0;
    transform: translate(-70px, -50px) rotate(-26deg);
  }
  12%,
  72% {
    opacity: 0.95;
  }
  38% {
    transform: translate(260px, 40px) rotate(-18deg);
  }
  70% {
    transform: translate(500px, 220px) rotate(-15deg);
  }
  100% {
    opacity: 0;
    transform: translate(620px, 280px) rotate(-15deg);
  }
}

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

  .stepper {
    gap: 5px;
    padding: 6px;
  }

  .step-dot {
    min-height: 34px;
    font-size: 12px;
  }

  .profile-form--floating {
    position: relative;
    grid-template-columns: 1fr;
  }

  .hero .hero__content {
    position: relative;
  }

  .oracle-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .oracle-layout .astro-canvas,
  .analysis-board {
    width: min(88vw, 390px);
  }

  .analysis-board {
    --analysis-center-offset: 36px;
    padding: 12px;
  }

  .analysis-heading {
    display: grid;
    gap: 6px;
  }

  .analysis-heading span {
    max-width: none;
    text-align: left;
  }

  .analysis-center {
    position: absolute;
    left: 50%;
    top: calc(50% + var(--analysis-center-offset));
    width: 84px;
    height: 84px;
    margin: 0;
    transform: translate(-50%, -50%);
  }

  .analysis-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, minmax(88px, 1fr));
    gap: 8px;
  }

  .analysis-card:nth-child(1) { grid-column: 1; grid-row: 1; }
  .analysis-card:nth-child(2) { grid-column: 2; grid-row: 1; }
  .analysis-card:nth-child(3) { grid-column: 3; grid-row: 1; }
  .analysis-card:nth-child(4) { grid-column: 1; grid-row: 2; }
  .analysis-card:nth-child(5) { grid-column: 3; grid-row: 2; }
  .analysis-card:nth-child(6) { grid-column: 1; grid-row: 3; }
  .analysis-card:nth-child(7) { grid-column: 2; grid-row: 3; }
  .analysis-card:nth-child(8) { grid-column: 3; grid-row: 3; }

  .analysis-card {
    min-height: 88px;
    padding: 10px 7px;
  }

  .analysis-card strong {
    margin-bottom: 6px;
    font-size: 15px;
  }

  .analysis-card span {
    margin-bottom: 5px;
    font-size: 13px;
  }

  .analysis-card p {
    display: none;
  }

  .analysis-center span {
    font-size: 44px;
  }

  .oracle-copy strong {
    font-size: 52px;
  }

  .wood-board {
    grid-template-columns: repeat(var(--board-columns, 6), minmax(30px, 1fr));
    gap: 9px;
    border-width: 9px;
  }

  .formula-screen .paper {
    grid-template-columns: 1fr;
  }

  .paper-hand {
    left: 58%;
    top: 132px;
  }

  .number-meanings {
    grid-template-columns: 1fr;
    margin-top: 0;
  }

  .wood-board .socket {
    width: clamp(25px, 8.2vw, 39px);
  }

  .wizard-actions {
    border-radius: 8px;
  }

  .wizard-actions button {
    min-width: 0;
    flex: 1;
  }
}

@media (max-width: 520px) {
  body {
    overflow-x: hidden;
  }

  .app-shell {
    padding: 8px 8px calc(104px + env(safe-area-inset-bottom, 0px));
  }

  .stepper {
    position: sticky;
    top: 0;
    display: flex;
    gap: 7px;
    margin: 0 0 12px;
    padding: 7px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .stepper::-webkit-scrollbar {
    display: none;
  }

  .step-dot {
    flex: 0 0 auto;
    min-width: 62px;
    min-height: 34px;
    padding: 0 13px;
    font-size: 13px;
    white-space: nowrap;
  }

  .step-screen {
    min-height: auto;
    padding-bottom: 90px;
  }

  .hero {
    min-height: auto;
    padding: 42px 0 18px;
  }

  .hero .hero__content {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin: 0 14px 16px;
  }

  .hero h1 {
    font-size: clamp(58px, 18vw, 76px);
  }

  .intro {
    max-width: 100%;
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.75;
  }

  .profile-form--floating {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    grid-template-columns: 1fr;
    margin: 0 14px 18px;
    padding: 16px;
  }

  .profile-form--floating > button[type="submit"] {
    display: none;
  }

  input,
  output {
    min-height: 44px;
  }

  .wish-field {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 8px;
    row-gap: 12px;
  }

  .wish-field legend {
    grid-column: 1 / -1;
    margin-bottom: 4px;
  }

  .wish-field span {
    min-height: 38px;
    padding: 7px 8px;
    gap: 6px;
    font-size: 12px;
  }

  .wish-field span::before {
    width: 22px;
    height: 22px;
    font-size: 12px;
  }

  .wish-field--detail {
    display: block;
  }

  .wish-detail-grid {
    grid-template-columns: 1fr;
    max-height: none;
  }

  .wish-group {
    display: flex;
  }

  .wish-group label {
    width: calc(50% - 4px);
  }

  .wish-field--detail span::before {
    width: 18px;
    height: 18px;
    font-size: 11px;
  }

  .divination-screen,
  .formula-screen,
  .board-section.step-screen,
  .result-section.step-screen,
  .order-section.step-screen,
  .database-section.step-screen {
    padding: 14px 12px 96px;
  }

  .order-panel {
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: auto;
    transform: translateY(-36px);
  }

  .order-aside {
    grid-template-columns: 1fr 108px;
    align-items: center;
    width: min(100%, 420px);
    margin: 0 auto;
    gap: 9px 10px;
    padding: 11px;
  }

  .order-aside__meta {
    grid-column: 1 / -1;
    padding: 8px 10px;
  }

  .order-aside__meta span {
    font-size: 11px;
  }

  .order-aside__meta b {
    font-size: 13px;
  }

  .order-qr {
    width: 102px;
    grid-column: 2;
    grid-row: 1 / 3;
    margin: 0;
    padding: 7px;
  }

  .order-qr figcaption {
    display: none;
  }

  .order-copy {
    gap: 12px;
    padding: 16px;
  }

  .order-copy strong {
    max-width: 100%;
    font-size: clamp(24px, 6.2vw, 30px);
    line-height: 1.34;
  }

  .order-copy p:not(.eyebrow-dark) {
    font-size: 12px;
    line-height: 1.7;
  }

  .order-flow {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 8px;
  }

  .order-flow span {
    min-height: 26px;
    padding: 0 8px 0 22px;
    font-size: 11px;
    justify-content: start;
  }

  .order-flow span::before {
    left: 9px;
    width: 6px;
    height: 6px;
  }

  .order-details {
    gap: 7px;
  }

  .order-details span {
    min-height: 31px;
    padding: 0 9px;
  }

  .order-details em {
    font-size: 10px;
  }

  .order-details b {
    font-size: 12px;
  }

  .order-proof span,
  .order-proof em {
    min-height: 23px;
    padding: 0 8px;
    font-size: 11px;
  }

  .order-proof b {
    min-height: 25px;
    padding: 0 10px;
    font-size: 12px;
  }

  .order-number {
    padding: 10px;
  }

  .order-number b {
    font-size: 15px;
  }

  .order-number__row {
    gap: 8px;
  }

  .copy-order-button {
    min-height: 32px;
    padding: 0 11px;
    font-size: 12px;
  }

  .order-section.step-screen .section-title {
    display: none;
  }

  .order-notes {
    display: none;
  }

  .order-notes li {
    min-height: auto;
    grid-template-columns: 30px 1fr;
    gap: 2px 8px;
    padding: 7px 9px;
  }

  .order-notes li::before {
    width: 24px;
    height: 24px;
    font-size: 10px;
  }

  .order-notes strong {
    font-size: 12px;
  }

  .order-notes span {
    font-size: 11px;
    line-height: 1.35;
  }

  .oracle-panel,
  .formula-screen .paper-panel {
    min-height: auto;
  }

  .oracle-layout {
    gap: 14px;
  }

  .analysis-board {
    width: 100%;
    padding: 10px;
  }

  .analysis-grid {
    grid-template-rows: repeat(3, minmax(78px, 1fr));
    gap: 7px;
  }

  .analysis-card {
    min-height: 78px;
    padding: 9px 6px;
  }

  .analysis-card strong {
    font-size: 13px;
  }

  .analysis-card span {
    font-size: 12px;
  }

  .analysis-center {
    width: 76px;
    height: 76px;
  }

  .analysis-center span {
    font-size: 38px;
  }

  .oracle-copy strong {
    font-size: clamp(36px, 12vw, 48px);
  }

  .formula-screen .paper {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px 14px 18px;
    transform: none;
  }

  .formula-head {
    gap: 16px;
    font-size: 25px;
  }

  .formula-sketch {
    width: min(300px, 92%);
    margin: 4px auto 6px;
    font-size: 28px;
  }

  .paper-hand {
    display: none;
  }

  .number-meanings {
    gap: 8px;
  }

  .meaning-card {
    min-height: auto;
    padding: 10px;
    gap: 4px 8px;
  }

  .meaning-card span {
    font-size: 11px;
  }

  .meaning-card strong {
    min-width: 31px;
    height: 31px;
    font-size: 17px;
  }

  .meaning-card em {
    font-size: 13px;
  }

  .board-caption {
    margin: 0 0 14px;
    font-size: 15px;
    line-height: 1.7;
  }

  .board-stage {
    margin-top: 12px;
    padding: 14px;
  }

  .wood-board {
    grid-template-columns: repeat(var(--board-columns, 6), minmax(26px, 1fr));
    gap: 8px;
    border-width: 7px;
  }

  .wood-board .socket {
    width: clamp(24px, 7.6vw, 34px);
  }

  .result-section.step-screen .bracelet-wrap {
    min-height: auto;
    gap: 12px;
  }

  .bracelet-wrap {
    grid-template-columns: 1fr;
  }

  .bracelet {
    width: var(--finished-bracelet-size, min(82vw, 332px));
    margin: 0 auto 4px;
  }

  .bracelet .bead {
    --bracelet-radius: var(--finished-bracelet-radius, clamp(104px, 32vw, 132px));
  }

  .recipe-item {
    padding: 12px;
  }

  .recipe-item header,
  .db-card header {
    flex-direction: column;
    gap: 5px;
  }

  .recipe-item header span,
  .price-pill {
    white-space: normal;
  }

  .recipe-item p,
  .db-card p {
    font-size: 13px;
    line-height: 1.65;
  }

  .database-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .db-card--library {
    padding: 12px;
  }

  .db-card__hero {
    min-height: auto;
  }

  .db-card__hero img {
    aspect-ratio: 1 / 1;
  }

  .wizard-actions {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom, 0px));
    z-index: 40;
    margin: 0;
    padding: 8px;
    gap: 10px;
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  }

  .wizard-actions button {
    min-height: 48px;
    padding: 0 14px;
    font-size: 16px;
  }
}

/* 2.0 生辰五行版：覆盖为中式米杏 UI */
.bazi-version {
  color: #5f4029;
  background:
    radial-gradient(circle at 18% 4%, rgba(255, 251, 239, 0.92), transparent 18rem),
    radial-gradient(circle at 88% 18%, rgba(230, 190, 132, 0.24), transparent 20rem),
    linear-gradient(180deg, #f9ead3 0%, #f6e5c9 48%, #f2dec0 100%);
}

.bazi-version .app-shell {
  max-width: 1040px;
}

.bazi-version .stepper {
  color: #7c614b;
  background: rgba(255, 247, 234, 0.72);
  border: 1px solid rgba(150, 104, 64, 0.12);
  box-shadow: 0 10px 24px rgba(132, 83, 36, 0.1);
  backdrop-filter: blur(16px);
}

.bazi-version .step-dot {
  color: #7e654f;
  background: transparent;
  box-shadow: none;
}

.bazi-version .step-dot.is-active {
  color: #5f4029;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 -3px 0 #7a543a;
}

.bazi-version .hero {
  background: #fffaf1;
  border: 1px solid rgba(151, 103, 64, 0.12);
  box-shadow: 0 20px 48px rgba(139, 91, 40, 0.14);
}

.bazi-version .hero.step-screen {
  padding-bottom: 120px;
}

.bazi-version .hero__cosmos {
  opacity: 0.92;
  background:
    radial-gradient(circle at 74% 18%, rgba(214, 168, 103, 0.2), transparent 16rem),
    radial-gradient(circle at 18% 76%, rgba(117, 170, 140, 0.14), transparent 18rem),
    linear-gradient(150deg, #fff8eb 0%, #f8e4c2 54%, #ead0a8 100%);
  filter: none;
}

.bazi-version .star,
.bazi-version .astrolabe,
.bazi-version .crystal-orbit {
  opacity: 0.22;
  filter: sepia(0.45) saturate(0.7);
}

.bazi-version .eyebrow,
.bazi-version .hero h1,
.bazi-version .intro {
  color: #67452e;
  text-shadow: none;
}

.bazi-version .hero h1 {
  letter-spacing: 0;
}

.bazi-version .profile-form {
  color: #64442e;
  background: rgba(255, 252, 246, 0.88);
  border: 1px solid rgba(157, 108, 68, 0.16);
  box-shadow: 0 22px 46px rgba(140, 89, 39, 0.13);
}

.bazi-version label,
.bazi-version .profile-form__section,
.bazi-version fieldset legend,
.bazi-version .wish-field small {
  color: rgba(93, 62, 40, 0.78);
}

.bazi-version input,
.bazi-version output,
.bazi-version select {
  color: #5b3b27;
  background: rgba(255, 250, 241, 0.92);
  border-color: rgba(152, 103, 60, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 18px rgba(154, 102, 49, 0.08);
}

.bazi-version select {
  background:
    linear-gradient(45deg, transparent 50%, rgba(117, 83, 57, 0.72) 50%) calc(100% - 18px) 20px / 7px 7px no-repeat,
    linear-gradient(135deg, rgba(117, 83, 57, 0.72) 50%, transparent 50%) calc(100% - 13px) 20px / 7px 7px no-repeat,
    rgba(255, 250, 241, 0.92);
}

.bazi-version .wish-group {
  background: rgba(255, 250, 241, 0.78);
  border-color: rgba(152, 103, 60, 0.16);
}

.bazi-version .wish-group:has(input:checked) {
  background: rgba(255, 246, 231, 0.92);
  border-color: rgba(138, 101, 72, 0.28);
}

.bazi-version .wish-group:has(input:checked):not(.is-open) {
  padding-bottom: 10px;
}

.bazi-version .wish-group:has(input:checked):not(.is-open) label:has(input:checked) {
  display: block;
}

.bazi-version .wish-group__toggle,
.bazi-version button[type="submit"],
.bazi-version #nextStep {
  background: #8a6548;
  color: #fff8ed;
  box-shadow: 0 12px 24px rgba(115, 75, 42, 0.18);
}

.bazi-version .wish-group label span,
.bazi-version .size-field label span {
  color: #6c4b34;
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(157, 108, 68, 0.16);
}

.bazi-version .astro-panel,
.bazi-version .oracle-panel {
  min-height: auto;
  padding: clamp(12px, 3vw, 28px);
  color: #68462f;
  background: transparent;
  box-shadow: none;
}

.bazi-version .section-title {
  color: #6a4932;
}

.bazi-version .section-title span {
  color: #a77853;
  border-color: rgba(151, 103, 64, 0.2);
}

.bazi-layout {
  display: grid;
  gap: 14px;
  max-width: 920px;
  margin: 0 auto;
}

.bazi-summary-card,
.wuxing-card,
.bazi-question {
  border: 1px solid rgba(160, 109, 68, 0.12);
  border-radius: 28px;
  background: rgba(255, 252, 247, 0.94);
  box-shadow: 0 18px 42px rgba(137, 87, 38, 0.12);
}

.bazi-summary-card {
  padding: clamp(20px, 4vw, 34px);
}

.bazi-summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.bazi-summary-head span {
  display: inline-flex;
  margin-bottom: 8px;
  color: #7a5137;
  font-size: 24px;
  font-weight: 800;
}

.bazi-summary-head strong {
  display: block;
  color: #6f492f;
  font-size: clamp(26px, 5vw, 42px);
  line-height: 1.05;
}

.bazi-calibrate {
  min-height: 34px;
  padding: 0 14px;
  color: #a06d4d;
  background: #fff7ec;
  border: 1px solid rgba(196, 130, 88, 0.32);
  box-shadow: none;
}

.bazi-summary-card p {
  max-width: 760px;
  margin: 0;
  color: #9b714c;
  font-size: clamp(16px, 2.3vw, 22px);
  line-height: 1.7;
}

.bazi-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.bazi-tags span {
  padding: 8px 13px;
  border-radius: 999px;
  color: #805638;
  background: #fff5e6;
  border: 1px solid rgba(174, 114, 72, 0.16);
  font-weight: 700;
}

.wuxing-card {
  padding: clamp(16px, 3vw, 30px);
}

.wuxing-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.wuxing-heading span {
  color: #9a714e;
  font-size: 15px;
  line-height: 1.5;
}

.wuxing-heading strong {
  color: #6f492f;
  font-size: clamp(18px, 3vw, 26px);
}

.wuxing-wheel {
  position: relative;
  width: min(76vw, 520px);
  aspect-ratio: 1;
  margin: 44px auto 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 247, 229, 0.5) 0 28%, transparent 29%),
    radial-gradient(circle at 50% 50%, rgba(240, 216, 181, 0.32) 0 50%, transparent 51%);
}

.wuxing-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.wuxing-lines circle,
.wuxing-lines path {
  fill: none;
  stroke: rgba(149, 100, 63, 0.42);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wuxing-lines .sheng {
  stroke-width: 7;
  stroke-dasharray: 22 18;
}

.wuxing-lines .ke {
  stroke-width: 3;
  stroke: rgba(149, 100, 63, 0.32);
}

.wuxing-lines text {
  fill: rgba(122, 83, 55, 0.72);
  font-size: 24px;
  font-weight: 800;
  text-anchor: middle;
}

.wuxing-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  place-items: center;
  width: clamp(74px, 16vw, 104px);
  aspect-ratio: 1;
  padding: 8px;
  border: 4px solid var(--element-color);
  border-radius: 50%;
  color: var(--element-color);
  background: var(--element-soft);
  box-shadow: 0 10px 24px rgba(124, 77, 36, 0.12), inset 0 0 0 7px rgba(255, 255, 255, 0.58);
  transform: translate(-50%, -50%);
}

.wuxing-node em {
  position: absolute;
  min-width: 70px;
  color: var(--element-color);
  font-style: normal;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  transform: translateY(-74px);
}

.wuxing-node strong {
  font-size: clamp(26px, 5vw, 40px);
  line-height: 1;
}

.wuxing-node span {
  font-size: 16px;
  font-weight: 800;
}

.wuxing-node b {
  position: absolute;
  bottom: -18px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--element-color);
  font-size: 13px;
}

.wuxing-node.is-useful {
  box-shadow: 0 0 0 8px rgba(255, 244, 223, 0.9), 0 16px 30px rgba(124, 77, 36, 0.16);
}

.wuxing-useful {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 6px auto 24px;
  color: #7a5137;
  text-align: center;
}

.wuxing-useful span {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(205, 137, 105, 0.45));
}

.wuxing-useful span:last-child {
  background: linear-gradient(90deg, rgba(205, 137, 105, 0.45), transparent);
}

.wuxing-useful strong {
  font-size: clamp(22px, 4vw, 34px);
}

.lucky-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(160, 109, 68, 0.12);
}

.lucky-row > div {
  display: grid;
  gap: 10px;
  justify-items: center;
  min-width: 0;
  color: #9a714e;
  font-weight: 800;
}

.lucky-row p {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
}

.lucky-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 4px 10px;
  border-radius: 9px;
  color: #c85b5b;
  background: #fff3ea;
  border: 1px solid rgba(214, 105, 105, 0.34);
  font-size: 18px;
  line-height: 1;
}

.lucky-chip--color {
  color: #765135;
  border-color: rgba(150, 104, 64, 0.2);
}

.lucky-chip--color::before {
  content: "";
  width: 22px;
  height: 22px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--chip-color);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.72), 0 1px 4px rgba(120,80,40,.18);
}

.bazi-question {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  color: #7a5137;
  background: #fff4df;
}

.bazi-question > span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: #69c4d7;
  font-size: 22px;
  font-weight: 900;
}

.bazi-question strong {
  flex: 1;
  min-width: 0;
  font-size: clamp(18px, 3vw, 28px);
}

.bazi-question em {
  flex: 0 0 auto;
  color: #a06d4d;
  font-style: normal;
  font-weight: 800;
}

@media (max-width: 760px) {
  .bazi-version .app-shell {
    padding: 10px;
    padding-bottom: 92px;
  }

  .bazi-version .hero {
    padding: 18px;
  }

  .bazi-layout {
    gap: 14px;
  }

  .bazi-summary-card,
  .wuxing-card,
  .bazi-question {
    border-radius: 22px;
  }

  .wuxing-heading {
    display: grid;
  }

  .wuxing-wheel {
    width: min(92vw, 380px);
    margin-top: 38px;
  }

  .wuxing-node {
    width: clamp(64px, 18vw, 82px);
    border-width: 3px;
  }

  .wuxing-node em {
    min-width: 56px;
    font-size: 12px;
    transform: translateY(-52px);
  }

  .wuxing-node span {
    font-size: 13px;
  }

  .lucky-row {
    grid-template-columns: 1fr;
  }

  .bazi-question {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .bazi-question em {
    width: 100%;
    padding-left: 58px;
  }
}

/* Chrona 2.0: unify later steps with the bazi visual system */
.bazi-version .formula-screen,
.bazi-version .board-section.step-screen,
.bazi-version .result-section.step-screen,
.bazi-version .order-section.step-screen,
.bazi-version .database-section.step-screen {
  min-height: calc(100vh - 148px);
  color: #68462f;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 252, 246, 0.88), transparent 18rem),
    radial-gradient(circle at 88% 20%, rgba(214, 168, 103, 0.17), transparent 22rem),
    linear-gradient(180deg, rgba(255, 248, 235, 0.92), rgba(246, 228, 202, 0.86));
  border: 1px solid rgba(160, 109, 68, 0.12);
  border-radius: 28px;
  box-shadow: 0 18px 42px rgba(137, 87, 38, 0.12);
}

.bazi-version .formula-screen::before,
.bazi-version .formula-screen::after,
.bazi-version .order-copy::before,
.bazi-version .order-aside::before {
  display: none;
}

.bazi-version .formula-screen .paper-panel,
.bazi-version .paper-panel,
.bazi-version .board-section,
.bazi-version .result-section,
.bazi-version .database-section {
  color: #68462f;
  background: transparent;
  box-shadow: none;
}

.bazi-version .formula-screen > *,
.bazi-version .board-section.step-screen > *,
.bazi-version .result-section.step-screen > *,
.bazi-version .order-section.step-screen > * {
  position: relative;
  z-index: 1;
}

.bazi-version .section-title {
  color: #6a4932;
}

.bazi-version .section-title span,
.bazi-version .board-section.step-screen .section-title span,
.bazi-version .result-section.step-screen .section-title span,
.bazi-version .order-section.step-screen .section-title span,
.bazi-version .formula-screen .section-title span {
  color: #7a5137;
  background: linear-gradient(135deg, #f6d98d, #d5a956);
  border: 1px solid rgba(151, 103, 64, 0.2);
  box-shadow: 0 8px 18px rgba(141, 91, 41, 0.12);
}

.bazi-version .formula-screen .paper {
  color: #68462f;
  background:
    radial-gradient(circle at 82% 18%, rgba(214, 168, 103, 0.14), transparent 12rem),
    linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(255, 246, 231, 0.92));
  border: 1px solid rgba(160, 109, 68, 0.12);
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(137, 87, 38, 0.1);
  transform: none;
}

.bazi-version .formula-screen .paper::before,
.bazi-version .paper-hand {
  display: none;
}

.bazi-version .formula-head span:first-child {
  color: #fff8ed;
  background: #8a6548;
  box-shadow: 0 12px 24px rgba(115, 75, 42, 0.16);
}

.bazi-version .formula-head span:last-child,
.bazi-version .number-meanings article,
.bazi-version .formula-list li,
.bazi-version .recipe-summary,
.bazi-version .recipe-item,
.bazi-version .order-copy,
.bazi-version .order-aside,
.bazi-version .order-details span,
.bazi-version .order-number,
.bazi-version .order-notes li,
.bazi-version .order-flow,
.bazi-version .order-aside__meta {
  color: #68462f;
  background: rgba(255, 252, 247, 0.94);
  border-color: rgba(160, 109, 68, 0.14);
  box-shadow: 0 12px 26px rgba(137, 87, 38, 0.08);
}

.bazi-version .formula-subtitle,
.bazi-version .formula-list li,
.bazi-version .number-meanings article,
.bazi-version .recipe-item p,
.bazi-version .order-copy p:not(.eyebrow-dark),
.bazi-version .order-notes span,
.bazi-version .order-flow span,
.bazi-version .board-caption {
  color: #9a714e;
}

.bazi-version .formula-list li::before {
  background: linear-gradient(135deg, #f6d98d, #d5a956);
  color: #6a4932;
}

.bazi-version .formula-sketch svg path,
.bazi-version .sketch-line {
  stroke: rgba(138, 101, 72, 0.46);
}

.bazi-version .board-stage {
  background: transparent;
}

.bazi-version .bead-tray-label {
  color: #9a714e;
}

.bazi-version .wood-board {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 252, 247, 0.58), transparent 42%),
    linear-gradient(180deg, #f6dfbd, #e8c79b);
  border-color: #c6935b;
  box-shadow: 0 22px 44px rgba(137, 87, 38, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}

.bazi-version .wood-board::before,
.bazi-version .wood-board::after {
  opacity: 0.36;
}

.bazi-version .result-section.step-screen .bracelet-wrap {
  background: transparent;
  box-shadow: none;
}

.bazi-version .bracelet {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 252, 247, 0.8), transparent 38%),
    radial-gradient(circle at 50% 50%, rgba(214, 168, 103, 0.16), transparent 58%);
}

.bazi-version .recipe-summary span,
.bazi-version .recipe-summary strong,
.bazi-version .recipe-summary em,
.bazi-version .recipe-item strong,
.bazi-version .price-pill,
.bazi-version .order-copy .eyebrow-dark,
.bazi-version .order-number span,
.bazi-version .order-notes strong,
.bazi-version .order-details em,
.bazi-version .order-aside__eyebrow,
.bazi-version .order-aside__meta span {
  color: #8a6548;
  text-shadow: none;
}

.bazi-version .recipe-summary strong,
.bazi-version .order-copy strong,
.bazi-version .order-aside > strong,
.bazi-version .order-number b,
.bazi-version .order-details b,
.bazi-version .order-aside__meta b {
  color: #5f4029;
  text-shadow: none;
}

.bazi-version .order-panel {
  align-items: stretch;
}

.bazi-version .order-copy,
.bazi-version .order-aside {
  border-radius: 24px;
}

.bazi-version .order-proof b {
  color: #fff8ed;
  background: #8a6548;
}

.bazi-version .order-proof span,
.bazi-version .order-proof em {
  color: #8a6548;
  background: #fff6e7;
  border-color: rgba(160, 109, 68, 0.16);
}

.bazi-version .order-flow span::before {
  background: #d5a956;
  box-shadow: none;
}

.bazi-version .copy-order-button {
  color: #fff8ed;
  background: #8a6548;
  border-color: transparent;
}

.bazi-version .order-qr {
  background: #fffaf1;
  border-color: rgba(160, 109, 68, 0.14);
  box-shadow: 0 14px 28px rgba(137, 87, 38, 0.12);
}

.bazi-version .wizard-actions {
  background: rgba(255, 250, 241, 0.86);
  border: 1px solid rgba(160, 109, 68, 0.14);
  box-shadow: 0 14px 34px rgba(137, 87, 38, 0.16);
}

.bazi-version .wizard-actions .ghost-button {
  color: #7a5137;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(160, 109, 68, 0.16);
  box-shadow: none;
}

.bazi-version .wizard-actions #nextStep {
  background: #8a6548;
}

@media (max-width: 760px) {
  .bazi-version .formula-screen,
  .bazi-version .board-section.step-screen,
  .bazi-version .result-section.step-screen,
  .bazi-version .order-section.step-screen,
  .bazi-version .database-section.step-screen {
    border-radius: 22px;
  }

  .bazi-version .formula-screen .paper {
    border-radius: 20px;
  }
}

/* Chrona 2.0: antique paper depth and readable board copy */
.bazi-version {
  background:
    radial-gradient(circle at 18% 5%, rgba(255, 252, 244, 0.94), transparent 16rem),
    radial-gradient(circle at 80% 9%, rgba(194, 139, 82, 0.16), transparent 18rem),
    repeating-linear-gradient(90deg, rgba(120, 76, 37, 0.026) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(0deg, rgba(120, 76, 37, 0.018) 0 1px, transparent 1px 22px),
    linear-gradient(180deg, #faecd5 0%, #f5e1be 100%);
}

.bazi-version .step-screen:not(.hero)::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(138, 101, 72, 0.16);
  border-radius: 22px;
  pointer-events: none;
}

.bazi-version .step-screen:not(.hero)::after {
  content: "";
  position: absolute;
  right: clamp(18px, 4vw, 42px);
  top: clamp(18px, 4vw, 38px);
  width: 54px;
  height: 54px;
  border: 2px solid rgba(144, 55, 40, 0.25);
  border-radius: 10px;
  transform: rotate(-8deg);
  opacity: 0.38;
  pointer-events: none;
}

.bazi-version .formula-screen,
.bazi-version .board-section.step-screen,
.bazi-version .result-section.step-screen,
.bazi-version .order-section.step-screen,
.bazi-version .database-section.step-screen {
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 253, 247, 0.9), transparent 16rem),
    radial-gradient(circle at 86% 18%, rgba(190, 126, 74, 0.14), transparent 20rem),
    repeating-linear-gradient(112deg, rgba(125, 86, 49, 0.028) 0 2px, transparent 2px 18px),
    linear-gradient(180deg, rgba(255, 249, 238, 0.95), rgba(246, 226, 197, 0.9));
}

.bazi-version .board-section.step-screen .section-title,
.bazi-version .board-section.step-screen .board-caption,
.bazi-version .board-section.step-screen .bead-tray-label {
  color: #6a4932;
  text-shadow: none;
}

.bazi-version .board-section.step-screen .board-caption {
  padding: 12px 16px;
  border: 1px solid rgba(160, 109, 68, 0.13);
  border-radius: 14px;
  background: rgba(255, 252, 247, 0.68);
  line-height: 1.7;
}

.bazi-version .section-title h2 {
  position: relative;
}

.bazi-version .section-title h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #8a6548, rgba(213, 169, 86, 0.25));
}

.bazi-version .formula-screen .paper,
.bazi-version .board-stage,
.bazi-version .recipe-summary,
.bazi-version .recipe-item,
.bazi-version .order-copy,
.bazi-version .order-aside {
  border-style: solid;
  border-width: 1px;
  outline: 1px solid rgba(255, 255, 255, 0.58);
  outline-offset: -7px;
}

.bazi-version .board-stage {
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid rgba(160, 109, 68, 0.13);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.5), transparent 16rem),
    linear-gradient(180deg, rgba(255, 252, 247, 0.82), rgba(248, 231, 206, 0.7));
  box-shadow: 0 18px 38px rgba(137, 87, 38, 0.12);
}

.bazi-version .bead-tray-label {
  font-family: "Songti SC", "STSong", serif;
  letter-spacing: 0;
  color: #8a6548;
}

.bazi-version .wood-board {
  border-color: #b98250;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 248, 234, 0.56), transparent 42%),
    repeating-linear-gradient(96deg, rgba(127, 79, 38, 0.035) 0 8px, transparent 8px 18px),
    linear-gradient(180deg, #f4dcb4, #dfb47d);
}

.bazi-version .wood-board .socket {
  background:
    radial-gradient(circle at 36% 28%, rgba(255, 246, 216, 0.74), rgba(181, 127, 75, 0.24) 35%, rgba(129, 80, 39, 0.32) 70%, rgba(255, 236, 190, 0.44) 86%);
  box-shadow: inset 5px 6px 12px rgba(96, 55, 24, 0.34), inset -4px -4px 9px rgba(255, 246, 216, 0.32), 0 1px 0 rgba(255, 246, 216, 0.28);
}

/* Chrona 2.0: stronger antique paper direction */
.bazi-version {
  --paper-base: #fbefd9;
  --paper-warm: #f5dfb9;
  --ink-brown: #5f3e28;
  --seal-red: #9d3f2f;
  --tea-gold: #c99947;
  background:
    radial-gradient(circle at 16% 6%, rgba(255, 253, 245, 0.94), transparent 17rem),
    radial-gradient(circle at 82% 12%, rgba(185, 106, 62, 0.13), transparent 20rem),
    radial-gradient(circle at 50% 92%, rgba(104, 126, 93, 0.12), transparent 22rem),
    repeating-linear-gradient(96deg, rgba(109, 71, 37, 0.03) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(4deg, rgba(109, 71, 37, 0.018) 0 1px, transparent 1px 24px),
    linear-gradient(180deg, var(--paper-base) 0%, var(--paper-warm) 100%);
}

.bazi-version::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 26% 22%, rgba(132, 78, 42, 0.045) 0 1px, transparent 1.6px),
    radial-gradient(circle at 72% 42%, rgba(132, 78, 42, 0.04) 0 1px, transparent 1.8px);
  background-size: 34px 34px, 48px 48px;
  mix-blend-mode: multiply;
}

.bazi-version .stepper {
  background:
    linear-gradient(180deg, rgba(255, 251, 242, 0.9), rgba(246, 224, 190, 0.82));
  border-color: rgba(139, 91, 50, 0.18);
  border-radius: 4px 4px 18px 18px;
  box-shadow: 0 14px 32px rgba(123, 73, 31, 0.13);
}

.bazi-version .step-dot {
  font-family: "Songti SC", "STSong", serif;
  font-weight: 700;
}

.bazi-version .step-dot.is-active {
  background: #fff8e9;
  box-shadow: inset 0 -3px 0 var(--seal-red), 0 8px 18px rgba(136, 75, 32, 0.1);
}

.bazi-version .hero,
.bazi-version .divination-screen,
.bazi-version .formula-screen,
.bazi-version .board-section.step-screen,
.bazi-version .result-section.step-screen,
.bazi-version .order-section.step-screen,
.bazi-version .database-section.step-screen {
  color: var(--ink-brown);
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 253, 247, 0.94), transparent 18rem),
    radial-gradient(circle at 88% 18%, rgba(198, 137, 75, 0.13), transparent 20rem),
    repeating-linear-gradient(112deg, rgba(113, 72, 37, 0.024) 0 2px, transparent 2px 18px),
    linear-gradient(180deg, rgba(255, 249, 237, 0.96), rgba(246, 226, 197, 0.9));
}

.bazi-version .hero::before,
.bazi-version .divination-screen::before,
.bazi-version .formula-screen::before,
.bazi-version .board-section.step-screen::before,
.bazi-version .result-section.step-screen::before,
.bazi-version .order-section.step-screen::before {
  content: "";
  position: absolute;
  inset: 14px;
  pointer-events: none;
  border: 1px solid rgba(137, 91, 52, 0.12);
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(157, 63, 47, 0.18), transparent 74px) 18px 22px / 110px 1px no-repeat,
    linear-gradient(180deg, rgba(157, 63, 47, 0.18), transparent 74px) 22px 18px / 1px 110px no-repeat,
    linear-gradient(270deg, rgba(157, 63, 47, 0.13), transparent 74px) calc(100% - 18px) calc(100% - 22px) / 110px 1px no-repeat,
    linear-gradient(0deg, rgba(157, 63, 47, 0.13), transparent 74px) calc(100% - 22px) calc(100% - 18px) / 1px 110px no-repeat;
}

.bazi-version .hero__cosmos {
  opacity: 1;
  filter: none;
  background:
    radial-gradient(circle at 76% 24%, rgba(157, 63, 47, 0.08), transparent 9rem),
    radial-gradient(circle at 24% 78%, rgba(108, 137, 103, 0.11), transparent 14rem),
    repeating-radial-gradient(circle at 50% 48%, rgba(137, 91, 52, 0.08) 0 1px, transparent 1px 22px),
    linear-gradient(150deg, rgba(255, 250, 241, 0.9), rgba(242, 214, 174, 0.72));
}

.bazi-version .star,
.bazi-version .crystal-orbit i {
  opacity: 0;
}

.bazi-version .astrolabe {
  width: min(42vw, 390px);
  height: min(42vw, 390px);
  border-color: rgba(132, 82, 42, 0.13);
  box-shadow: inset 0 0 0 1px rgba(132, 82, 42, 0.08), 0 22px 48px rgba(123, 73, 31, 0.08);
  transform: rotate(-12deg);
}

.bazi-version .astrolabe::before {
  border-color: rgba(157, 63, 47, 0.16);
}

.bazi-version .astrolabe::after {
  background:
    radial-gradient(circle, rgba(157, 63, 47, 0.18) 0 24%, transparent 25%),
    radial-gradient(circle, transparent 48%, rgba(137, 91, 52, 0.12) 49% 51%, transparent 52%);
}

.bazi-version .hero__content {
  position: relative;
}

.bazi-version .hero__content::after,
.bazi-version .section-title::after {
  content: "辰";
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-top: 18px;
  border: 1px solid rgba(157, 63, 47, 0.72);
  color: rgba(157, 63, 47, 0.82);
  font-family: "Songti SC", "STSong", serif;
  font-size: 22px;
  line-height: 1;
}

.bazi-version .section-title::after {
  position: absolute;
  right: 0;
  top: 0;
  margin-top: 0;
  width: 34px;
  height: 34px;
  font-size: 18px;
  opacity: 0.72;
}

.bazi-version .eyebrow,
.bazi-version .hero h1,
.bazi-version .intro,
.bazi-version .section-title,
.bazi-version .section-title h2,
.bazi-version .section-title span {
  color: var(--ink-brown);
  text-shadow: none;
}

.bazi-version .hero h1,
.bazi-version .section-title h2 {
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-weight: 700;
}

.bazi-version .hero h1 {
  color: #6a4329;
}

.bazi-version .intro {
  max-width: 560px;
  color: rgba(95, 62, 40, 0.78);
  line-height: 1.9;
}

.bazi-version .profile-form,
.bazi-version .bazi-summary-card,
.bazi-version .wuxing-card,
.bazi-version .paper,
.bazi-version .recipe-summary,
.bazi-version .recipe-item,
.bazi-version .order-copy,
.bazi-version .order-aside {
  border: 1px solid rgba(139, 91, 50, 0.18);
  outline: 1px solid rgba(255, 255, 255, 0.66);
  outline-offset: -7px;
  background:
    radial-gradient(circle at 86% 10%, rgba(206, 154, 82, 0.12), transparent 9rem),
    linear-gradient(180deg, rgba(255, 253, 247, 0.96), rgba(255, 246, 231, 0.9));
  box-shadow: 0 20px 44px rgba(123, 73, 31, 0.12);
}

.bazi-version .profile-form__section,
.bazi-version fieldset legend,
.bazi-version label > span:first-child,
.bazi-version .wuxing-heading strong,
.bazi-version .bazi-summary-head strong,
.bazi-version .formula-head span,
.bazi-version .recipe-item strong,
.bazi-version .order-copy strong {
  font-family: "Songti SC", "STSong", serif;
}

.bazi-version .divination-screen .astro-panel,
.bazi-version .divination-screen .oracle-panel {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.bazi-version .bazi-layout {
  gap: 22px;
}

.bazi-version .bazi-summary-card,
.bazi-version .wuxing-card {
  position: relative;
  overflow: hidden;
}

.bazi-version .bazi-summary-card::before,
.bazi-version .wuxing-card::before {
  content: "";
  position: absolute;
  inset: 16px;
  pointer-events: none;
  border: 1px solid rgba(139, 91, 50, 0.08);
}

.bazi-version .wuxing-heading strong,
.bazi-version .wuxing-useful strong,
.bazi-version .bazi-summary-head strong {
  color: #6a4329;
}

.bazi-version .wuxing-heading span,
.bazi-version .bazi-summary-card p,
.bazi-version .lucky-row span {
  color: rgba(95, 62, 40, 0.66);
}

.bazi-version .wuxing-wheel {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 252, 244, 0.88) 0 28%, transparent 29%),
    radial-gradient(circle at 50% 50%, rgba(212, 172, 112, 0.22) 0 50%, transparent 51%),
    repeating-radial-gradient(circle at 50% 50%, rgba(137, 91, 52, 0.08) 0 1px, transparent 1px 24px);
}

.bazi-version .wuxing-useful {
  font-family: "Songti SC", "STSong", serif;
}

.bazi-version .wuxing-wheel::before {
  opacity: 0.52;
  filter: sepia(0.4) saturate(0.7);
}

.bazi-version .wuxing-node {
  box-shadow: 0 10px 24px rgba(123, 73, 31, 0.1), inset 0 0 0 3px rgba(255, 255, 255, 0.68);
}

.bazi-version .bazi-calibrate,
.bazi-version .wish-group__toggle,
.bazi-version button[type="submit"],
.bazi-version #nextStep,
.bazi-version .copy-order-button {
  background: linear-gradient(180deg, #8f6042, #6d4630);
  color: #fff7e7;
}

.bazi-version .lucky-chip,
.bazi-version .bazi-tags span,
.bazi-version .order-proof span,
.bazi-version .order-proof em {
  border-color: rgba(157, 63, 47, 0.18);
  color: #8b4e34;
  background: #fff3e0;
}

@media (max-width: 720px) {
  .bazi-version .section-title::after {
    display: none;
  }

  .bazi-version .hero__content::after {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }
}

/* 2.0 fixes: remove odd seal, restore order spacing, clarify size help */
.bazi-version .hero__content::after,
.bazi-version .section-title::after {
  display: none;
  content: none;
}

.bazi-version .order-section.step-screen {
  padding-top: clamp(28px, 4vw, 46px);
  overflow: visible;
}

.bazi-version .order-panel {
  margin-top: 14px;
  transform: none;
}

.bazi-version .measure-help {
  position: static;
  z-index: 8;
}

.bazi-version .measure-help summary {
  border-color: rgba(157, 63, 47, 0.26);
  color: #8a4e35;
  background: #fff4df;
  box-shadow: 0 6px 14px rgba(123, 73, 31, 0.1);
}

.bazi-version .measure-help p {
  color: #68442d;
  background: #fff8ec;
  border-color: rgba(139, 91, 50, 0.18);
  box-shadow: 0 12px 26px rgba(123, 73, 31, 0.13);
}

@media (max-width: 720px) {
  .bazi-version .order-panel {
    transform: none;
  }
}

/* 2.0 fixes: keep wish direction groups compact and readable */
.bazi-version .profile-form--floating > button[type="submit"] {
  display: none;
}

.bazi-version .wish-field--detail {
  grid-column: 1 / -1;
}

.bazi-version .wish-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
  padding-right: 0;
  align-items: start;
}

.bazi-version .wish-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  min-height: 0;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.82);
}

.bazi-version .wish-group__toggle {
  grid-column: 1 / -1;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.2;
}

.bazi-version .wish-group label {
  display: none;
  width: auto;
  min-width: 0;
}

.bazi-version .wish-group.is-open label {
  display: block;
}

.bazi-version .wish-group:has(input:checked):not(.is-open) label:has(input:checked) {
  display: none;
}

.bazi-version .wish-field--detail span {
  min-height: 42px;
  padding: 7px 8px;
  gap: 6px;
  justify-content: flex-start;
  color: #65432d;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
  writing-mode: horizontal-tb;
}

.bazi-version .wish-field--detail span::before,
.bazi-version .wish-field--detail label:nth-of-type(n) span::before {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  font-size: 12px;
}

@media (max-width: 900px) {
  .bazi-version .wish-detail-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 560px) {
  .bazi-version .wish-detail-grid {
    grid-template-columns: 1fr;
  }

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

/* 2.0 fixes: tune the five-element wheel for phone viewports */
@media (max-width: 760px) {
  .bazi-version .wuxing-card {
    padding: 14px 10px 18px;
  }

  .bazi-version .wuxing-heading {
    gap: 6px;
    margin-bottom: 8px;
  }

  .bazi-version .wuxing-wheel {
    width: min(64vw, 248px);
    min-width: 220px;
    margin: 22px auto 10px;
  }

  .bazi-version .wuxing-lines circle,
  .bazi-version .wuxing-lines path {
    stroke-width: 4;
  }

  .bazi-version .wuxing-lines .sheng {
    stroke-width: 5;
    stroke-dasharray: 16 14;
  }

  .bazi-version .wuxing-lines .ke {
    stroke-width: 2.4;
  }

  .bazi-version .wuxing-lines text {
    font-size: 18px;
  }

  .bazi-version .wuxing-node {
    width: clamp(48px, 13.5vw, 56px);
    padding: 5px;
    border-width: 2px;
    box-shadow: 0 8px 18px rgba(123, 73, 31, 0.1), inset 0 0 0 2px rgba(255, 255, 255, 0.68);
  }

  .bazi-version .wuxing-node em {
    min-width: 44px;
    font-size: 9px;
    transform: translateY(-36px);
  }

  .bazi-version .wuxing-node strong {
    font-size: 20px;
  }

  .bazi-version .wuxing-node span {
    font-size: 10px;
  }

  .bazi-version .wuxing-node b {
    bottom: -14px;
    padding: 2px 7px;
    font-size: 10px;
  }

  .bazi-version .wuxing-node.is-useful {
    box-shadow: 0 0 0 5px rgba(255, 244, 223, 0.9), 0 12px 22px rgba(124, 77, 36, 0.14);
  }

  .bazi-version .wuxing-useful {
    margin: 4px auto 16px;
    gap: 8px;
  }

  .bazi-version .wuxing-useful strong {
    font-size: 18px;
  }
}

@media (max-width: 380px) {
  .bazi-version .wuxing-wheel {
    width: min(68vw, 232px);
    min-width: 204px;
  }

  .bazi-version .wuxing-node {
    width: 46px;
  }
}
