:root {
    --ink: #3d2b20;
    --muted: #7d6a58;
    --paper: #f8efdf;
    --paper-deep: #f1e2ca;
    --cream: #fffaf0;
    --gold: #c9954e;
    --gold-deep: #9b6626;
    --red: #a72a23;
    --red-deep: #7e1d18;
    --teal: #2e7f78;
    --green: #3d7c5a;
    --line: rgba(151, 107, 51, .28);
    --shadow: 0 24px 70px rgba(75, 45, 18, .24);
    --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
    --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background:
        radial-gradient(circle at 12% 4%, rgba(210, 163, 92, .22), transparent 34rem),
        radial-gradient(circle at 88% 22%, rgba(46, 127, 120, .14), transparent 28rem),
        #f3e6d2;
    color: var(--ink);
    font-family: var(--sans);
}

button, input, select { font: inherit; }
button { cursor: pointer; }

img { max-width: 100%; }

.poster {
    width: min(100%, 760px);
    margin: 0 auto;
    background: #f7eedf;
    box-shadow: 0 0 80px rgba(73, 45, 20, .18);
}

.hero { position: relative; }

.hero > img,
.section-img {
    display: block;
    width: 100%;
    height: auto;
}

.section-img { content-visibility: auto; }

.hotspot {
    position: absolute;
    z-index: 2;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 999px;
    -webkit-tap-highlight-color: transparent;
}

.hotspot:focus-visible {
    outline: 3px solid rgba(46, 127, 120, .85);
    outline-offset: 3px;
    background: rgba(255, 255, 255, .12);
}

.hotspot-query {
    left: 18.2%;
    top: 64.72%;
    width: 61.4%;
    height: 6.45%;
}

.hotspot-start {
    left: 18.2%;
    top: 75.68%;
    width: 63.9%;
    height: 7.55%;
    border-radius: 54px;
}

.hotspot-start:hover { box-shadow: 0 0 30px rgba(255, 182, 73, .28); }

.hotspot-query-text {
    left: 37%;
    top: 84.3%;
    width: 24%;
    height: 3%;
}

.consult-fab {
    position: fixed;
    right: max(16px, calc((100vw - 760px) / 2 + 16px));
    bottom: max(20px, env(safe-area-inset-bottom));
    z-index: 18;
    display: flex;
    align-items: center;
    gap: 7px;
    height: 45px;
    padding: 0 16px 0 8px;
    border: 1px solid rgba(255, 244, 218, .6);
    border-radius: 999px;
    background: linear-gradient(135deg, #b62d25, #8e201b);
    color: #fff8e9;
    font-family: var(--serif);
    font-size: 15px;
    letter-spacing: .08em;
    box-shadow: 0 12px 28px rgba(105, 26, 20, .32);
}

.consult-fab:hover { transform: translateY(-1px); }

.consult-fab__icon {
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    border-radius: 50%;
    background: rgba(255, 248, 231, .16);
    border: 1px solid rgba(255, 248, 231, .45);
    font-size: 13px;
}

.kid-overlay {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(47, 31, 18, .52);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.kid-overlay.is-open { display: flex; }

.kid-dialog {
    position: relative;
    width: min(100%, 620px);
    max-height: min(92vh, 900px);
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid rgba(176, 128, 67, .55);
    border-radius: 18px;
    background:
        radial-gradient(circle at 8% 0%, rgba(213, 165, 94, .17), transparent 18rem),
        linear-gradient(180deg, #fffaf0, #f9efde 62%, #f4e5cf);
    box-shadow: var(--shadow);
    scrollbar-width: thin;
    scrollbar-color: rgba(151, 107, 51, .45) transparent;
}

.kid-dialog--small { width: min(100%, 460px); }

.kid-dialog__head {
    position: sticky;
    top: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 17px 20px 15px;
    border-bottom: 1px solid rgba(151, 107, 51, .18);
    background: rgba(255, 250, 240, .94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.seal {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 2px solid #b7332a;
    border-radius: 10px;
    color: #b7332a;
    font-family: var(--serif);
    font-size: 23px;
    font-weight: 700;
    transform: rotate(-4deg);
    box-shadow: inset 0 0 0 2px rgba(183, 51, 42, .12);
}

.seal--small { width: 38px; height: 38px; font-size: 20px; }

.kid-dialog__titles { min-width: 0; flex: 1; }

.eyebrow {
    margin: 0 0 3px;
    color: var(--gold-deep);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.kid-dialog h2,
.kid-dialog h3 {
    margin: 0;
    font-family: var(--serif);
    font-weight: 700;
    letter-spacing: .03em;
}

.kid-dialog h2 { font-size: 23px; }
.kid-dialog h3 { font-size: 21px; }

.icon-close {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(151, 107, 51, .24);
    border-radius: 50%;
    background: rgba(255, 255, 255, .55);
    color: var(--muted);
    font-size: 22px;
    line-height: 1;
}

.icon-close:hover { background: #fff; color: var(--ink); }

.kid-step { padding: 20px; }

.reading-form,
.query-form,
.mobile-form {
    display: grid;
    gap: 15px;
}

.query-form,
.mobile-form { padding: 20px; }

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

.field > span {
    color: #66503c;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
}

.field input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: rgba(255, 255, 255, .7);
    color: var(--ink);
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.field input:focus {
    border-color: rgba(181, 126, 55, .75);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(201, 149, 78, .14);
}

.field input::placeholder { color: #b4a18a; }

.segment {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(239, 226, 205, .7);
}

.segment label { position: relative; display: block; }
.segment input { position: absolute; opacity: 0; pointer-events: none; }

.segment span {
    display: grid;
    place-items: center;
    height: 39px;
    border-radius: 9px;
    color: #7c6854;
    font-size: 14px;
    font-weight: 700;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.segment input:checked + span {
    background: linear-gradient(135deg, #b62d25, #92221c);
    color: #fff8e9;
    box-shadow: 0 6px 16px rgba(151, 35, 27, .22);
}

.segment input:focus-visible + span { outline: 3px solid rgba(46, 127, 120, .6); outline-offset: 2px; }

.birth-card {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .62), rgba(246, 235, 217, .5)),
        repeating-linear-gradient(0deg, transparent, transparent 12px, rgba(151, 107, 51, .035) 12px, rgba(151, 107, 51, .035) 13px);
}

.birth-tabs {
    display: inline-flex;
    gap: 4px;
    margin-bottom: 13px;
    padding: 3px;
    border: 1px solid rgba(151, 107, 51, .25);
    border-radius: 999px;
    background: rgba(241, 226, 202, .8);
}

.birth-tabs button {
    min-width: 66px;
    height: 32px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #7c6854;
    font-size: 13px;
    font-weight: 700;
}

.birth-tabs button.is-active {
    background: #fffaf0;
    color: var(--red);
    box-shadow: 0 3px 10px rgba(100, 64, 26, .12);
}

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

.leap-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 11px;
    color: #66503c;
    font-size: 13px;
}

.leap-row input { width: 17px; height: 17px; accent-color: var(--red); }

.hint {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.65;
}

.consent {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: #6e5a47;
    font-size: 12px;
    line-height: 1.6;
}

.consent input {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin-top: 1px;
    accent-color: var(--red);
}

.consent a { color: var(--red); text-decoration: none; border-bottom: 1px solid rgba(167, 42, 35, .35); }

.primary {
    width: 100%;
    min-height: 50px;
    padding: 0 22px;
    border: 1px solid rgba(255, 231, 188, .5);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .24), transparent 42%),
        linear-gradient(135deg, #d99a36, #b96f21 58%, #9a5617);
    color: #fff9eb;
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .12em;
    text-shadow: 0 1px 1px rgba(92, 48, 8, .42);
    box-shadow: 0 10px 22px rgba(145, 78, 21, .25), inset 0 1px 0 rgba(255, 255, 255, .35);
}

.primary:hover:not(:disabled) { filter: brightness(1.04); }
.primary:disabled { cursor: not-allowed; opacity: .55; box-shadow: none; }

.text-button {
    justify-self: center;
    padding: 4px 8px;
    border: 0;
    background: transparent;
    color: var(--gold-deep);
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.state {
    min-height: 20px;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

.state.is-error { color: #b33a31; }

/* ---------- calculation animation ---------- */

.calc-step { padding: 10px 14px 18px; }

.calc-stage {
    position: relative;
    min-height: 470px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 14px;
    background:
        radial-gradient(circle at 50% 32%, rgba(255, 251, 236, .96), rgba(249, 237, 214, .7) 58%, rgba(240, 221, 190, .55)),
        #f8eedb;
}

.calc-stage::before {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(165, 118, 57, .18);
    border-radius: 10px;
    pointer-events: none;
}

.calc-sky { position: absolute; inset: 0; pointer-events: none; }

.star {
    position: absolute;
    width: 9px;
    height: 9px;
    background: #d9a43f;
    clip-path: polygon(50% 0, 61% 38%, 100% 50%, 61% 62%, 50% 100%, 39% 62%, 0 50%, 39% 38%);
    opacity: 0;
    animation: starTwinkle 2.6s ease-in-out infinite;
}

.star-1 { left: 12%; top: 13%; animation-delay: .2s; }
.star-2 { left: 84%; top: 18%; width: 7px; height: 7px; animation-delay: .8s; }
.star-3 { left: 20%; top: 72%; width: 6px; height: 6px; animation-delay: 1.3s; }
.star-4 { left: 78%; top: 64%; animation-delay: .5s; }
.star-5 { left: 50%; top: 8%; width: 5px; height: 5px; animation-delay: 1.7s; }
.star-6 { left: 90%; top: 86%; width: 5px; height: 5px; animation-delay: 1.1s; }

.cloud {
    position: absolute;
    width: 72px;
    height: 22px;
    border: 1px solid rgba(191, 141, 76, .32);
    border-radius: 999px;
    opacity: .55;
    animation: cloudFloat 5s ease-in-out infinite;
}

.cloud::before,
.cloud::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(191, 141, 76, .32);
    border-radius: 50%;
    background: rgba(255, 250, 239, .7);
}

.cloud::before { width: 30px; height: 30px; left: 12px; top: -17px; }
.cloud::after { width: 22px; height: 22px; right: 10px; top: -12px; }
.cloud-1 { left: 4%; top: 36%; }
.cloud-2 { right: 2%; top: 48%; transform: scale(.76); animation-delay: 1.4s; }

.scroll {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: stretch;
    width: min(84%, 410px);
    height: 226px;
    filter: drop-shadow(0 16px 18px rgba(89, 51, 15, .16));
}

.roller {
    position: relative;
    z-index: 2;
    width: 18px;
    border-radius: 10px;
    background: linear-gradient(90deg, #7f241b, #b43a2b 45%, #7c2119);
    box-shadow: inset 1px 0 0 rgba(255, 219, 172, .35), inset -1px 0 0 rgba(62, 13, 8, .45);
}

.roller::before,
.roller::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 24px;
    height: 12px;
    border-radius: 4px;
    background: linear-gradient(180deg, #e3b25d, #a66e22);
    transform: translateX(-50%);
}

.roller::before { top: -7px; }
.roller::after { bottom: -7px; }

.scroll-paper {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 12px;
    background:
        linear-gradient(90deg, rgba(181, 135, 74, .12), transparent 12%, transparent 88%, rgba(181, 135, 74, .12)),
        repeating-linear-gradient(0deg, transparent, transparent 17px, rgba(160, 112, 52, .045) 17px, rgba(160, 112, 52, .045) 18px),
        #fffaf0;
    border-top: 1px solid rgba(174, 126, 62, .4);
    border-bottom: 1px solid rgba(174, 126, 62, .4);
    clip-path: inset(0 50% 0 50%);
    animation: paperUnroll .9s cubic-bezier(.22, .7, .25, 1) .1s forwards;
}

.scroll-kicker {
    margin: 0 0 8px;
    color: var(--gold-deep);
    font-family: var(--serif);
    font-size: 11px;
    letter-spacing: .2em;
}

.scroll-name {
    position: relative;
    margin: 0;
    color: #6f2a1e;
    font-family: var(--serif);
    font-size: clamp(34px, 9vw, 54px);
    font-weight: 700;
    letter-spacing: .16em;
    text-indent: .16em;
    clip-path: inset(0 100% 0 0);
    animation: brushWrite 1.25s cubic-bezier(.2, .65, .28, 1) .75s forwards;
}

.brush {
    position: absolute;
    top: 50%;
    left: 13%;
    z-index: 3;
    width: 12px;
    height: 12px;
    margin-top: -7px;
    border-radius: 50% 45% 60% 40%;
    background: #4b2416;
    opacity: 0;
    filter: blur(.3px);
    animation: brushMove 1.25s cubic-bezier(.2, .65, .28, 1) .75s forwards;
}

.scroll-sub {
    margin: 14px 0 0;
    color: #9a7854;
    font-size: 11px;
    letter-spacing: .18em;
}

.scroll-seal {
    position: absolute;
    right: 22px;
    bottom: 17px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(176, 45, 36, .9);
    border-radius: 8px;
    color: rgba(176, 45, 36, .92);
    font-family: var(--serif);
    font-size: 23px;
    font-weight: 700;
    transform: rotate(-11deg) scale(1.8);
    opacity: 0;
    animation: sealStamp .45s cubic-bezier(.2, .9, .3, 1.35) 2.02s forwards;
}

.element-row {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 9px;
    margin-top: 20px;
}

.element {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(151, 107, 51, .35);
    border-radius: 50%;
    background: rgba(255, 250, 240, .72);
    color: #8d7357;
    font-family: var(--serif);
    font-size: 15px;
    font-weight: 700;
    transform: scale(.78);
    opacity: .45;
    animation: elementLight .55s ease-out forwards;
}

.element--wood { animation-delay: .95s; color: #3f7a52; }
.element--fire { animation-delay: 1.25s; color: #b84a33; }
.element--earth { animation-delay: 1.55s; color: #9b6c2f; }
.element--metal { animation-delay: 1.85s; color: #8b7a45; }
.element--water { animation-delay: 2.15s; color: #376f86; }

.footprints {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 10px;
    height: 20px;
    margin-top: 4px;
}

.footprints i {
    position: relative;
    display: block;
    width: 9px;
    height: 16px;
    border-radius: 60% 60% 50% 50%;
    background: rgba(184, 120, 51, .45);
    transform: rotate(16deg) scale(.6);
    opacity: 0;
    animation: footStep .7s ease-out forwards;
}

.footprints i:nth-child(1) { margin-top: 0; animation-delay: 1.05s; }
.footprints i:nth-child(2) { margin-top: 7px; animation-delay: 1.35s; transform: rotate(-16deg) scale(.6); }
.footprints i:nth-child(3) { margin-top: 0; animation-delay: 1.65s; }
.footprints i:nth-child(4) { margin-top: 7px; animation-delay: 1.95s; transform: rotate(-16deg) scale(.6); }

.calc-text {
    position: relative;
    z-index: 2;
    min-height: 24px;
    margin: 12px 20px 0;
    color: #61462f;
    font-family: var(--serif);
    font-size: 15px;
    text-align: center;
}

.calc-progress {
    position: relative;
    z-index: 2;
    width: min(64%, 260px);
    height: 6px;
    margin-top: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(161, 117, 62, .16);
}

.calc-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #d7a445, #b62d25);
    animation: progressFill 3.15s cubic-bezier(.25, .5, .3, 1) forwards;
}

@keyframes paperUnroll {
    to { clip-path: inset(0 0 0 0); }
}

@keyframes brushWrite {
    to { clip-path: inset(0 0 0 0); }
}

@keyframes brushMove {
    0% { left: 13%; opacity: 0; transform: scale(.8); }
    8% { opacity: .85; }
    88% { opacity: .7; }
    100% { left: 84%; opacity: 0; transform: scale(.45); }
}

@keyframes sealStamp {
    0% { opacity: 0; transform: rotate(-18deg) scale(2.1); }
    70% { opacity: 1; transform: rotate(-9deg) scale(.92); }
    100% { opacity: 1; transform: rotate(-11deg) scale(1); }
}

@keyframes elementLight {
    60% { opacity: 1; transform: scale(1.12); box-shadow: 0 0 18px rgba(207, 158, 74, .38); }
    100% { opacity: 1; transform: scale(1); box-shadow: 0 0 10px rgba(207, 158, 74, .2); }
}

@keyframes footStep {
    0% { opacity: 0; transform: translateY(-8px) rotate(16deg) scale(.5); }
    70% { opacity: 1; transform: translateY(0) rotate(16deg) scale(1.05); }
    100% { opacity: .75; transform: translateY(0) rotate(16deg) scale(1); }
}

@keyframes progressFill {
    0% { width: 0; }
    35% { width: 38%; }
    70% { width: 76%; }
    100% { width: 100%; }
}

@keyframes starTwinkle {
    0%, 100% { opacity: 0; transform: scale(.55) rotate(0deg); }
    50% { opacity: .9; transform: scale(1.1) rotate(22deg); }
}

@keyframes cloudFloat {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(9px); }
}

/* ---------- results ---------- */

.result-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 13px;
}

.preview-summary {
    margin: 0 0 14px;
    padding: 15px 16px;
    border-left: 3px solid var(--gold);
    border-radius: 4px 12px 12px 4px;
    background: rgba(255, 255, 255, .58);
    color: #4c3626;
    font-family: var(--serif);
    font-size: 16px;
    line-height: 1.85;
}

.bazi-card {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .64), rgba(247, 235, 216, .55)),
        #fffaf0;
}

.chart-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 11px;
}

.pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.pillar {
    display: grid;
    gap: 3px;
    justify-items: center;
    padding: 10px 4px;
    border: 1px solid rgba(151, 107, 51, .2);
    border-radius: 9px;
    background: rgba(255, 252, 245, .72);
    text-align: center;
}

.pillar span { color: var(--muted); font-size: 10px; }
.pillar strong { color: #7e241c; font-family: var(--serif); font-size: 22px; letter-spacing: .08em; }
.pillar small { color: #806749; font-size: 10px; line-height: 1.4; }
.pillar em { color: var(--teal); font-size: 10px; font-style: normal; }

.method-note {
    margin: 9px 0 16px;
    color: var(--muted);
    font-size: 11px;
    text-align: center;
}

.unlock-card {
    display: grid;
    gap: 13px;
    padding: 16px;
    border: 1px solid rgba(167, 42, 35, .22);
    border-radius: 15px;
    background:
        radial-gradient(circle at 100% 0, rgba(201, 149, 78, .16), transparent 12rem),
        rgba(255, 251, 242, .8);
}

.product-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    color: #533b27;
    font-family: var(--serif);
    font-size: 16px;
}

.product-line strong { color: var(--red); font-size: 23px; white-space: nowrap; }

.payment-options span { height: 37px; font-size: 13px; }

.report-block,
.report-sections > section,
.wechat-card,
.method-details {
    margin-top: 14px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(255, 252, 245, .62);
}

.report-block h4,
.report-section h4,
.wechat-card h4 {
    margin: 0 0 9px;
    color: #6c2a20;
    font-family: var(--serif);
    font-size: 17px;
}

.ten-gods-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.ten-gods-grid > div {
    padding: 9px 10px;
    border-radius: 9px;
    background: rgba(239, 226, 205, .55);
}

.ten-gods-grid span,
.ten-gods-grid small { display: block; color: var(--muted); font-size: 10px; }
.ten-gods-grid strong { display: block; margin: 2px 0; color: #4d3929; font-size: 13px; }

.report-section { margin-top: 10px; }
.report-section:first-child { margin-top: 0; }
.report-section p { margin: 0 0 6px; color: #4c3626; font-size: 14px; line-height: 1.85; }
.report-section small { color: var(--muted); font-size: 10px; }

.cycle-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
}

.cycle-grid > div {
    display: grid;
    gap: 3px;
    padding: 9px 6px;
    border-radius: 8px;
    background: rgba(239, 226, 205, .55);
    text-align: center;
}

.cycle-grid strong { color: #7e241c; font-family: var(--serif); font-size: 16px; }
.cycle-grid span, .cycle-grid small { color: var(--muted); font-size: 9px; }

.method-details summary {
    color: var(--gold-deep);
    font-size: 13px;
    cursor: pointer;
}

.method-details ol {
    margin: 10px 0 0;
    padding-left: 20px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

.wechat-card {
    display: grid;
    gap: 10px;
}

.wechat-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }

.wechat-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 43px;
    padding: 0 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2c8a67, #1f6f55);
    color: #f4fff9;
    font-family: var(--serif);
    font-size: 15px;
    text-decoration: none;
    letter-spacing: .08em;
}

.wechat-id {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 9px;
    background: rgba(239, 226, 205, .55);
    font-size: 12px;
}

.wechat-id strong { color: #4d3929; font-size: 14px; letter-spacing: .05em; }
.wechat-id button { padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fffaf0; color: var(--gold-deep); font-size: 11px; }

.disclaimer {
    margin: 14px 2px 0;
    color: #98846d;
    font-size: 10px;
    line-height: 1.7;
    text-align: center;
}

.query-result {
    display: grid;
    gap: 10px;
    color: #5c4633;
    font-size: 13px;
    line-height: 1.7;
}

.query-result.is-error { color: #b33a31; }

.query-card {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: rgba(255, 252, 245, .7);
}

.query-card strong { color: #6b2a20; font-family: var(--serif); font-size: 15px; }
.query-card span { color: var(--muted); font-size: 12px; }
.query-card small { color: #9a846d; font-size: 10px; word-break: break-all; }
.query-card .primary { min-height: 38px; margin-top: 6px; font-size: 13px; }

.query-result dl {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 7px 10px;
    margin: 0;
    padding: 13px;
    border-radius: 11px;
    background: rgba(239, 226, 205, .5);
}

.query-result dt { color: var(--muted); font-size: 11px; }
.query-result dd { margin: 0; word-break: break-all; }

.toast {
    position: fixed;
    left: 50%;
    bottom: max(26px, env(safe-area-inset-bottom));
    z-index: 60;
    max-width: min(86vw, 420px);
    padding: 11px 18px;
    border-radius: 999px;
    background: rgba(52, 35, 21, .92);
    color: #fff8e9;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
    transform: translate(-50%, 16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
}

.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 560px) {
    .kid-overlay { padding: 0; align-items: flex-end; }
    .kid-dialog {
        width: 100%;
        max-height: 94vh;
        border-radius: 18px 18px 0 0;
        border-bottom: 0;
    }
    .kid-dialog__head { padding: 14px 16px 12px; }
    .kid-step { padding: 17px 16px calc(18px + env(safe-area-inset-bottom)); }
    .query-form,
    .mobile-form { padding: 17px 16px calc(18px + env(safe-area-inset-bottom)); }
    .birth-grid { grid-template-columns: 1fr; }
    .calc-stage { min-height: 430px; }
    .pillars { gap: 5px; }
    .pillar { padding: 9px 2px; }
    .pillar strong { font-size: 19px; }
    .ten-gods-grid { grid-template-columns: 1fr; }
    .cycle-grid { grid-template-columns: repeat(3, 1fr); }
    .consult-fab { right: 14px; bottom: calc(16px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-delay: 0s !important;
        transition-duration: .001ms !important;
    }
}
