/* «Хүү Охин»: the category standard at Flo's craft. Violet brand (neither boy nor girl), sky = Хүү, rose = Охин. */
@font-face { font-family: "Manrope"; src: url("/fonts/manrope-cyrillic-ext.woff2") format("woff2"); font-weight: 400 800; font-display: swap; unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Manrope"; src: url("/fonts/manrope-cyrillic.woff2") format("woff2"); font-weight: 400 800; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; src: url("/fonts/manrope-latin.woff2") format("woff2"); font-weight: 400 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #fbfaff;
  --surface: #ffffff;
  --sunk: #f4f1fb;
  --ink: #1e1830;
  --ink-2: #4a4360;
  --muted: #6d6684;
  --line: #e9e4f4;
  --brand: #6a46dc;
  --brand-deep: #5332c2;
  --brand-soft: #efe9ff;
  --boy: #2558b8;
  --boy-fill: #dceaff;
  --boy-solid: #2f6fd6;
  --girl: #a52a50;
  --girl-fill: #ffe1ea;
  --girl-solid: #c4365f;
  --ok: #1f8a54;
  --danger: #b4233c;
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 26px;
  --shadow: 0 1px 2px rgba(30, 24, 48, 0.05), 0 6px 20px rgba(60, 40, 120, 0.07);
  --shadow-lift: 0 2px 4px rgba(30, 24, 48, 0.06), 0 14px 34px rgba(60, 40, 120, 0.12);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: 20px;
  --bar-h: 0px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "tnum" 0;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
}
::selection { background: var(--brand-soft); color: var(--brand-deep); }
:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.ic { width: 20px; height: 20px; flex: none; }
.muted { color: var(--muted); }
.center { text-align: center; }
.t-boy { color: var(--boy); }
.t-girl { color: var(--girl); }

main { max-width: 480px; margin: 0 auto; padding: 0 var(--pad) 32px; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  max-width: 480px; margin: 0 auto; padding: 12px var(--pad);
  background: rgba(251, 250, 255, 0.86);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.brand-mark { position: relative; width: 30px; height: 20px; }
.brand-mark i { position: absolute; top: 0; width: 20px; height: 20px; border-radius: 50%; }
.brand-mark i:first-child { left: 0; background: #5b97f2; }
.brand-mark i:last-child { right: 0; background: #ee6690; mix-blend-mode: multiply; }
.mine-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-deep); font-weight: 700; font-size: 14px; text-decoration: none; }
.mine-link .ic { width: 18px; height: 18px; }


@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* Landing */
.intro { padding: 14px 0 20px; text-align: center; }
h1 { margin: 0 0 10px; font-size: clamp(30px, 8.6vw, 38px); line-height: 1.08; font-weight: 800; letter-spacing: -0.035em; }
.lead { margin: 0; color: var(--ink-2); font-size: 16.5px; line-height: 1.5; }

.entry { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 20px; margin-bottom: 36px; }
.entry fieldset { border: 0; margin: 0 0 16px; padding: 0; }
.entry legend { padding: 0; margin-bottom: 10px; font-weight: 700; font-size: 15px; }
.dob { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 10px; }
.dob label { display: grid; gap: 6px; }
.dob span { font-size: 13px; font-weight: 600; color: var(--muted); padding-left: 2px; }
.dob input {
  width: 100%; min-height: 56px; padding: 0 12px; font: inherit; font-size: 22px; font-weight: 700; text-align: center;
  font-variant-numeric: tabular-nums; letter-spacing: 0.02em; color: var(--ink); caret-color: var(--brand);
  background: var(--sunk); border: 2px solid transparent; border-radius: 14px; -webkit-appearance: none; appearance: none;
  transition: border-color 0.2s, background 0.2s;
}
.dob input::placeholder { color: #857e9e; font-weight: 600; }
.dob input:focus { outline: none; border-color: var(--brand); background: #fff; }
.dob input.invalid { border-color: var(--danger); background: #fff5f6; }
.assure { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.assure .ic { width: 15px; height: 15px; }
.error { margin: 0 0 14px; padding: 11px 14px; border-radius: var(--r-sm); background: #fdeef1; color: var(--danger); font-size: 14.5px; font-weight: 500; }

.btn {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 56px; padding: 14px 20px;
  border: 0; border-radius: 16px; cursor: pointer; font: inherit; font-weight: 800; font-size: 17px; letter-spacing: -0.01em;
  transition: transform 0.15s var(--ease), box-shadow 0.25s var(--ease), background 0.2s;
}
.btn.primary { background: var(--brand); color: #fff; box-shadow: 0 2px 4px rgba(83, 50, 194, 0.18), 0 10px 24px rgba(106, 70, 220, 0.28); }
.btn.primary:hover { background: var(--brand-deep); }
.btn:active { transform: scale(0.98); }
.btn[disabled] { cursor: progress; opacity: 0.75; }
.btn[disabled]::after { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, 0.45); border-top-color: #fff; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn.ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.soft { background: var(--brand-soft); color: var(--brand-deep); }

section > h2, .sample-head h2 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.2; }

/* Sample calendar on the landing */
.sample { margin-bottom: 40px; }
.sample-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.tag { padding: 4px 10px; border-radius: 999px; background: var(--sunk); color: var(--muted); font-size: 12.5px; font-weight: 700; }
.sample-cal { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 16px 14px 14px; }
.sample-note { margin: 12px 4px 0; font-size: 14.5px; color: var(--ink-2); }

/* What you get */
.gets { margin-bottom: 40px; }
.gets ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 2px; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.gets li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; }
.gets li + li { border-top: 1px solid var(--line); }
.gets .ic { width: 24px; height: 24px; color: var(--brand); margin-top: 1px; }
.gets b { display: block; font-size: 15.5px; font-weight: 700; }
.gets span { display: block; font-size: 14px; color: var(--muted); margin-top: 1px; }

/* FAQ */
.faq { margin-bottom: 28px; }
.faq h2 { margin-bottom: 12px; }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 2px; font-weight: 700; font-size: 15.5px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2.2px solid var(--muted); border-bottom: 2.2px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform 0.25s var(--ease); }
details[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
details p { margin: -4px 2px 16px; color: var(--ink-2); font-size: 15px; line-height: 1.6; }

.foot { padding: 8px 4px 0; font-size: 12.5px; line-height: 1.55; color: var(--muted); text-align: center; }

/* Sticky thumb-zone action bar */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom));
  background: rgba(251, 250, 255, 0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 -1px 0 var(--line);
  animation: slideup 0.35s var(--ease) both;
}
.actionbar > * { max-width: 440px; margin-left: auto; margin-right: auto; }
.bar-note { margin: 8px auto 0; text-align: center; font-size: 12.5px; color: var(--muted); }
@keyframes slideup { from { transform: translateY(100%); } to { transform: none; } }

/* Pay */
.back { display: inline-flex; align-items: center; gap: 4px; margin: 6px 0 14px -6px; padding: 8px 10px 8px 4px; border: 0; background: none; color: var(--muted); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; border-radius: 10px; }
.teaser-ok { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px; color: var(--ok); font-weight: 700; font-size: 15px; }
.teaser-ok .ic { width: 18px; height: 18px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 18px; }
.facts div { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px 16px; }
.facts dt { font-size: 13px; color: var(--muted); font-weight: 600; }
.facts dd { margin: 2px 0 0; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.facts dd small { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); letter-spacing: 0; }

.locked { position: relative; margin-bottom: 20px; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--surface); }
.locked-cal { padding: 16px 14px 14px; filter: blur(3px) saturate(0.6); opacity: 0.7; pointer-events: none; }
.locked-veil { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 2px; text-align: center; background: linear-gradient(180deg, rgba(251, 250, 255, 0.35), rgba(251, 250, 255, 0.82) 60%); }
.lock-badge { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--brand); color: #fff; box-shadow: 0 8px 22px rgba(106, 70, 220, 0.35); margin-bottom: 8px; }
.lock-badge .ic { width: 24px; height: 24px; }
.locked-veil b { font-size: 17px; font-weight: 800; }
.locked-veil span { font-size: 14px; color: var(--ink-2); }
.incl { list-style: none; margin: 0 0 12px; padding: 0; }
.incl li { display: flex; gap: 10px; padding: 7px 2px; font-size: 15px; color: var(--ink-2); }
.incl .ic { width: 20px; height: 20px; color: var(--brand); margin-top: 1px; }

/* Waiting */
#view-wait { padding: 48px 8px 24px; }
#view-wait h2 { margin: 0 0 8px; font-size: 22px; font-weight: 800; }
#view-wait .btn { max-width: 260px; margin: 24px auto 0; }
.pulse { position: relative; width: 64px; height: 44px; margin: 0 auto 22px; }
.pulse i { position: absolute; top: 0; width: 44px; height: 44px; border-radius: 50%; animation: breathe 1.6s var(--ease) infinite alternate; }
.pulse i:first-child { left: 0; background: #5b97f2; }
.pulse i:last-child { right: 0; background: #ee6690; mix-blend-mode: multiply; animation-delay: 0.4s; }
@keyframes breathe { from { transform: scale(0.82); } to { transform: scale(1); } }

/* ---------- Month calendar (shared by sample, locked preview and result) ---------- */
.mc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 2px 12px; }
.mc-title { display: grid; justify-items: center; line-height: 1.2; }
.mc-title b { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.mc-title span { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.mc-nav { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--sunk); color: var(--ink); cursor: pointer; }
.mc-nav[disabled] { opacity: 0.3; cursor: default; }
.mc-nav .ic { width: 20px; height: 20px; }
.mc-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 6px; }
.mc-wd { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); padding-bottom: 4px; }
.mc-day {
  position: relative; display: grid; place-items: start center; height: 56px; padding: 4px 0 0; border: 0; background: none;
  font: inherit; font-size: 15.5px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); cursor: pointer;
}
.mc-day .dot { position: relative; z-index: 1; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; transition: transform 0.25s var(--ease), background 0.2s, color 0.2s; }
/* A continuous band behind same-result runs, so a lunar month reads as one stretch */
.mc-day::before { content: ""; position: absolute; top: 3px; bottom: 3px; left: -1px; right: -1px; }
.mc-day.boy::before { background: var(--boy-fill); }
.mc-day.girl::before { background: var(--girl-fill); }
.mc-day.x::before { background: var(--sunk); }
.mc-day.x { color: #8b84a3; cursor: default; }
.mc-day.run-start::before { left: 3px; border-top-left-radius: 20px; border-bottom-left-radius: 20px; }
.mc-day.run-end::before { right: 3px; border-top-right-radius: 20px; border-bottom-right-radius: 20px; }
.mc-day.boy { color: var(--boy); }
.mc-day.girl { color: var(--girl); }
.mc-day.none { color: #b5afc8; cursor: default; }
.mc-day.blank { cursor: default; }
.mc-day.today .dot { box-shadow: inset 0 0 0 2.5px var(--ink); }
.mc-day.sel .dot { color: #fff; transform: scale(1.06); box-shadow: 0 4px 12px rgba(30, 24, 48, 0.18); }
.mc-day.boy.sel .dot { background: var(--boy-solid); }
.mc-day.girl.sel .dot { background: var(--girl-solid); }
.mc-day small { position: absolute; z-index: 2; left: 0; right: 0; bottom: 5px; text-align: center; font-size: 11px; font-weight: 800; line-height: 1; white-space: nowrap; color: currentColor; }
.mc-day.run-start small { left: 3px; }
.mc-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 14px 2px 0; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.mc-legend span { display: inline-flex; align-items: center; gap: 7px; }
.mc-legend i { width: 14px; height: 14px; border-radius: 50%; }
.mc-legend .lb { background: var(--boy-fill); box-shadow: inset 0 0 0 1.5px var(--boy); }
.mc-legend .lg { background: var(--girl-fill); box-shadow: inset 0 0 0 1.5px var(--girl); }
.mc-legend .lt { box-shadow: inset 0 0 0 2px var(--ink); }
.mc-legend .ll { width: auto; height: auto; padding: 1px 6px; border-radius: 6px; background: var(--sunk); color: var(--ink-2); font-style: normal; font-size: 11px; font-weight: 800; line-height: 1.4; }

/* ---------- Result ---------- */
.res-hero { position: relative; overflow: hidden; animation: reveal 0.9s var(--ease) both; margin: 6px 0 18px; padding: 22px 22px 20px; border-radius: var(--r-lg); color: #fff; }
.res-hero.boy { background: linear-gradient(150deg, #3570d4, #2552b0); }
.res-hero.girl { background: linear-gradient(150deg, #c63f6a, #a52a50); }
.res-hero.none { background: linear-gradient(150deg, #8d86a6, #5f5878); }
.res-hero p { position: relative; z-index: 1; margin: 0; }
.res-label { font-size: 14.5px; font-weight: 600; opacity: 0.92; }
.res-word { font-size: 54px; font-weight: 800; letter-spacing: -0.045em; line-height: 1.05; margin: 2px 0 6px !important; }
.res-sub { font-size: 14.5px; font-weight: 600; opacity: 0.95; font-variant-numeric: tabular-nums; }
.res-age { display: inline-block; margin-top: 12px !important; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.2); font-size: 13.5px; font-weight: 700; }

.tabs { position: sticky; top: 56px; z-index: 10; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; margin: 0 0 16px; border-radius: 16px; background: var(--sunk); }
.tabs button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font: inherit; font-weight: 700; font-size: 14.5px; cursor: pointer; transition: background 0.2s, color 0.2s, box-shadow 0.2s; }
.tabs button .ic { width: 18px; height: 18px; }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(30, 24, 48, 0.06), 0 3px 10px rgba(60, 40, 120, 0.08); }


.card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 16px 14px; margin-bottom: 14px; }

.day-detail { display: flex; gap: 14px; align-items: center; margin: 12px 0 4px; padding: 12px 14px; border-radius: var(--r); background: var(--sunk); }
.day-detail:empty { display: none; }
.day-detail .big { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; font-size: 13px; font-weight: 800; text-align: center; line-height: 1.15; }
.day-detail .big.boy { background: var(--boy-fill); color: var(--boy); }
.day-detail .big.girl { background: var(--girl-fill); color: var(--girl); }
.day-detail .big.none { background: var(--sunk); color: var(--muted); }
.day-detail .big b { display: block; font-size: 20px; letter-spacing: -0.02em; }
.day-detail p { margin: 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.45; }
.day-detail p strong { display: block; color: var(--ink); font-size: 16px; font-weight: 800; margin-bottom: 2px; }

/* 12-month timeline */
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl-year { margin: 6px 0 8px 2px; font-size: 13px; font-weight: 800; color: var(--muted); letter-spacing: 0.02em; }
.tl-row { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px; padding: 12px 12px 12px 10px; margin-bottom: 8px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.tl-row.now { box-shadow: var(--shadow), inset 0 0 0 2px var(--ink); }
.tl-m { display: grid; place-items: center; height: 52px; border-radius: 14px; font-weight: 800; line-height: 1.05; text-align: center; }
.tl-row.boy .tl-m { background: var(--boy-fill); color: var(--boy); }
.tl-row.girl .tl-m { background: var(--girl-fill); color: var(--girl); }
.tl-row.none .tl-m { background: var(--sunk); color: var(--muted); }
.tl-m b { display: block; font-size: 20px; }
.tl-m small { font-size: 10.5px; font-weight: 700; }
.tl-when b { display: block; font-size: 15.5px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.tl-when span { font-size: 13px; color: var(--muted); font-weight: 600; }
.tl-when .now-tag { font-style: normal; display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; vertical-align: 2px; }
.pill { padding: 7px 12px; border-radius: 999px; font-weight: 800; font-size: 14px; }
.pill.boy { background: var(--boy-solid); color: #fff; }
.pill.girl { background: var(--girl-solid); color: #fff; }
.pill.none { background: var(--sunk); color: var(--muted); }
.past-toggle { margin: 4px 0 14px; }

/* Full chart (清宫图) */
.chart-intro { margin: 0 4px 12px; font-size: 14px; color: var(--ink-2); }
.chart { display: grid; grid-template-columns: 28px repeat(12, minmax(0, 1fr)); gap: 3px; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.chart > div { display: grid; place-items: center; height: 24px; border-radius: 6px; line-height: 1; }
.chart .ch { height: 26px; font-weight: 800; color: var(--muted); font-size: 11px; }
.chart .rh { font-weight: 800; color: var(--muted); }
.chart .rh.her { background: var(--ink); color: #fff; }
.chart .c { font-weight: 800; }
.chart .c.b { background: #f2f6fe; color: #4f74b8; }
.chart .c.b.her { background: var(--boy-fill); color: var(--boy); }
.chart .c.g { background: #fef2f5; color: #b04d6c; }
.chart .c.g.her { background: var(--girl-fill); color: var(--girl); }

.chart .c.mine { box-shadow: inset 0 0 0 2px currentColor; cursor: pointer; }
.chart .c.now { color: #fff !important; }
.chart .c.b.now { background: var(--boy-solid); }
.chart .c.g.now { background: var(--girl-solid); }
.chart .c.pick { transform: scale(1.22); position: relative; z-index: 1; box-shadow: 0 0 0 2px #fff, 0 3px 10px rgba(30, 24, 48, 0.25); }
.chart-pick { margin: 14px 2px 2px; font-size: 14px; color: var(--ink-2); min-height: 42px; }
.chart-pick b { color: var(--ink); }

/* Explanations */
.explain { margin-top: 28px; }
.explain h2 { margin: 0 0 6px; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { padding: 4px 0 14px; }
.steps b { display: block; font-size: 15px; }
.steps .val { display: inline-block; margin: 6px 0 4px; padding: 4px 10px; border-radius: 9px; background: var(--brand-soft); color: var(--brand-deep); font-weight: 800; font-size: 14.5px; }
.steps p { margin: 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }

.close { margin: 32px 0 8px; padding: 26px 22px 22px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); text-align: center; }
.close .ic-heart { width: 30px; height: 30px; color: var(--girl); margin-bottom: 6px; }
.close h2 { margin: 0 0 6px; font-size: 20px; font-weight: 800; }
.close p { margin: 0 0 18px; color: var(--ink-2); font-size: 15px; }
.close .btn + .btn { margin-top: 10px; }
.btn .price { padding: 2px 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.2); }
@keyframes reveal { from { transform: scale(0.94); filter: blur(8px) saturate(0.4); } to { transform: none; filter: none; } }
.res-hero .res-word { animation: word 0.9s 0.15s var(--ease) both; }
@keyframes word { from { transform: translateY(14px); letter-spacing: 0.02em; } to { transform: none; } }
html { scrollbar-color: #cfc6e6 transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-thumb { background: #cfc6e6; border-radius: 8px; }
.locked .tag { position: absolute; top: 14px; right: 14px; z-index: 2; }
.locked-veil .lock-badge { color: #fff; }

/* Lunar markers: ☾ + number, always distinct from the ordinary month */
.moon { width: 0.85em; height: 0.85em; margin-right: 1px; vertical-align: -0.08em; }
.mc-day small { display: inline-flex; align-items: center; justify-content: center; gap: 1px; }
.mc-lunar { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.mc-lunar li { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 14px; font-size: 14px; }
.mc-lunar li.boy { background: var(--boy-fill); color: var(--boy); }
.mc-lunar li.girl { background: var(--girl-fill); color: var(--girl); }
.mc-lunar li.none { background: var(--sunk); color: var(--muted); }
.mc-lunar .lm { display: inline-flex; align-items: center; font-weight: 800; font-size: 15px; }
.mc-lunar .ld { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); }
.mc-lunar .lr { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.mc-lunar b { font-weight: 800; }
.how-read { margin: 0 4px 12px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.how-read .moon { color: var(--brand); margin: 0 2px; }
.nw { white-space: nowrap; }
.tl-m small { display: inline-flex; align-items: center; font-size: 9.5px; }
.tl-m { align-content: center; gap: 1px; }

/* Chart as a scrolling window: about ten rows, sticky month header, opens on her rows */
.chart-scroll { max-height: 316px; overflow-y: auto; overscroll-behavior: contain; margin: 0 -4px; padding: 0 4px 6px; border-radius: 12px;
  -webkit-mask-image: linear-gradient(180deg, #000 88%, transparent); mask-image: linear-gradient(180deg, #000 88%, transparent); }
.chart .ch { position: sticky; top: 0; z-index: 3; background: var(--surface); box-shadow: 0 2px 0 var(--surface); }
.chart-hint { display: flex; gap: 8px; align-items: flex-start; margin: 12px 2px 2px; font-size: 13.5px; color: var(--ink-2); }
.chart-hint .ic { width: 18px; height: 18px; color: var(--brand); flex: none; margin-top: 1px; }

/* Bottom sheet */
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; max-width: 480px; margin: 0 auto;
  padding: 22px 22px calc(22px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; background: var(--surface);
  box-shadow: 0 -2px 6px rgba(30, 24, 48, 0.06), 0 -18px 44px rgba(60, 40, 120, 0.18); animation: sheetup 0.4s var(--ease) both; }
.sheet::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: var(--line); }
@keyframes sheetup { from { transform: translateY(100%); } to { transform: none; } }
.sheet-x { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--sunk); color: var(--ink); cursor: pointer; }
.sheet-res + .sheet-res { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.sheet-k { display: flex; align-items: center; gap: 4px; margin: 4px 52px 4px 0; font-size: 14.5px; font-weight: 700; color: var(--ink-2); }
.sheet-k .moon { color: var(--brand); }
.sheet-word { margin: 0; font-size: 60px; font-weight: 800; letter-spacing: -0.045em; line-height: 1.05; }
.sheet-res.boy .sheet-word { color: var(--boy); }
.sheet-res.girl .sheet-word { color: var(--girl); }
.sheet-range { margin: 4px 0 2px; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.sheet-note { margin: 0; font-size: 14px; color: var(--muted); }

/* Earlier children: check a past conception date against the chart */
.past { margin-top: 28px; }
.past h2 { margin: 0 0 6px; }
.past-lead { margin: 0 4px 12px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.past-form { padding: 16px; }
.past-form fieldset { border: 0; margin: 0 0 14px; padding: 0; }
.past-form legend { margin-bottom: 10px; font-weight: 700; font-size: 15px; }
.past-hint { margin: 12px 2px 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.past-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.past-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: var(--r-lg);
  animation: pastin 0.35s var(--ease) both; }
.past-item.boy { background: var(--boy-fill); }
.past-item.girl { background: var(--girl-fill); }
.past-when { display: grid; gap: 4px; min-width: 0; }
.past-when b { font-size: 16px; font-variant-numeric: tabular-nums; }
.past-when span { font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.past-when .moon { width: 12px; height: 12px; margin-right: 3px; vertical-align: -1px; color: var(--brand); }
.past-word { flex: none; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.past-item.boy .past-word { color: var(--boy); }
.past-item.girl .past-word { color: var(--girl); }
@keyframes pastin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .past-item { animation: none; } }

/* Locked preview names the tradition people know: «Хүйс тогтоох Хятад хуанли» */
.locked-veil .veil-name { display: inline-block; margin-bottom: 8px; padding: 6px 14px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-deep); font-size: 15px; font-weight: 800; letter-spacing: -0.01em; }
.locked-veil .veil-fame { margin-top: 10px; font-style: normal; font-size: 13px; font-weight: 700; color: var(--brand-deep); }
.intro .eyebrow { display: inline-block; margin: 0 0 12px; padding: 6px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-deep); font-size: 13.5px; font-weight: 800; }

/* Pay screen: bank app buttons and the QR on our own page */
#view-wait.paying { padding-top: 20px; }
#view-wait.paying .wait-status { padding: 18px 8px 8px; }
#view-wait.paying .wait-status .pulse, #view-wait.paying .wait-status h2 { display: none; }
#view-wait.paying .wait-status .btn { margin-top: 12px; }
.paybox { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 20px 16px 18px; }
.paybox h2 { margin: 0; font-size: 21px; font-weight: 800; text-align: center; }
.pay-sum { margin: 4px 0 16px; text-align: center; color: var(--ink-2); font-size: 15px; }
.pay-sum b { color: var(--ink); }
.banks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.qr + .banks, .qr-note + .banks { margin-top: 16px; }
.bank { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 52px; padding: 10px 12px; border-radius: 14px; background: var(--sunk);
  color: var(--ink); font-weight: 700; font-size: 14.5px; text-decoration: none; }
.bank.big { min-height: 60px; font-size: 15.5px; background: var(--brand-soft); }
.bank img { width: 30px; height: 30px; border-radius: 8px; flex: none; }
.bank span { min-width: 0; overflow: hidden; line-height: 1.2; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; }
.bank:active { transform: scale(0.98); }
.more-banks, .qr-wrap { margin-top: 12px; }
.more-banks summary, .qr-wrap summary { cursor: pointer; padding: 10px 4px; text-align: center; font-weight: 700; font-size: 14.5px; color: var(--brand-deep); list-style: none; }
.more-banks summary::-webkit-details-marker, .qr-wrap summary::-webkit-details-marker { display: none; }
.more-banks .banks { margin-top: 4px; }
.qr { width: 224px; margin: 8px auto 0; padding: 8px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.qr svg, .qr img { display: block; width: 100%; height: auto; }
.qr-lead { margin: 0 0 6px; text-align: center; font-weight: 700; color: var(--ink-2); }
.qr-note { margin: 10px 4px 0; text-align: center; font-size: 13px; line-height: 1.45; color: var(--muted); }
.pay-hint { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: #fff6e5; color: #5a3d00; font-size: 14px; line-height: 1.45; }
.pay-hint a { color: var(--brand-deep); font-weight: 800; }
.pay-tip { margin: 0 0 14px; padding: 10px 12px; border-radius: 12px; background: var(--sunk); color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }
.pay-tip b { color: var(--ink); }
.pay-tip .dots { letter-spacing: 1px; }
.pay-tip a { color: var(--brand-deep); font-weight: 800; }
