/* MyBirthSign — Daily Fortune page (ornate night-sky design). Scoped to body.fx-page. */
.fx-page {
  --fx-gold: #e7c27a; --fx-gold-hi: #f6dc9b; --fx-pink: #f06fb2; --fx-ink: #0b0820;
  --fx-glass: rgba(26, 18, 58, 0.72); --fx-line: rgba(231, 194, 122, 0.45);
  background:
    radial-gradient(520px 720px at 0% 22%, rgba(240, 111, 178, .16), transparent 70%),
    radial-gradient(520px 720px at 100% 55%, rgba(240, 111, 178, .14), transparent 70%),
    radial-gradient(1200px 520px at 50% 0, rgba(122, 72, 190, .3), transparent 70%),
    #0b0820;
}
.fx-page .fx-wrap { max-width: 1180px; margin: 0 auto; padding: 0 18px; }
.fx-page h1, .fx-page h2, .fx-page h3, .fx-page h4 { font-family: Georgia, "Times New Roman", "Noto Sans Khmer", serif; line-height: 1.25; }
html[lang="km"] .fx-page h1, html[lang="km"] .fx-page h2, html[lang="km"] .fx-page h3, html[lang="km"] .fx-page h4 { font-family: "Noto Sans Khmer", "Khmer OS", sans-serif; line-height: 1.6; }
.fx-page a:focus-visible, .fx-page summary:focus-visible, .fx-page button:focus-visible { outline: 2px solid var(--fx-gold-hi); outline-offset: 3px; border-radius: 8px; }
.fx-page .share-btn, .fx-page .share-pop button { font-family: inherit; }
.fx-med { display: block; border-radius: 50%; box-shadow: 0 0 0 1px rgba(246, 220, 155, .5), 0 4px 16px rgba(0, 0, 0, .5); }

/* ornate gold frame (9-slice art reused from the wedding page) */
.fx-gframe {
  position: relative; border: solid transparent; border-width: 34px 36px;
  border-image: url("../images/wedding/frame.webp") 190 / 34px 36px stretch;
  background: var(--fx-glass); background-clip: padding-box; box-shadow: 0 0 60px rgba(122, 72, 190, .22);
  padding: 4px 6px 8px;
}
.fx-gframe::before { content: ""; position: absolute; inset: -22px -26px; z-index: -1; background: radial-gradient(ellipse at 50% 50%, rgba(40, 24, 96, .75), rgba(11, 8, 32, 0) 72%); pointer-events: none; }

/* ---------- headings ---------- */
.fx-head { text-align: center; margin: 0 auto 22px; max-width: 800px; }
.fx-head h2 { margin: 0 0 4px; font-size: clamp(1.4rem, 3.4vw, 2rem); color: var(--fx-gold-hi); text-shadow: 0 2px 18px rgba(240, 111, 178, .35); }
.fx-head p { margin: 0; color: #cfc6ee; }
.fx-orn { display: block; width: 150px; height: 14px; margin: 8px auto 6px; }
.fx-sec { margin: 54px 0 0; }
.fx-sec-first { margin-top: 30px; }

/* ---------- hero ---------- */
.fx-hero {
  position: relative; isolation: isolate; overflow: hidden; text-align: center;
  background: #0b0820 url("../images/fortune/hero-night.webp") center top / cover no-repeat;
  border-bottom: 1px solid var(--fx-line);
}
.fx-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(ellipse 34% 62% at 50% 46%, rgba(11, 8, 32, .78), rgba(11, 8, 32, 0) 100%),
  linear-gradient(180deg, rgba(11, 8, 32, .1) 0%, rgba(11, 8, 32, 0) 55%, rgba(11, 8, 32, .9) 100%); }
.fx-hero-in { max-width: 1120px; margin: 0 auto; padding: 38px 20px 50px; }
/* hero: the same animal-free night scene on every daily and animal page (the animal pictures were removed at the owner's request) */
@media (max-width: 600px) { .fx-hero:not(.an-hero) { background-image: url("../images/fortune/hero-night-m.webp"); background-position: center top; } }
.fx-eyebrow { margin: 0 0 6px; font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; color: var(--fx-gold); }
html[lang="km"] .fx-eyebrow { letter-spacing: .02em; text-transform: none; font-size: .9rem; }
.fx-hero h1 { margin: 0 0 8px; color: #fff; text-shadow: 0 2px 30px rgba(240, 111, 178, .5); }
.fx-hero h1 small { display: block; font-size: clamp(1.25rem, 3vw, 1.9rem); font-weight: 400; color: var(--fx-gold-hi); }
.fx-hero h1 span { display: block; font-size: clamp(2.3rem, 7.4vw, 4.2rem); font-weight: 700; line-height: 1.1;
  background: linear-gradient(180deg, #fff3cc 0%, #f6dc9b 45%, #d4a43a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none;
  filter: drop-shadow(0 3px 14px rgba(240, 111, 178, .4)); }
html[lang="km"] .fx-hero h1 span { padding: .1em 0; }
.fx-sub { margin: 0 auto 16px; max-width: 560px; font-size: clamp(.98rem, 2.4vw, 1.1rem); color: #efe9ff; }
.fx-date {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 0 0 10px; padding: 8px 26px;
  font: 700 clamp(1.15rem, 3.4vw, 1.55rem)/1.3 Georgia, serif; color: var(--fx-gold-hi);
  border: 1px solid rgba(246, 220, 155, .75); border-radius: 12px; background: rgba(11, 8, 32, .6);
  box-shadow: 0 0 0 3px rgba(11, 8, 32, .5), 0 0 24px rgba(246, 220, 155, .25);
}
html[lang="km"] .fx-date { font-family: "Noto Sans Khmer", sans-serif; }
.fx-date svg { width: 22px; height: 22px; flex: none; }
.fx-wd { font-size: .8em; font-weight: 400; color: #cfc6ee; }
.fx-pill { display: block; width: fit-content; margin: 0 auto 14px; padding: 8px 34px; border-radius: 12px; font-weight: 700; font-size: 1.15rem; color: #2a1c05;
  background: linear-gradient(180deg, #ffe9a8, #d4af37 60%, #a97a1b); box-shadow: 0 0 0 1px rgba(255, 238, 190, .7) inset, 0 6px 26px rgba(212, 175, 55, .45); }
.fx-chips { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 0 auto 16px; max-width: 760px; }
.fx-chip { flex: 1 1 280px; display: flex; align-items: center; gap: 12px; margin: 0; padding: 11px 16px; text-align: left; font-size: .98rem; color: #f1ecff;
  border: 1px solid var(--fx-line); border-radius: 12px; background: rgba(11, 8, 32, .68); backdrop-filter: blur(6px); }
.fx-chip svg { width: 30px; height: 30px; flex: none; }
.fx-chip strong { color: var(--fx-gold-hi); }
.fx-chip-care { border-color: rgba(240, 111, 178, .5); }
.fx-chip-care strong { color: #ffc2d6; }
.fx-hero-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; }
.fx-langs { display: inline-flex; border: 1px solid var(--fx-line); border-radius: 999px; overflow: hidden; background: rgba(11, 8, 32, .65); }
.fx-langs a { display: inline-block; padding: 8px 18px; min-height: 40px; color: #e6def8; text-decoration: none; font-size: .95rem; font-family: "Noto Sans Khmer", Georgia, sans-serif; }
.fx-langs a[aria-current="true"] { background: rgba(231, 194, 122, .25); color: var(--fx-gold-hi); font-weight: 700; }
.fx-hero .share-row { margin: 0; }

/* ---------- today's energy ---------- */
.fx-energy { padding: 14px 10px 10px; }
.fx-energy-main { display: flex; align-items: center; justify-content: center; gap: 22px; margin-bottom: 18px; }
.fx-med-xl { width: 138px; height: 138px; flex: none; box-shadow: 0 0 0 2px rgba(246, 220, 155, .7), 0 0 34px rgba(246, 220, 155, .4); }
.fx-energy h2 { margin: 0 0 4px; font-size: clamp(1.2rem, 3vw, 1.55rem); color: var(--fx-gold-hi); }
.fx-energy-day { margin: 0 0 6px; font: 700 clamp(1.7rem, 5vw, 2.5rem)/1.15 Georgia, serif; color: #fff; text-shadow: 0 0 26px rgba(240, 111, 178, .6); }
html[lang="km"] .fx-energy-day { font-family: "Noto Sans Khmer", sans-serif; line-height: 1.6; }
.fx-energy-desc { margin: 0; max-width: 360px; color: #e6def8; font-size: .98rem; }
.fx-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fx-stat { border: 1px solid rgba(231, 194, 122, .35); border-radius: 14px; padding: 12px 12px 12px; background: rgba(11, 8, 32, .55); text-align: center; }
.fx-stat h3 { margin: 0 0 10px; font-size: .88rem; letter-spacing: .06em; color: var(--fx-gold-hi); display: flex; gap: 8px; align-items: center; justify-content: center; }
html[lang="km"] .fx-stat h3 { letter-spacing: 0; font-size: .95rem; }
.fx-stat h3 svg { width: 18px; height: 18px; flex: none; }
.fx-stat-care { border-color: rgba(240, 111, 178, .55); background: rgba(80, 18, 52, .45); }
.fx-stat-care h3 { color: #ffc2d6; }
.fx-meds { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.fx-meds li { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .88rem; font-weight: 700; color: #fff; }
.fx-meds .fx-med { width: 52px; height: 52px; }
.fx-energy-words { margin: 14px 0 6px; font-size: 1.05rem; font-weight: 700; color: #fff; }
.fx-fine { margin: 12px 0 0; text-align: center; font-size: .8rem; color: #bdb2e0; }

/* ---------- two-column rows ---------- */
.fx-duo { display: grid; grid-template-columns: 1.3fr 1fr; gap: 26px; margin-top: 40px; align-items: stretch; }
.fx-duo > section, .fx-duo > section > .fx-gframe { height: 100%; }
.fx-duo-bottom { margin-top: 56px; grid-template-columns: 1fr 1fr; }
.fx-duo:has(> section:only-child) { grid-template-columns: 1fr; }

/* sign of the day */
.fx-feature { display: grid; grid-template-columns: minmax(120px, 190px) 1fr; gap: 14px; padding: 10px 8px 10px 2px; align-items: center; }
.fx-feature-art { display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, rgba(246, 220, 155, .5), rgba(240, 111, 178, .15) 50%, transparent 72%); border-radius: 14px; }
.fx-feature-art img { width: 100%; max-width: 190px; height: auto; border-radius: 12px; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .55)); }
.fx-feature-body h2 { margin: 0 0 4px; font-size: clamp(1.7rem, 3.6vw, 2.4rem); color: var(--fx-gold-hi); }
.fx-kicker { margin: 0 0 4px; font-size: 1rem; color: var(--fx-gold); }
.fx-feature-body p { margin: 0 0 8px; }
.fx-feature-lead { color: #efe9ff; font-size: .98rem; }
.fx-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 8px 0 14px; }
.fx-two h3 { margin: 0 0 6px; font-size: .9rem; color: var(--fx-gold-hi); }
.fx-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fx-ticks li { display: flex; gap: 8px; align-items: flex-start; font-size: .88rem; line-height: 1.45; color: #f1ecff; }
.fx-ticks svg { width: 17px; height: 17px; flex: none; margin-top: 2px; }

/* guidance panel */
.fx-guidepanel { padding: 8px 6px 6px; }
.fx-guidepanel h2 { margin: 0 0 4px; text-align: center; font-size: clamp(1.3rem, 3vw, 1.7rem); color: var(--fx-gold-hi); }
.fx-guide-intro { margin: 0 0 12px; text-align: center; font-size: .85rem; color: #cfc6ee; }
.fx-guides { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fx-guides.fx-brief { grid-template-columns: 1fr; }
.fx-brief .fx-guide p { font-size: .9rem; }
.fx-guide { display: flex; gap: 10px; padding: 12px 12px; border: 1px solid rgba(231, 194, 122, .4); border-radius: 12px; background: rgba(11, 8, 32, .5); }
.fx-guide-ico { font-size: 1.7rem; line-height: 1.1; flex: none; }
.fx-guide h3 { margin: 0 0 3px; font-size: 1rem; color: var(--fx-gold-hi); }
.fx-guide p { margin: 0 0 6px; font-size: .82rem; line-height: 1.5; color: #e6def8; }
.fx-guide a { color: var(--fx-gold-hi); font-weight: 700; font-size: .82rem; text-decoration: none; display: inline-flex; min-height: 26px; align-items: center; }
.fx-guide a:hover { text-decoration: underline; }

.fx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 26px; border-radius: 12px; font-weight: 700; font-size: 1rem; text-decoration: none; color: #2a1c05;
  background: linear-gradient(180deg, #ffe9a8, #d4af37 60%, #a97a1b); box-shadow: 0 0 0 1px rgba(255, 238, 190, .6) inset, 0 8px 26px rgba(212, 175, 55, .3); transition: transform .15s ease; }
.fx-btn:hover { transform: translateY(-1px); }

/* tier badges (icon + text, never colour alone) */
.fx-tier { display: inline-flex; align-items: center; gap: 5px; padding: 3px 11px 3px 8px; border-radius: 999px; font-size: .78rem; font-weight: 700; line-height: 1.3; border: 1px solid transparent; white-space: nowrap; }
.fx-tier svg { width: 14px; height: 14px; flex: none; }
.fx-tier-great { color: #2a1c05; background: linear-gradient(135deg, #f6dc9b, #d4af37); box-shadow: 0 0 18px rgba(246, 220, 155, .55); }
.fx-tier-good { color: #0e2a1a; background: linear-gradient(135deg, #8fe0ae, #47b873); }
.fx-tier-ordinary { color: #d6e0ff; background: rgba(110, 130, 200, .28); border-color: rgba(150, 170, 230, .5); }
.fx-tier-caution { color: #ffe3ee; background: rgba(214, 70, 120, .5); border-color: rgba(255, 138, 165, .7); }

/* ---------- 12-sign grid ---------- */
.fx-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; list-style: none; margin: 0; padding: 0; }
.fx-grid > .fx-sign { min-width: 0; }   /* long Khmer lines must not widen the 2-column phone grid */
.fx-sign { display: flex; flex-direction: column; padding: 12px 11px 12px; border-radius: 14px; border: 1px solid rgba(231, 194, 122, .5); background: rgba(22, 15, 52, .8); box-shadow: 0 8px 24px rgba(3, 1, 18, .45), 0 0 0 1px rgba(0, 0, 0, .3) inset; }
.fx-sign-head { display: flex; flex-direction: column; align-items: center; gap: 5px; margin-bottom: 8px; text-align: center; }
.fx-sign-head .fx-med { width: 76px; height: 76px; }
.fx-sign-head h3 { margin: 0; font-size: 1.1rem; color: #fff; }
.fx-sign h4 { margin: 0 0 2px; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fx-gold); }
html[lang="km"] .fx-sign h4 { letter-spacing: 0; text-transform: none; font-size: .86rem; }
.fx-sign p { margin: 0 0 8px; font-size: .8rem; line-height: 1.5; color: #ece6ff; }
.fx-sign .fx-more { margin-top: auto; display: flex; align-items: center; justify-content: center; min-height: 36px; padding: 4px 6px; text-align: center; color: var(--fx-gold-hi); text-decoration: none; font-weight: 700; font-size: .8rem; border: 1px solid var(--fx-line); border-radius: 8px; background: rgba(11, 8, 32, .5); }
.fx-sign .fx-more:hover { background: rgba(231, 194, 122, .18); }
.fx-sign-great { border-color: #f6dc9b; background: linear-gradient(170deg, rgba(86, 60, 18, .7), rgba(26, 18, 58, .85)); box-shadow: 0 0 0 1px rgba(246, 220, 155, .4) inset, 0 0 40px rgba(246, 220, 155, .4), 0 8px 24px rgba(3, 1, 18, .5); }
.fx-sign-caution { border-color: rgba(255, 138, 165, .75); background: linear-gradient(170deg, rgba(100, 22, 62, .65), rgba(26, 18, 58, .85)); box-shadow: 0 0 28px rgba(240, 111, 178, .22), 0 8px 24px rgba(3, 1, 18, .45); }

/* ---------- CTA ---------- */
.fx-cta { position: relative; isolation: isolate; overflow: hidden; text-align: center; padding: 54px 22px; border: solid transparent; border-width: 34px 36px;
  border-image: url("../images/wedding/frame.webp") 190 / 34px 36px stretch; background: #0b0820 url("../images/fortune/cta-frame.webp") center / cover no-repeat; background-clip: padding-box; }
.fx-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 50%, rgba(11, 8, 32, .72), rgba(11, 8, 32, .3) 100%); }
.fx-cta h2 { margin: 0 0 8px; font-size: clamp(1.5rem, 4.2vw, 2.3rem); color: var(--fx-gold-hi); text-shadow: 0 2px 22px rgba(240, 111, 178, .55); }
.fx-cta p { margin: 0 auto 20px; max-width: 560px; color: #fff; }
.fx-cta .fx-btn { font-size: 1.08rem; padding: 12px 34px; }
.fx-lotus { position: absolute; bottom: 4px; width: 120px; height: auto; opacity: .95; pointer-events: none; }
.fx-lotus-l { left: 8px; } .fx-lotus-r { right: 8px; }

/* ---------- animals row ---------- */
.fx-animalsbox { padding: 12px 6px; }
.fx-animals { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; list-style: none; margin: 0; padding: 0; }
.fx-animals a { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 2px; min-height: 44px; text-decoration: none; color: #f1ecff; font-weight: 700; font-size: .86rem; border-radius: 12px; border: 1px solid transparent; }
.fx-animals .fx-med { width: 58px; height: 58px; transition: transform .15s ease; }
.fx-animals a:hover .fx-med { transform: scale(1.08); }
.fx-animals a:hover, .fx-animals a.is-today { border-color: var(--fx-gold-hi); background: rgba(231, 194, 122, .12); }

/* ---------- article / FAQ / tools ---------- */
.fx-article { max-width: 880px; margin: 60px auto 0; padding: 14px 18px 14px; }
.fx-article h2 { margin: 0 0 12px; font-size: clamp(1.3rem, 3.2vw, 1.75rem); color: var(--fx-gold-hi); }
.fx-article p { margin: 0 0 12px; color: #ece6ff; line-height: 1.8; }
.fx-article .fx-disc { margin: 16px 0 0; padding: 12px 14px; border-left: 3px solid var(--fx-gold); background: rgba(11, 8, 32, .5); border-radius: 0 12px 12px 0; font-size: .9rem; color: #cfc6ee; }
.fx-faqpanel, .fx-toolspanel { padding: 8px 6px 8px; }
.fx-faqpanel h2, .fx-toolspanel h2 { margin: 0 0 12px; font-size: clamp(1.25rem, 3vw, 1.6rem); color: var(--fx-gold-hi); }
.fx-faq { display: grid; gap: 8px; }
.fx-faq details { border: 1px solid rgba(231, 194, 122, .35); border-radius: 12px; background: rgba(11, 8, 32, .5); overflow: hidden; }
.fx-faq summary { list-style: none; cursor: pointer; padding: 12px 44px 12px 14px; position: relative; font-weight: 700; color: #fff; font-size: .95rem; min-height: 46px; display: flex; align-items: center; }
.fx-faq summary::-webkit-details-marker { display: none; }
.fx-faq summary::after { content: "+"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--fx-gold-hi); font-weight: 400; }
.fx-faq details[open] summary::after { content: "\2212"; }
.fx-faq details[open] summary { color: var(--fx-gold-hi); }
.fx-faq details p { margin: 0; padding: 0 14px 14px; color: #e6def8; line-height: 1.7; font-size: .92rem; }
.fx-tools { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; list-style: none; margin: 0; padding: 0; }
.fx-tools li:nth-child(4), .fx-tools li:nth-child(5) { grid-column: span 1; }
.fx-tools a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 12px 11px; text-decoration: none; color: #f1ecff; border: 1px solid rgba(231, 194, 122, .4); border-radius: 12px; background: rgba(40, 24, 96, .55); transition: transform .15s ease; }
.fx-tools a:hover { transform: translateY(-2px); box-shadow: 0 0 22px rgba(231, 194, 122, .25); }
.fx-t-ico { font-size: 1.6rem; line-height: 1.1; }
.fx-tools strong { color: var(--fx-gold-hi); font-size: .92rem; line-height: 1.3; }
.fx-tools small { color: #cfc6ee; font-size: .78rem; line-height: 1.45; }

.fx-page .ad-slot { max-width: 760px; margin: 36px auto 0; background: rgba(255, 255, 255, .03); }

/* ---------- footer ---------- */
.fx-page footer.site-footer { position: relative; isolation: isolate; margin-top: 64px; padding: 50px 0 32px; border-top: 1px solid var(--fx-line);
  background: #0b0820 url("../images/footer-skyline.webp") center bottom / cover no-repeat; }
.fx-page footer.site-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 8, 32, .94), rgba(11, 8, 32, .7)); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) { .fx-grid { grid-template-columns: repeat(3, 1fr); } .fx-animals { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 960px) {
  .fx-duo, .fx-duo-bottom { grid-template-columns: 1fr; }
  .fx-trio { grid-template-columns: 1fr; }
  .fx-hero:not(.an-hero) { background-position: center top; }
}
@media (max-width: 640px) {
  .fx-gframe, .fx-cta { border-width: 24px 24px; border-image-width: 24px 24px; }
  .fx-hero { background-color: #0b0820; }
  .fx-hero:not(.an-hero) { background-size: cover; background-position: center top; }
  .fx-hero:not(.an-hero)::before { background: linear-gradient(180deg, rgba(11, 8, 32, .5) 0%, rgba(11, 8, 32, .62) 70%, rgba(11, 8, 32, .94) 100%); }   /* keeps the words easy to read over the night scene */
  .fx-hero-in { padding: 40px 16px 38px; }
  .fx-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .fx-guides, .fx-two { grid-template-columns: 1fr; }
  .fx-feature { grid-template-columns: 1fr; }
  .fx-feature-art img { max-width: 150px; }
  .fx-energy-main { flex-direction: column; text-align: center; gap: 10px; }
  .fx-energy-desc { margin: 0 auto; }
  .fx-med-xl { width: 110px; height: 110px; }
  .fx-animals { grid-template-columns: repeat(4, 1fr); }
  .fx-tools { grid-template-columns: 1fr 1fr; }
  .fx-lotus { width: 70px; }
  .fx-cta { padding: 38px 14px 50px; }
  .fx-sec { margin-top: 40px; }
  .fx-btn { width: 100%; }
  .fx-chip { text-align: left; }
}
@media (max-width: 420px) { .fx-grid { grid-template-columns: 1fr 1fr; } .fx-sign p { font-size: .78rem; } .fx-tools { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .fx-page * { transition: none !important; } }

/* Khmer typography: Kantumruy Pro for text and small headings, Moul (traditional display face) for the big titles */
html[lang="km"] .fx-page { --km-body: "Kantumruy Pro", "Noto Sans Khmer", "Khmer OS", sans-serif; --km-display: "Moul", "Kantumruy Pro", "Noto Sans Khmer", serif; }
html[lang="km"] .fx-page,
html[lang="km"] .fx-page h3, html[lang="km"] .fx-page h4, html[lang="km"] .fx-page .fx-btn, html[lang="km"] .fx-page .fx-tier,
html[lang="km"] .fx-page .fx-date, html[lang="km"] .fx-page .fx-energy-day, html[lang="km"] .fx-page .fx-kicker,
html[lang="km"] .fx-page .fx-langs a, html[lang="km"] .fx-page .share-btn { font-family: var(--km-body); }
html[lang="km"] .fx-page h1, html[lang="km"] .fx-page h2 { font-family: var(--km-display); font-weight: 400; line-height: 1.9; letter-spacing: 0; }
html[lang="km"] .fx-hero h1 span { font-size: clamp(1.45rem, 5.4vw, 3.1rem); text-wrap: balance; padding: .05em 0; }
html[lang="km"] .fx-head h2 { font-size: clamp(1.15rem, 3.2vw, 1.8rem); text-wrap: balance; }
html[lang="km"] .fx-energy h2, html[lang="km"] .fx-guidepanel h2, html[lang="km"] .fx-faqpanel h2, html[lang="km"] .fx-toolspanel h2 { font-size: clamp(1.05rem, 2.6vw, 1.4rem); }
html[lang="km"] .fx-feature-body h2 { font-size: clamp(1.4rem, 3.4vw, 2rem); }
html[lang="km"] .fx-cta h2 { font-size: clamp(1.15rem, 3.4vw, 1.9rem); text-wrap: balance; }
html[lang="km"] .fx-article h2 { font-size: clamp(1.05rem, 2.8vw, 1.45rem); text-wrap: balance; }
html[lang="km"] .fx-energy-day { font-weight: 700; font-size: clamp(1.2rem, 4.2vw, 2rem); text-wrap: balance; line-height: 1.6; }
html[lang="km"] .fx-pill { font-weight: 700; font-size: clamp(.95rem, 3.6vw, 1.15rem); }
html[lang="km"] .fx-sign h3 { font-weight: 700; }

/* Khmer hero title: solid rich gold with an embossed edge (a gradient fill clipped the vowel and subscript marks) */
html[lang="km"] .fx-hero h1 span {
  background: none; -webkit-background-clip: border-box; background-clip: border-box; -webkit-text-fill-color: currentColor;
  color: #ffcf5a; line-height: 2; padding: .12em 0 .18em; filter: none;
  text-shadow: 0 1px 0 #f3a82a, 0 2px 0 #b9741a, 0 3px 0 #7a4a0e, 0 6px 14px rgba(0, 0, 0, .55), 0 0 28px rgba(255, 190, 80, .45), 0 0 46px rgba(240, 111, 178, .4);
}

/* Daily data rows inside each sign card (only present when the day's data file exists) */
.fx-sign .fx-sign-fortune { font-size: .82rem; color: #fff; }
.fx-sign-areas { margin: 0 0 8px; display: grid; grid-template-columns: auto 1fr; gap: 3px 8px; font-size: .78rem; line-height: 1.45; }
.fx-sign-areas dt { color: var(--fx-gold); font-weight: 700; }
.fx-sign-areas dd { margin: 0; color: #ece6ff; }
.fx-sign .fx-sign-lucky { display: flex; flex-wrap: wrap; gap: 4px 10px; padding: 6px 8px; border: 1px solid var(--fx-line); border-radius: 8px; background: rgba(11, 8, 32, .45); font-size: .74rem; color: #cfc6ee; }
.fx-sign-lucky strong { color: #fff3d1; }
.fx-swatch { display: inline-block; width: 9px; height: 9px; margin: 0 3px 0 2px; border-radius: 50%; vertical-align: middle; box-shadow: 0 0 0 1px rgba(255, 255, 255, .5); }
html[lang="km"] .fx-sign-areas, html[lang="km"] .fx-sign .fx-sign-lucky { font-size: .84rem; }
.fx-article .fx-theme strong { color: var(--fx-gold); }
.fx-sign-more { margin: 0 0 8px; }
.fx-sign-more > summary { cursor: pointer; list-style: none; padding: 6px 8px; border-radius: 8px; border: 1px dashed var(--fx-line); color: var(--fx-gold-hi); font-size: .74rem; font-weight: 700; text-align: center; }
.fx-sign-more > summary::-webkit-details-marker { display: none; }
.fx-sign-more > summary::after { content: " ▾"; }
.fx-sign-more[open] > summary::after { content: " ▴"; }

.fx-sign-more > summary:hover { background: rgba(231, 194, 122, .12); }
.fx-sign-more[open] > summary { margin-bottom: 8px; }
html[lang="km"] .fx-sign-more > summary { font-size: .82rem; }
.fx-sign-hit { animation: fxSignHit 2.2s ease-out 1; }
@keyframes fxSignHit { 0%, 30% { box-shadow: 0 0 0 3px #f6dc9b, 0 0 36px rgba(246, 220, 155, .55); } 100% { box-shadow: none; } }
@media (prefers-reduced-motion: reduce) { .fx-sign-hit { animation: none; outline: 2px solid #f6dc9b; } }
/* Share buttons: one gold pill for the whole day, a round icon in the top-right corner of each sign card */
.fx-day-share { display: flex; justify-content: center; margin: -4px 0 18px; }
.fx-page .fx-day-share .share-btn {
  min-height: 46px; padding: 10px 24px 10px 20px; gap: 9px; border: 0; border-radius: 999px;
  background: linear-gradient(135deg, #fbe7b0 0%, #e7c27a 55%, #c9973f 100%); color: #2a1748;
  font-size: .95rem; font-weight: 700; letter-spacing: .01em;
  box-shadow: 0 6px 20px rgba(231, 194, 122, .35), 0 0 0 1px rgba(255, 246, 220, .6) inset;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.fx-page .fx-day-share .share-btn .share-icon { width: 18px; height: 18px; }
.fx-page .fx-day-share .share-btn:hover { color: #2a1748; transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 10px 26px rgba(231, 194, 122, .5), 0 0 0 1px rgba(255, 246, 220, .7) inset; }
html[lang="km"] .fx-page .fx-day-share .share-btn { font-size: 1rem; }

.fx-sign { position: relative; }
.fx-sign:has(.share-popover:not([hidden])) { z-index: 30; }
.fx-sign-share { position: absolute; top: 8px; right: 8px; margin: 0; z-index: 2; }
.fx-page .fx-sign-share .share-btn {
  width: 38px; height: 38px; min-height: 38px; padding: 0; justify-content: center; border-radius: 50%;
  border: 1px solid rgba(246, 220, 155, .7); background: radial-gradient(circle at 35% 30%, #fbe7b0, #d9a94f 70%, #b5832f);
  color: #2a1748; box-shadow: 0 4px 12px rgba(3, 1, 18, .45);
  transition: transform .15s ease, box-shadow .15s ease;
}
.fx-page .fx-sign-share .share-btn .share-icon { width: 17px; height: 17px; }
.fx-page .fx-sign-share .share-btn:hover, .fx-page .fx-sign-share .share-btn[aria-expanded="true"] { color: #2a1748; transform: scale(1.08); box-shadow: 0 0 0 3px rgba(246, 220, 155, .3), 0 6px 16px rgba(3, 1, 18, .5); }
.fx-sign-share .share-btn-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fx-sign-share .share-popover { right: 0; }
@media (prefers-reduced-motion: reduce) { .fx-page .fx-day-share .share-btn, .fx-page .fx-sign-share .share-btn { transition: none; transform: none; } }
/* Daily trade box in each sign card (rules only, shown on every daily post) */
.fx-sign .fx-trade { margin: 0 0 8px; padding: 7px 9px; border-radius: 8px; border: 1px solid rgba(231, 194, 122, .45); background: linear-gradient(135deg, rgba(231, 194, 122, .14), rgba(11, 8, 32, .4)); }
.fx-sign .fx-trade h4 { margin: 0 0 3px; color: var(--fx-gold-hi); }
.fx-sign .fx-trade h4::before { content: "🛒 "; }
.fx-sign .fx-trade p { margin: 0; font-size: .8rem; color: #fff; }
.fx-sign .fx-trade .fx-trade-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 5px; font-size: .74rem; color: #cfc6ee; }
.fx-trade-meta strong { color: #fff3d1; }
html[lang="km"] .fx-sign .fx-trade p { font-size: .86rem; }
html[lang="km"] .fx-sign .fx-trade .fx-trade-meta { font-size: .82rem; }
.fx-trade-meta strong, .fx-sign-lucky strong { white-space: nowrap; }

/* Gold zodiac figure in the page header (daily fortune: the day animal; animal pages: that animal).
   Drawn with ::after so the night-scene shading never dims it. Figures: images/gold/*.webp (supplied by the owner). */
.fx-hero--rat { --fx-gold-fig: url("../images/gold/rat.webp"); }
.fx-hero--ox { --fx-gold-fig: url("../images/gold/ox.webp"); }
.fx-hero--tiger { --fx-gold-fig: url("../images/gold/tiger.webp"); }
.fx-hero--rabbit { --fx-gold-fig: url("../images/gold/rabbit.webp"); }
.fx-hero--dragon { --fx-gold-fig: url("../images/gold/dragon.webp"); }
.fx-hero--snake { --fx-gold-fig: url("../images/gold/snake.webp"); }
.fx-hero--horse { --fx-gold-fig: url("../images/gold/horse.webp"); }
.fx-hero--goat { --fx-gold-fig: url("../images/gold/goat.webp"); }
.fx-hero--monkey { --fx-gold-fig: url("../images/gold/monkey.webp"); }
.fx-hero--rooster { --fx-gold-fig: url("../images/gold/rooster.webp"); }
.fx-hero--dog { --fx-gold-fig: url("../images/gold/dog.webp"); }
.fx-hero--pig { --fx-gold-fig: url("../images/gold/pig.webp"); }
.fx-hero[class*="fx-hero--"]::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: max(1%, calc(50% - 660px)); bottom: 4px; width: min(420px, 27vw); height: 96%;
  background: var(--fx-gold-fig) left bottom / contain no-repeat;
  /* blend into the night scene: soft warm glow (no hard dark shadow), a touch less saturated, a faint reflection on the lake */
  filter: drop-shadow(0 0 26px rgba(255, 196, 96, .32)) saturate(.92) brightness(.97);
  -webkit-box-reflect: below 2px linear-gradient(transparent 72%, rgba(255, 255, 255, .16));
  opacity: .96;
  /* the cloud base fades into the scene instead of ending in a hard line */
  -webkit-mask-image: linear-gradient(to top, transparent 0, #000 16%); mask-image: linear-gradient(to top, transparent 0, #000 16%);
}
/* warm moon-like light pooling behind the figure, so it feels lit by the scene */
.fx-hero[class*="fx-hero--"] { background-image:
  radial-gradient(ellipse 26% 56% at max(14%, calc(50% - 490px)) 62%, rgba(255, 190, 90, .22), rgba(255, 190, 90, 0) 70%),
  url("../images/fortune/hero-night.webp"); }
@media (max-width: 1279px) {
  .fx-hero[class*="fx-hero--"]::after { left: 50%; transform: translateX(-50%); top: 10px; bottom: auto; width: 260px; height: 230px; background-position: center bottom; -webkit-box-reflect: none; }
  .fx-hero[class*="fx-hero--"] { background-image: radial-gradient(ellipse 230px 150px at 50% 135px, rgba(255, 190, 90, .24), rgba(255, 190, 90, 0) 75%), url("../images/fortune/hero-night.webp"); }
  .fx-hero[class*="fx-hero--"] .fx-hero-in, .fx-hero[class*="fx-hero--"] .pf-hero-in { padding-top: 238px; }
}
@media (max-width: 600px) {
  .fx-hero[class*="fx-hero--"] { background-image: radial-gradient(ellipse 210px 140px at 50% 135px, rgba(255, 190, 90, .24), rgba(255, 190, 90, 0) 75%), url("../images/fortune/hero-night-m.webp"); }
}
.fx-sign-why { margin: 2px 0 8px; font-size: .84rem; line-height: 1.55; color: #d9d1f2; }
.fx-sign-why strong { color: #f6dc9b; margin-right: 2px; }
.fx-pillar { margin: 6px 0 0; color: #f6dc9b; font-size: .95rem; }
.fx-pillar span[lang="zh"] { font-size: 1.1rem; letter-spacing: .05em; }
