:root {
  --ink: #1b2527;
  --paper: #f8f5ee;
  --soft: #eee8da;
  --orange: #f2683c;
  --yellow: #efbd45;
  --teal: #247776;
  --deep: #153f42;
  --muted: #65706d;
  --line: rgba(27, 37, 39, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "DM Sans", sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; }
.wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.hero { min-height: 725px; position: relative; overflow: hidden; background: linear-gradient(119deg, #f7f2e6 0%, #f8f5ed 50%, #e5efe9 100%); }
.nav { height: 96px; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; }
.brand { color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: .13em; font-size: 14px; display: inline-flex; align-items: center; gap: 9px; }
.brand-mark { display: grid; place-items: center; background: var(--ink); color: var(--paper); font-family: "Playfair Display", serif; width: 27px; height: 27px; border-radius: 50%; font-size: 17px; letter-spacing: 0; }
.nav-note { font-size: 13px; letter-spacing: .02em; color: var(--muted); }
.hero-grid { display: grid; grid-template-columns: 1fr 465px; gap: 80px; align-items: center; min-height: 604px; position: relative; z-index: 1; }
.hero-copy { padding-bottom: 16px; max-width: 590px; }
.eyebrow { display: flex; gap: 10px; align-items: center; margin: 0 0 20px; color: var(--teal); font: 500 11px/1 "DM Mono", monospace; letter-spacing: .11em; text-transform: uppercase; }
.eyebrow span:not(.i18n-text) { width: 20px; height: 1px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { letter-spacing: -.045em; font-weight: 600; }
h1 { font-size: clamp(50px, 5.45vw, 76px); line-height: .99; margin-bottom: 27px; }
h1 em { display: block; color: var(--orange); font-family: "Playfair Display", serif; font-weight: 600; }
.lede { max-width: 470px; color: #4b5856; font-size: 18px; line-height: 1.55; }
.hero-proof { display: flex; gap: 0; margin-top: 44px; }
.hero-proof div { padding: 0 25px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 5px; }
.hero-proof div:first-child { padding-left: 0; border-left: 0; }
.hero-proof strong { font-family: "Playfair Display", serif; font-size: 23px; line-height: 1; color: var(--teal); }
.hero-proof span { color: var(--muted); font-size: 11px; }
.discovery-card { min-height: 507px; position: relative; overflow: hidden; border-radius: 3px; background: var(--deep); color: #fffdf7; box-shadow: 0 28px 70px rgba(24, 64, 63, .2); }
.card-content { position: relative; z-index: 2; padding: 45px 46px 37px; }
.step-label { color: #a9c3bd; font: 500 10px/1 "DM Mono", monospace; letter-spacing: .11em; text-transform: uppercase; margin-bottom: 28px; }
.step-label span:not(.i18n-text) { float: right; color: #729b95; }
.discovery-card h2 { font-size: 31px; line-height: 1.08; margin-bottom: 11px; }
.form-copy { color: #c8d8d4; font-size: 14px; line-height: 1.45; margin-bottom: 28px; }
form { display: grid; }
label { color: #c7d8d4; font-size: 12px; font-weight: 600; margin: 0 0 8px; }
label span:not(.i18n-text) { color: #91aaa5; font-weight: 400; }
input { width: 100%; border: 1px solid rgba(228, 242, 236, .28); background: rgba(255,255,255,.08); color: white; height: 48px; padding: 0 14px; outline: none; border-radius: 2px; margin-bottom: 17px; transition: border-color .2s, background .2s; }
input::placeholder { color: #96afa9; }
input:focus { border-color: var(--yellow); background: rgba(255,255,255,.14); }
.bday { display: flex; align-items: center; gap: .5ch; min-width: 0; height: 48px; padding: 0 14px; border: 1px solid rgba(228, 242, 236, .28); border-radius: 2px; background: rgba(255,255,255,.08); color: white; font: 16px "DM Mono", monospace; font-variant-numeric: tabular-nums; transition: border-color .2s, background .2s; }
.bday:focus-within { border-color: var(--yellow); outline: 2px solid var(--yellow); outline-offset: 2px; background: rgba(255,255,255,.14); }
.bday .bday__seg { flex: 0 0 2.2ch; width: 2.2ch; min-width: 0; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; outline: none; box-shadow: none; background: transparent; font: inherit; font-variant-numeric: tabular-nums; text-align: center; transition: none; }
.bday .bday__seg--year { flex-basis: 4.2ch; width: 4.2ch; }
.bday__sep { flex: 0 0 auto; color: #96afa9; user-select: none; }
.bday[data-invalid] { border-color: #9c3520; }
.bday--reject { animation: birthday-reject 400ms ease-in-out; }
@keyframes birthday-reject {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}
@media (prefers-reduced-motion: reduce) {
  .bday { transition: none; }
  .bday--reject { animation: none; border-color: #9c3520; }
}
.input-help { font-size: 11px; color: #90aaa5; line-height: 1.4; margin: -8px 0 17px; }
.birthday-hint { min-height: 3em; line-height: 1.5; margin: 8px 0; }
.birthday-help { margin-top: 0; }
#numerology-form + .input-help { margin-top: 14px; }
.input-error { font-size: 12px; color: #ffbd94; min-height: 0; margin: -7px 0 11px; }
.primary-button { height: 52px; color: var(--ink); background: var(--yellow); border: 0; border-radius: 2px; font-size: 14px; font-weight: 700; padding: 0 17px; text-align: left; transition: transform .2s, background .2s; }
.primary-button span:not(.i18n-text) { float: right; font-size: 19px; line-height: 14px; }
.primary-button:hover { transform: translateY(-2px); background: #f6ca5b; }
.card-orbit { border: 1px solid rgba(208, 237, 227, .13); border-radius: 50%; position: absolute; }
.orbit-one { height: 460px; width: 460px; right: -263px; top: -204px; }.orbit-two { height: 368px; width: 368px; left: -273px; bottom: -218px; }
.star { position: absolute; color: var(--orange); font-size: 17px; opacity: .75; }.star-a { top: 156px; left: 6.5%; }.star-b { bottom: 72px; left: 45%; color: var(--yellow); font-size: 10px; }.star-c { top: 150px; right: 7%; color: var(--teal); font-size: 11px; }
.hero-number { position: absolute; color: rgba(36,119,118,.055); font: 700 530px/.8 "Playfair Display", serif; right: -75px; bottom: -125px; pointer-events: none; }
.how-it-works { padding: 115px 0 109px; display: grid; grid-template-columns: 1fr 2fr; gap: 95px; }
.section-intro h2, .types h2 { font-size: clamp(36px, 3.5vw, 50px); line-height: 1.02; margin: 0; }
.method-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 27px; padding-top: 3px; }
.method-steps article { border-top: 1px solid var(--line); padding-top: 18px; }.method-num { color: var(--orange); font: 500 11px/1 "DM Mono",monospace; margin-bottom: 25px; }.method-steps h3 { font-size: 19px; letter-spacing: -.03em; margin-bottom: 9px; }.method-steps p:last-child { color: var(--muted); font-size: 14px; line-height: 1.55; margin-bottom: 0; }
.result-section { --result-bg: #1d4749; --result-accent: #efbd45; --result-soft: #bfd6ce; --result-copy: #d0dfda; --result-line: rgba(255,255,255,.18); --result-orbit: rgba(250, 236, 182, .18); color: #fcfaf3; position: relative; overflow: hidden; padding: 72px 0 0; background: var(--result-bg); transition: background .55s ease; }.result-glow { position: absolute; border: 1px solid var(--result-orbit); height: 780px; width: 780px; border-radius: 50%; left: -460px; top: -290px; box-shadow: 0 0 0 85px rgba(255,255,255,.018), 0 0 0 170px rgba(255,255,255,.014); transition: transform .6s ease, border-radius .6s ease; }
.result-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding-bottom: 72px;
}
.eyebrow.light { color: var(--result-soft); }
.result-portrait { min-width: 0; margin: 0; }
.result-portrait > .eyebrow { margin-bottom: 18px; }
.result-artwork {
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 5px;
  background: var(--paper);
  box-shadow: 0 20px 48px rgba(0, 0, 0, .16);
}
#result-avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.result-identity {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
}
.result-number {
  display: grid;
  place-items: center;
  flex: 0 0 52px;
  height: 60px;
  color: var(--result-accent);
  border: 1px solid var(--result-line);
  border-radius: 28px 28px 5px 5px;
  font: 600 38px/1 "Playfair Display", serif;
}
.result-signature {
  color: #fcfaf3;
  font-size: 20px;
  letter-spacing: -.02em;
  margin: 5px 0 0;
}
.result-reading { min-width: 0; }
/* Keep the result heading as an accessible focus target without a control outline. */
#result-title:focus { outline: none; }
.result-kicker { overflow-wrap: anywhere; }
.result-kicker { color: var(--result-accent); font: 500 11px/1 "DM Mono",monospace; text-transform: uppercase; letter-spacing: .09em; margin-bottom: 16px; }.result-reading h2 { font-size: clamp(42px, 4.8vw, 66px); line-height: .98; margin-bottom: 23px; }.result-description { max-width: 560px; color: var(--result-copy); font-size: 18px; line-height: 1.55; }.traits { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0; }.trait { border: 1px solid color-mix(in srgb, var(--result-soft) 55%, transparent); padding: 7px 11px; border-radius: 999px; color: #f4f7f5; font-size: 12px; }.profile-compass { max-width: 630px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--result-line); border-bottom: 1px solid var(--result-line); margin: 31px 0 29px; }.profile-compass div { padding: 13px 15px 15px 0; display: grid; gap: 5px; border-right: 1px solid var(--result-line); }.profile-compass div + div { padding-left: 15px; }.profile-compass div:last-child { border-right: 0; }.compass-label { color: var(--result-soft); font: 500 9px/1.3 "DM Mono",monospace; letter-spacing: .07em; text-transform: uppercase; }.profile-compass strong { color: #fcfaf3; font-size: 13px; line-height: 1.25; font-weight: 500; }.text-button { padding: 0 0 5px; color: #fffdf7; background: none; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--result-soft) 70%, transparent); font-size: 13px; }.text-button span { color: var(--result-accent); margin-left: 6px; }.calculation { position: relative; z-index: 1; border-top: 1px solid var(--result-line); padding: 26px 0 39px; }.calc-topline { display: flex; justify-content: space-between; align-items: center; }.calc-topline p { color: var(--result-soft); font-size: 12px; margin: 0; text-transform: uppercase; letter-spacing: .09em; }.close-calc { background: none; color: #d9e5e1; border: 0; font-size: 24px; line-height: 1; }.calc-flow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 22px 0 16px; }.calc-group { display: flex; align-items: center; gap: 8px; }.calc-chip { min-width: 35px; height: 35px; display: grid; place-items: center; padding: 0 8px; background: rgba(255,255,255,.1); font: 500 15px "DM Mono",monospace; border-radius: 2px; }.calc-arrow { color: var(--result-accent); font-size: 18px; }.calc-equals { color: var(--result-soft); font-size: 16px; }.calc-final { background: var(--result-accent); color: var(--ink); }.calc-note { color: var(--result-soft); font-size: 12px; margin: 0; }
/* Each number changes the result into its own visual environment. */
.result-section[data-type="1"] { --result-bg: #5b2632; --result-accent: #f4b240; --result-soft: #f2c5b0; --result-copy: #f4dfd2; --result-orbit: rgba(244,178,64,.45); }.result-section[data-type="1"] .result-glow { border-radius: 6%; transform: rotate(45deg) translate(-40px, 10px); }
.result-section[data-type="2"] { --result-bg: #1d4749; --result-accent: #efbd45; --result-soft: #bfd6ce; --result-copy: #d0dfda; --result-orbit: rgba(250,236,182,.24); }.result-section[data-type="2"] .result-glow { transform: translate(25px, 0); }
.result-section[data-type="3"] { --result-bg: #773c58; --result-accent: #ffd269; --result-soft: #f5c7cf; --result-copy: #f6e0df; --result-orbit: rgba(255,210,105,.36); }.result-section[data-type="3"] .result-glow { border-radius: 42% 58% 63% 37% / 38% 44% 56% 62%; transform: translate(28px, 35px); }
.result-section[data-type="4"] { --result-bg: #364a34; --result-accent: #d6be83; --result-soft: #c6d0ae; --result-copy: #e1e4d5; --result-orbit: rgba(214,190,131,.33); }.result-section[data-type="4"] .result-glow { border-radius: 2px; transform: rotate(45deg) translate(-50px, 0); }
.result-section[data-type="5"] { --result-bg: #145365; --result-accent: #e7d65b; --result-soft: #b3dce1; --result-copy: #d7ece9; --result-orbit: rgba(231,214,91,.34); }.result-section[data-type="5"] .result-glow { border-radius: 52% 48% 28% 72% / 39% 42% 58% 61%; transform: translate(40px, -20px) rotate(18deg); }
.result-section[data-type="6"] { --result-bg: #6f3e42; --result-accent: #f1be8e; --result-soft: #e5c2ae; --result-copy: #f4ddd1; --result-orbit: rgba(241,190,142,.35); }.result-section[data-type="6"] .result-glow { border-radius: 48% 52% 47% 53% / 63% 38% 62% 37%; transform: translate(16px, 18px); }
.result-section[data-type="7"] { --result-bg: #242b4a; --result-accent: #d3c8ff; --result-soft: #b9c0e7; --result-copy: #d9def0; --result-orbit: rgba(211,200,255,.36); }.result-section[data-type="7"] .result-glow { box-shadow: 0 0 0 85px rgba(255,255,255,.012), 0 0 0 170px rgba(255,255,255,.008), 540px 120px 0 -340px rgba(211,200,255,.13); transform: translate(-5px, -6px); }
.result-section[data-type="8"] { --result-bg: #222d34; --result-accent: #dcb46c; --result-soft: #c7c8bb; --result-copy: #e2e1d6; --result-orbit: rgba(220,180,108,.38); }.result-section[data-type="8"] .result-glow { border-radius: 2px; transform: rotate(45deg) translate(-96px, 30px); }
.result-section[data-type="9"] { --result-bg: #28566a; --result-accent: #f1c494; --result-soft: #bedbe0; --result-copy: #e0eef0; --result-orbit: rgba(241,196,148,.34); }.result-section[data-type="9"] .result-glow { border-radius: 50%; transform: translate(68px, 20px) scale(1.13); }
  
.types { padding: 119px 0 126px; }.types-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 42px; margin-bottom: 52px; }.types-heading > p { max-width: 320px; color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0 12px 4px 0; }.type-grid { border-top: 1px solid var(--line); border-left: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); }.type-card { min-height: 198px; position: relative; padding: 25px; overflow: hidden; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .25s, color .25s; }.type-card:hover { background: var(--deep); color: #fbf9f2; }.type-card-num { color: var(--orange); font: 600 39px/.85 "Playfair Display",serif; letter-spacing: -.08em; }.type-card:hover .type-card-num { color: var(--yellow); }.type-card h3 { font-size: 18px; letter-spacing: -.03em; margin: 32px 0 5px; }.type-card p { font-size: 13px; color: var(--muted); margin: 0; }.type-card:hover p { color: #bed1cc; }.type-card .corner { position: absolute; font: 600 80px/1 "Playfair Display",serif; right: -12px; bottom: -25px; color: rgba(28, 69, 70, .05); transition: color .25s; }.type-card:hover .corner { color: rgba(255,255,255,.06); }
footer { background: var(--ink); color: #d5d8d0; }.footer-inner { min-height: 98px; display: flex; justify-content: space-between; align-items: center; }.footer-inner .brand { color: #f4f1e8; }.footer-inner .brand-mark { background: var(--yellow); color: var(--ink); }.footer-inner p { color: #9da5a0; font-size: 12px; margin: 0; }
@media (max-width: 840px) { .hero { min-height: auto; }.nav-note { display: none; }.hero-grid { grid-template-columns: 1fr; gap: 47px; padding: 66px 0 74px; }.hero-copy { padding: 0; }.discovery-card { width: min(465px,100%); justify-self: center; }.hero-number { font-size: 380px; right: -48px; bottom: -54px; }.how-it-works { grid-template-columns: 1fr; gap: 42px; padding: 84px 0; }.result-layout { grid-template-columns: 1fr; gap: 30px; }.result-portrait { width: min(100%, 480px); justify-self: center; }.types-heading { align-items: flex-start; flex-direction: column; gap: 22px; }.types-heading > p { margin: 0; }.footer-inner { gap: 15px; flex-wrap: wrap; padding: 25px 0; } }
@media (max-width: 540px) { .wrap { width: min(100% - 32px, 1180px); }.nav { height: 74px; }.hero-grid { padding-top: 44px; }.hero-proof { margin-top: 34px; }.hero-proof div { padding: 0 13px; }.hero-proof strong { font-size: 19px; }.hero-proof span { font-size: 10px; }.card-content { padding: 35px 27px 27px; }.discovery-card { min-height: 480px; }.method-steps { grid-template-columns: 1fr; gap: 28px; }.result-section { padding-top: 36px; }.result-layout { padding-bottom: 65px; }.result-reading h2 { font-size: 42px; }.result-description { font-size: 16px; }.profile-compass { grid-template-columns: 1fr; }.profile-compass div, .profile-compass div + div { padding: 12px 0; border-right: 0; border-bottom: 1px solid var(--result-line); }.profile-compass div:last-child { border-bottom: 0; }.type-grid { grid-template-columns: repeat(2,1fr); }.type-card { min-height: 170px; padding: 19px; }.type-card h3 { margin-top: 25px; }.calc-flow { gap: 7px; }.calc-chip { min-width: 30px; height: 30px; padding: 0 6px; }.footer-inner { display: grid; grid-template-columns: 1fr 1fr; }.footer-inner p:last-child { text-align: right; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .result-section, .result-glow { transition: none; }
}

/* Complete Talent Code reading. Keep all chart data as selectable, accessible text. */
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 5px; }
.result-context { color: var(--result-soft); font: 12px/1.6 "DM Mono", monospace; }
.result-reading a.text-button { display: inline-block; text-decoration: none; line-height: 1.6; }
.work-button { display: block; margin-top: 18px; font-size: 12px; color: var(--result-copy); }
.decode-report { background: #fcfaf5; padding-top: 76px; }
.decode-heading { max-width: 780px; }
.decode-heading h2 { font-size: clamp(36px, 4.8vw, 58px); line-height: 1.05; margin-bottom: 22px; }
.decode-heading > p:last-child, .decode-section-heading > p:last-child { color: #53615c; line-height: 1.7; font-size: 16px; max-width: 770px; }
.decode-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 32px; padding: 20px 0; border-block: 1px solid var(--line); }
.decode-nav a { color: var(--deep); text-decoration: none; font-size: 13px; line-height: 2; border-bottom: 1px solid transparent; }
.decode-nav a:hover { border-bottom-color: var(--teal); }
.decode-block { padding: 70px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.decode-section-heading { margin-bottom: 32px; }
.decode-section-heading .eyebrow { margin-bottom: 15px; }
.decode-section-heading h2 { font-size: clamp(28px, 3vw, 39px); line-height: 1.1; margin-bottom: 18px; }
.star-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }
.star-reading { min-width: 0; border-top: 3px solid var(--teal); background: var(--paper); padding: 25px; }
.star-reading-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 21px; }
.mini-label { color: var(--teal); font: 500 11px/1.5 "DM Mono", monospace; text-transform: uppercase; letter-spacing: .035em; margin: 0 0 10px; }
.star-digit { font: 600 68px/1 "Playfair Display", serif; color: var(--deep); }
.star-reading-top img { width: 112px; height: 112px; object-fit: contain; border-radius: 50%; }
.star-reading h3 { font-size: 23px; letter-spacing: -.03em; margin-bottom: 6px; }
.star-reading > p { color: #52615b; font-size: 14px; line-height: 1.65; }
.star-reading .star-context { color: var(--teal); font-size: 12px; font-weight: 600; }
.meaning-list { margin: 22px 0; }
.meaning-list > div { margin-top: 19px; }
.meaning-list dt { font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.meaning-list dd { font-size: 14px; line-height: 1.65; color: #52615b; margin: 0; }
summary { cursor: pointer; font-size: 13px; line-height: 1.6; font-weight: 600; color: var(--deep); padding: 14px 0; }
details[open] > summary { margin-bottom: 10px; }
.reading-details { border-top: 1px solid var(--line); }
.star-reading .star-source { margin: 16px 0 0; font-size: 11px; color: #61716a; }
.holographic-chart { max-width: 820px; margin: 0 auto; background: #f0f3ed; padding: 35px 28px 12px; border: 1px solid #d9e1d8; }
.chart-row { display: grid; margin: 0; text-align: center; }
.chart-squares { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.chart-circles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chart-anchor { grid-template-columns: 1fr; }
.chart-node { min-width: 0; display: flex; align-items: center; flex-direction: column; }
.chart-node dt { font: 500 12px/1.4 "DM Mono", monospace; color: #36574d; min-height: 23px; }
.node-value { display: grid; place-items: center; width: 70px; height: 70px; border: 1px solid #b4c5b9; background: #fffdf6; font: 600 39px/1 "Playfair Display", serif; color: var(--deep); margin: 8px 0 10px; }
.circle-value { border-radius: 50%; background: #dce8de; }
.chart-anchor .node-value { color: var(--paper); background: var(--deep); }
.node-caption { color: #52695e; font-size: 11px; line-height: 1.5; margin: 0; padding: 0 4px; }
.chart-connectors { display: block; width: 100%; height: 48px; margin: 10px 0; overflow: visible; }
.chart-connectors path { fill: none; stroke: #8ea997; stroke-width: 1; vector-effect: non-scaling-stroke; }
.calculation-details { margin-top: 28px; border-top: 1px solid var(--line); }
.trace-list { margin: 0 0 24px; }
.trace-list > div { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1.4fr; gap: 15px; font-size: 13px; line-height: 1.65; }
.trace-list dt { color: #52695e; }
.trace-list dd { margin: 0; font-family: "DM Mono", monospace; }
.code-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.code-group { border: 1px solid var(--line); background: #fffdf8; min-width: 0; }
.code-group header { padding: 24px; background: #e9eee6; border-bottom: 1px solid var(--line); }
.code-group header h3 { font-size: 23px; letter-spacing: -.025em; margin: 0; }
.code-row { padding: 20px 24px; border-bottom: 1px solid var(--line); }
.code-row:last-child { border-bottom: 0; }
.code-row-title { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.code-row-title h4 { font-size: 16px; margin: 0; font-weight: 600; }
.code-digits { color: var(--deep); font: 500 29px/1.2 "DM Mono", monospace; letter-spacing: .08em; }
.code-source { color: #596c62; font-size: 12px; line-height: 1.6; margin: 8px 0 12px; }
.code-formula { color: var(--teal); font: 13px/1.6 "DM Mono", monospace; margin: 0; }
.code-formula span { color: #617167; display: block; font-size: 11px; margin-top: 4px; }
.branch-result { background: #f4f2e6; }
.decode-note { color: #5e6c64; font-size: 12px; line-height: 1.7; margin: 24px 0 0; max-width: 890px; }
.annual-form { display: flex; gap: 14px; align-items: flex-end; margin: 28px 0 0; max-width: 470px; }
.annual-form > div { width: 145px; flex-shrink: 0; }
.annual-form label { display: block; color: var(--deep); }
.annual-form input { background: white; border-color: #899f92; color: var(--ink); height: 52px; margin: 0; font: 20px "DM Mono", monospace; }
.annual-form input:focus { outline: 3px solid var(--teal); outline-offset: 3px; }
.annual-form button { flex: 1; }
.annual-error { margin: 12px 0; font-size: 13px; line-height: 1.6; color: #9c3520; }
.annual-overview { display: flex; align-items: center; gap: 32px; margin: 32px 0; padding: 30px; background: var(--deep); color: var(--paper); }
.annual-overview > div { flex: 0 0 175px; }
.annual-overview .mini-label { color: #bdd4c9; }
.annual-number { font: 600 76px/1 "Playfair Display", serif; color: var(--yellow); }
.annual-overview > p { font-size: 15px; line-height: 1.9; color: #d7e3dc; margin: 0; }
.period-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.period-card { background: #f2eee4; padding: 25px; min-width: 0; }
.period-card h3 { font-size: 24px; letter-spacing: -.025em; line-height: 1.12; min-height: 54px; margin-bottom: 16px; }
.period-note { color: #52615b; font-size: 13px; line-height: 1.7; min-height: 66px; }
.period-codes { margin: 22px 0 0; }
.period-codes > div { padding: 15px 0; border-top: 1px solid var(--line); }
.period-codes dt { color: #53655a; font-size: 11px; line-height: 1.5; }
.period-codes dd { margin: 8px 0 0; font: 500 23px/1.4 "DM Mono", monospace; letter-spacing: .1em; }
.period-codes dd.forecast-code { font-size: 36px; color: var(--deep); }
.money-pattern { color: #59675e; font-size: 13px; line-height: 1.65; border-top: 1px solid var(--line); padding-top: 18px; margin-bottom: 0; }
.money-pattern span { display: block; font-size: 10px; }
.money-pattern strong { color: var(--deep); display: block; font-size: 15px; margin: 6px 0 10px; }
.annual-detail > .holographic-chart { margin-bottom: 28px; }
.decode-end { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 55px 0; }
.decode-end p { font-size: 20px; line-height: 1.6; color: #53665b; margin: 0; }
.decode-end strong { color: var(--deep); }
.decode-end a { color: var(--teal); font-size: 14px; text-underline-offset: 5px; }

/* Ordered-code readings: the code is primary; the nine characters remain a second layer. */
.result-code-line { display: flex; align-items: center; gap: 20px; margin: 24px 0 20px; }
#result-anchor-code { color: var(--result-accent); font: 500 clamp(46px, 5vw, 64px)/1 "DM Mono", monospace; letter-spacing: .06em; }
.result-code-line > span:last-child { color: var(--result-soft); font: 500 10px/1.8 "DM Mono", monospace; text-transform: uppercase; letter-spacing: .045em; }
.result-reading #result-title { font-size: clamp(35px, 4.1vw, 58px); line-height: 1.04; overflow-wrap: anywhere; }
.result-kicker { line-height: 1.6; }
.anchor-reading { padding: 36px; border: 1px solid #c9d6c9; background: #fffdf8; }
.anchor-reading-header { display: flex; align-items: center; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.anchor-code-badge { color: var(--deep); font: 500 clamp(48px, 5vw, 70px)/1 "DM Mono", monospace; letter-spacing: .05em; }
.anchor-reading-header h3 { color: var(--deep); font-size: clamp(26px, 3vw, 36px); line-height: 1.15; letter-spacing: -.03em; margin: 0 0 10px; }
.anchor-reading-header > div > p:last-child { color: #52615b; font-size: 15px; line-height: 1.6; margin: 0; }
.anchor-explainer { margin: 26px 0; color: #52615b; font-size: 15px; line-height: 1.8; max-width: 820px; }
.code-journey { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 26px 0 32px; }
.code-journey li { min-width: 0; padding: 16px 20px; border-left: 2px solid #a1b8a5; background: #eef2ea; }
.code-journey li:last-child { background: #e2ebe0; border-color: var(--teal); }
.code-journey span { display: block; color: #52685d; text-transform: uppercase; font: 500 10px/1.5 "DM Mono", monospace; letter-spacing: .035em; }
.code-journey strong { display: block; color: var(--deep); font: 500 33px/1.3 "DM Mono", monospace; margin: 8px 0; }
.code-journey p { color: #36554a; font-size: 13px; line-height: 1.5; margin: 0; }
.energy-reading h4, .energy-reading h5 { color: var(--deep); font-size: 16px; line-height: 1.4; margin: 0 0 14px; }
.energy-reading p { color: #4f6056; font-size: 14px; line-height: 1.8; margin: 0 0 15px; }
.energy-reading p:last-child { margin-bottom: 0; }
.high-energy-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.high-energy-steps p { margin: 0; }
.balance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line); }
.finding-balance { padding-left: 25px; border-left: 2px solid #b3c7b5; }
.interpretation-source { color: #626d64; font-size: 11px; line-height: 1.7; margin: 28px 0 0; }
.code-name { color: var(--deep); font-size: 18px; font-weight: 600; line-height: 1.35; margin: 15px 0 5px; }
.code-theme { color: #52615b; font-size: 13px; line-height: 1.6; margin: 0 0 15px; }
.core-code-label { display: block; color: var(--teal); font-size: 10px; font-weight: 500; margin-top: 5px; }
.code-interpretation { margin-top: 17px; border-top: 1px solid var(--line); }
.code-interpretation > summary { padding: 13px 0 5px; }
.code-interpretation .code-journey { gap: 8px; margin: 16px 0 24px; }
.code-interpretation .code-journey li { padding: 10px 8px; }
.code-interpretation .code-journey strong { font-size: 26px; }
.code-interpretation .code-journey p { font-size: 11px; overflow-wrap: anywhere; }
.code-interpretation .high-energy-steps, .code-interpretation .balance-grid { display: block; }
.code-interpretation .high-energy-steps p { margin-bottom: 14px; }
.code-interpretation .balance-grid { margin-top: 20px; padding-top: 20px; }
.code-interpretation .finding-balance { padding: 20px 0 0; margin-top: 20px; border-left: 0; border-top: 1px solid var(--line); }
.period-codes dd.period-meaning { font: inherit; letter-spacing: normal; margin: 0; }
.period-meaning .code-name { font-size: 16px; margin-top: 10px; }
.source-provenance { margin-top: 35px; }

@media (max-width: 900px) {
  .star-grid, .period-grid { grid-template-columns: 1fr; }
  .star-reading-top img { width: 100px; height: 100px; }
  .period-card h3, .period-note { min-height: 0; }
  .code-groups { grid-template-columns: 1fr; }
  .high-energy-steps { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 540px) {
  .decode-report { padding-top: 48px; }
  .decode-block { padding: 45px 0; }
  .decode-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .decode-nav a { font-size: 12px; }
  .star-reading { padding: 23px; }
  .holographic-chart { padding: 24px 10px 5px; }
  .chart-node dt { font-size: 10px; }
  .node-value { width: 49px; height: 49px; font-size: 30px; }
  .node-caption { font-size: 9px; max-width: 82px; }
  .chart-connectors { height: 32px; }
  .trace-list > div { grid-template-columns: 1fr; gap: 4px; }
  .code-row { padding: 19px; }
  .code-digits { font-size: 25px; }
  .annual-form { gap: 12px; flex-wrap: wrap; }
  .annual-form > div { width: 118px; }
  .annual-form button { min-width: 155px; font-size: 12px; padding: 0 12px; }
  .annual-overview { padding: 24px; align-items: flex-start; flex-direction: column; gap: 16px; }
  .annual-overview > div { flex: auto; }
  .decode-end { align-items: flex-start; flex-direction: column; }
  .anchor-reading { padding: 22px; }
  .anchor-reading-header { align-items: flex-start; flex-direction: column; gap: 20px; }
  .code-journey { gap: 8px; }
  .code-journey li { padding: 12px 8px; }
  .code-journey p { font-size: 11px; overflow-wrap: anywhere; }
  .balance-grid { grid-template-columns: 1fr; }
  .finding-balance { padding: 22px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .result-code-line { gap: 15px; }
}

/* Text wrappers only preserve mixed decorative/functional elements. */
.i18n-text { display: inline; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; }
.eyebrow .i18n-text { width: auto; height: auto; background: none; }
.primary-button .i18n-text { float: none; font: inherit; }
.step-label .i18n-text { font: inherit; color: inherit; }
.language-control { display: flex; align-items: center; gap: 4px; margin: 0; color: var(--ink, #242426); font-size: 12px; white-space: nowrap; }
.language-control select { margin-left: 8px; width: auto; min-height: 44px; padding: 8px 28px 8px 10px; border: 1px solid #b5aba6; border-radius: 8px; background: #fffaf6; color: #242426; font: inherit; font-size: 15px; cursor: pointer; }
.language-control select:focus-visible { outline: 3px solid #bc533d; outline-offset: 3px; }
:lang(zh-Hant) { font-family: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif; }
html:lang(zh-Hant) h1, html:lang(zh-Hant) h2, html:lang(zh-Hant) h3, html:lang(zh-Hant) h1 em { font-family: "PingFang TC", "Microsoft JhengHei", serif; line-height: 1.3; letter-spacing: 0; }
html:lang(zh-Hant) .eyebrow { letter-spacing: .06em; }
html:lang(zh-Hant) p { line-height: 1.8; }
@media (max-width: 760px) {
  .nav { gap: 12px; flex-wrap: wrap; min-height: 96px; height: auto; padding-top: 18px; padding-bottom: 18px; }
  .nav-note { display: none; }
  .language-control { font-size: 11px; gap: 2px; }
  .language-control select { margin-left: 4px; padding-right: 8px; }
}

.language-control span:not(.i18n-text) { color: inherit; font-size: inherit; }
.language-notice { margin: 0; padding: 12px 24px; background: #fff1d7; color: #342b1f; text-align: center; }
.language-keep { display: block; margin: 8px auto; padding: 10px 18px; border: 1px solid currentColor; border-radius: 6px; background: #fffaf6; color: #242426; font: inherit; cursor: pointer; }
.language-keep[hidden] { display: none; }

@media (max-width: 760px) {
  html:lang(zh-Hant) h1 { font-size: clamp(36px, 10vw, 56px); }
}

/* Keep the calendar instruction within the date field, beside its segments. */
#birthday .birthday-help { margin: 0 0 0 auto; padding-left: 10px; min-width: 0; text-align: right; font: 11px/1.35 "DM Sans", sans-serif; color: #d0dfd7; }
/* Shared feedback slot reserves room even when both live regions are empty. */
.birthday-feedback { display: grid; grid-template-areas: "message"; grid-template-rows: minmax(0, 1fr); height: 56px; box-sizing: border-box; padding: 8px 0; }
.birthday-feedback > p { grid-area: message; align-self: start; min-height: 0; margin: 0; line-height: 18px; }
.birthday-feedback:has(#date-error:not(:empty)) #date-hint { visibility: hidden; }
@media (max-width: 600px) { .birthday-feedback { height: 80px; } }
