:root {
  --bg: #030403;
  --bg-2: #070908;
  --ink: #f3f6e8;
  --ink-soft: #d7dfcf;
  --muted: #93a196;
  --muted-2: #5e6b63;
  --cyan: #9dffe7;
  --green: #b8ff5f;
  --amber: #ffb84d;
  --red: #ff5d4d;
  --blue: #79b7ff;
  --panel: rgba(8, 12, 10, 0.78);
  --panel-2: rgba(13, 19, 16, 0.88);
  --line: rgba(157, 255, 231, 0.18);
  --line-2: rgba(243, 246, 232, 0.16);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.58);
  --radius: 8px;
  --max: 1240px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 68% 12%, rgba(157, 255, 231, 0.11), transparent 25rem),
    radial-gradient(circle at 18% 82%, rgba(255, 184, 77, 0.08), transparent 22rem),
    linear-gradient(180deg, #020302 0%, #07100d 45%, #030403 100%);
  font-family: var(--sans);
  line-height: 1.58;
}

body::before,
body::after,
.retro-frame {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: -3;
  content: "";
  background-image:
    linear-gradient(rgba(157, 255, 231, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(157, 255, 231, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, black 0%, black 48%, transparent 90%);
}

body::after {
  z-index: 80;
  content: "";
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.055) 0,
      rgba(255, 255, 255, 0.055) 1px,
      transparent 1px,
      transparent 4px
    );
  mix-blend-mode: soft-light;
  opacity: 0.16;
}

.retro-frame {
  z-index: 70;
  border: 1px solid rgba(157, 255, 231, 0.1);
  box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.42);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: anywhere;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(14px, 3vw, 42px);
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(3, 4, 3, 0.96), rgba(7, 13, 10, 0.84)),
    rgba(3, 4, 3, 0.8);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-terminal-tag,
.console-heading,
.section-kicker,
.eyebrow,
.panel-label {
  font-family: var(--mono);
}

.brand {
  grid-column: 1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  padding: 2px;
  border: 1px solid rgba(157, 255, 231, 0.45);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 248, 0.12), rgba(184, 255, 95, 0.06)),
    #06100d;
  box-shadow:
    inset 0 0 18px rgba(157, 255, 231, 0.14),
    0 0 22px rgba(157, 255, 231, 0.1);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  object-fit: cover;
}

.nav-links {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  justify-self: center;
  justify-content: center;
  gap: clamp(16px, 2.4vw, 34px);
  color: var(--muted);
  font-size: clamp(1.1rem, 1.25vw, 1.28rem);
  font-weight: 900;
  letter-spacing: 0;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 8px 0;
  white-space: nowrap;
  transition:
    color 160ms ease,
    text-shadow 160ms ease;
}

.nav-links a span {
  color: var(--amber);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--cyan);
  text-shadow: 0 0 14px rgba(157, 255, 231, 0.36);
}

.section-band {
  position: relative;
  overflow: clip;
}

.section-inner,
.hero-inner {
  width: min(var(--max), calc(100% - clamp(32px, 7vw, 104px)));
  margin: 0 auto;
}

.hero {
  min-height: 92svh;
  padding: 126px 0 72px;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -4;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.82) brightness(0.62) contrast(1.12);
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(3, 4, 3, 0.97) 0%, rgba(3, 4, 3, 0.84) 42%, rgba(3, 4, 3, 0.42) 100%),
    linear-gradient(180deg, rgba(3, 4, 3, 0.2) 0%, rgba(3, 4, 3, 0.9) 96%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  align-items: center;
  gap: clamp(32px, 6vw, 84px);
}

.hero-copy {
  position: relative;
  min-width: 0;
  max-width: 820px;
}

.hero-copy::before {
  display: block;
  width: min(420px, 72vw);
  height: 1px;
  margin-bottom: 20px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  content: "";
}

.hero-terminal-tag {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.78rem;
}

.hero-terminal-tag span {
  padding: 5px 8px;
  border: 1px solid rgba(157, 255, 231, 0.22);
  border-radius: 4px;
  background: rgba(3, 4, 3, 0.42);
}

.quote-line {
  margin: 0;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: clamp(0.96rem, 1.3vw, 1.14rem);
}

.quote-source {
  margin: 6px 0 24px;
  color: var(--amber);
  font-size: 0.94rem;
}

h1 {
  max-width: 11em;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.8rem, 6.7vw, 6.4rem);
  font-weight: 820;
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: none;
  text-shadow:
    2px 0 0 rgba(255, 93, 77, 0.16),
    -2px 0 0 rgba(157, 255, 231, 0.16),
    0 0 42px rgba(157, 255, 231, 0.12);
}

h1 span {
  display: block;
}

.hero-lede {
  max-width: 690px;
  margin: 24px 0 0;
  color: #dce5d8;
  font-size: clamp(1rem, 1.7vw, 1.22rem);
}

.hero-actions,
.console-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 30px;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 760;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.button::after {
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(3, 4, 3, 0.22);
  content: "";
  opacity: 0.35;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  border-color: rgba(184, 255, 95, 0.74);
  color: #06100b;
  background:
    linear-gradient(135deg, var(--cyan), var(--green)),
    #b8ff5f;
  box-shadow:
    0 0 0 1px rgba(184, 255, 95, 0.16),
    0 0 32px rgba(184, 255, 95, 0.18);
}

.button-ghost {
  border-color: rgba(157, 255, 231, 0.24);
  background: rgba(3, 4, 3, 0.58);
  color: var(--ink);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  border-color: rgba(157, 255, 231, 0.48);
  box-shadow: 0 0 28px rgba(157, 255, 231, 0.1);
}

.button-subtle {
  border-color: rgba(255, 184, 77, 0.4);
  background: rgba(255, 184, 77, 0.08);
  color: #ffd08a;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(720px, 100%);
  margin-top: 30px;
  border: 1px solid rgba(157, 255, 231, 0.14);
  background: rgba(3, 4, 3, 0.5);
}

.hero-stats div {
  min-width: 0;
  padding: 13px 14px;
  border-right: 1px solid rgba(157, 255, 231, 0.1);
}

.hero-stats div:last-child {
  border-right: 0;
}

.hero-stats span,
.hero-stats strong {
  display: block;
}

.hero-stats span {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.hero-stats strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: 0.95rem;
}

.birth-console {
  position: relative;
  display: grid;
  gap: 15px;
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(157, 255, 231, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(10, 16, 13, 0.92), rgba(3, 4, 3, 0.82)),
    radial-gradient(circle at 20% 0%, rgba(157, 255, 231, 0.16), transparent 17rem);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.birth-console::before,
.result-shell::before,
.contact-inner::before {
  position: absolute;
  top: -1px;
  left: 18px;
  width: 72px;
  height: 2px;
  background: var(--green);
  box-shadow: 0 0 18px rgba(184, 255, 95, 0.5);
  content: "";
}

.console-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(157, 255, 231, 0.14);
}

.console-heading p,
.console-heading span {
  margin: 0;
}

.console-heading p {
  color: var(--cyan);
  font-size: 0.86rem;
}

.console-heading span {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 0.78rem;
}

.console-dots {
  display: flex;
  gap: 9px;
  padding-top: 2px;
}

.console-dots span {
  width: 12px;
  height: 12px;
  border: 1px solid rgba(17, 19, 15, 0.24);
  border-radius: 999px;
  background: #ff5d4d;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.28),
    0 0 10px rgba(255, 93, 77, 0.26);
}

.console-dots span:nth-child(2) {
  background: #ffb84d;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.28),
    0 0 10px rgba(255, 184, 77, 0.26);
}

.console-dots span:nth-child(3) {
  background: #55d86a;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.28),
    0 0 10px rgba(85, 216, 106, 0.26);
}

.chart-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: -2px;
}

.chart-method {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  min-width: 0;
  padding: 6px 10px;
  border: 1px solid rgba(157, 255, 231, 0.22);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(3, 4, 3, 0.26);
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 760;
  line-height: 1;
  white-space: nowrap;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.chart-method:hover,
.chart-method:focus-visible {
  border-color: rgba(184, 255, 95, 0.62);
  color: var(--ink);
}

.chart-method:focus-visible {
  outline: 2px solid rgba(184, 255, 95, 0.62);
  outline-offset: 2px;
}

.chart-method.is-active {
  color: #07100b;
  border-color: rgba(184, 255, 95, 0.92);
  background: var(--green);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    4px 4px 0 rgba(157, 255, 231, 0.1);
}

.calendar-fields,
.pillar-fields {
  display: grid;
  gap: 15px;
}

.pillar-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 12px;
}

.calendar-fields[hidden],
.pillar-fields[hidden] {
  display: none;
}

.birth-console label {
  display: grid;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.place-picker {
  display: grid;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.place-picker-label {
  display: block;
}

.place-selects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.lunar-date-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.lunar-date-picker[hidden],
.birth-console input[hidden] {
  display: none;
}

.birth-console input,
.birth-console select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgba(157, 255, 231, 0.2);
  border-radius: 4px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(2, 4, 3, 0.92), rgba(5, 9, 7, 0.82)),
    #020403;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.birth-console input:focus,
.birth-console select:focus {
  border-color: var(--cyan);
  box-shadow:
    0 0 0 3px rgba(157, 255, 231, 0.1),
    inset 0 0 18px rgba(157, 255, 231, 0.05);
}

.birth-console input::placeholder {
  color: #657268;
}

.time-picker {
  position: relative;
  display: block;
}

.time-picker input {
  padding-right: 50px;
  cursor: pointer;
}

.time-picker-trigger {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 4px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
}

.time-picker-trigger::before {
  position: absolute;
  inset: 6px;
  border: 2px solid currentColor;
  border-radius: 50%;
  content: "";
}

.time-picker-trigger::after {
  position: absolute;
  top: 8px;
  left: 15px;
  width: 5px;
  height: 8px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  content: "";
}

.time-picker-trigger:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.time-picker-panel {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  z-index: 35;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: min(260px, 100%);
  padding: 8px;
  border: 1px solid rgba(157, 255, 231, 0.24);
  border-radius: 4px;
  background: rgba(3, 4, 3, 0.96);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

.time-picker-panel[hidden] {
  display: none;
}

.time-picker-column {
  display: grid;
  max-height: 222px;
  gap: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
}

.time-option {
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 3px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 760;
}

.time-option:hover,
.time-option:focus-visible {
  border-color: rgba(184, 255, 95, 0.5);
  background: rgba(184, 255, 95, 0.12);
  outline: none;
}

.time-option.is-selected {
  color: #06100b;
  border-color: rgba(184, 255, 95, 0.92);
  background: var(--green);
}

.console-note {
  margin: 0;
  color: var(--muted-2);
  font-size: 0.82rem;
}

.calculator-band,
.learn-band,
.qa-band,
.contact-band {
  padding: clamp(70px, 9vw, 118px) 0;
}

.calculator-band {
  background:
    linear-gradient(180deg, rgba(3, 4, 3, 0.98), rgba(8, 12, 10, 0.98)),
    radial-gradient(circle at 84% 4%, rgba(184, 255, 95, 0.06), transparent 24rem);
}

.learn-band {
  background:
    radial-gradient(circle at 82% 22%, rgba(121, 183, 255, 0.08), transparent 25rem),
    linear-gradient(180deg, #07100d, #040605);
}

.qa-band {
  padding: clamp(54px, 7vw, 84px) 0;
  background:
    radial-gradient(circle at 18% 28%, rgba(255, 184, 77, 0.08), transparent 22rem),
    linear-gradient(180deg, #040605, #07100d);
}

.contact-band {
  background:
    radial-gradient(circle at 76% 50%, rgba(184, 255, 95, 0.09), transparent 22rem),
    #07100d;
}

.section-kicker {
  margin-bottom: 16px;
  color: var(--amber);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(260px, 0.55fr);
  align-items: end;
  gap: clamp(24px, 5vw, 72px);
  margin-bottom: 34px;
}

.section-head.compact {
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0 0 20px;
}

.section-head.two-column {
  grid-template-columns: minmax(0, 0.85fr) minmax(260px, 0.68fr);
}

.section-head h2,
.section-head h3,
.contact-inner h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.95rem, 3.1vw, 3.35rem);
  font-weight: 780;
  line-height: 1.08;
  letter-spacing: 0;
}

.section-head p,
.contact-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.result-shell {
  position: relative;
  min-height: 0;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid rgba(157, 255, 231, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(10, 15, 13, 0.94), rgba(3, 4, 3, 0.96)),
    linear-gradient(90deg, rgba(157, 255, 231, 0.06), transparent 35%);
  box-shadow: var(--shadow);
}

.empty-state {
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  text-align: center;
}

.empty-state[hidden],
.result-view[hidden],
.result-shell[data-empty="false"] .empty-state,
.result-shell[data-empty="true"] .result-view {
  display: none;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 18px var(--green);
}

.result-view {
  display: grid;
  min-width: 0;
  gap: 18px;
}

.energy-section,
.timeline-section {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  overflow: hidden;
}

.timeline-section {
  display: grid;
  justify-content: stretch;
  gap: 8px;
  padding-top: 14px;
}

.eyebrow,
.panel-label {
  margin: 0 0 6px;
  color: var(--muted-2);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.analysis-panel h4,
.energy-section h4,
.timeline-section h4 {
  margin: 0;
  line-height: 1.25;
}

.timeline-heading {
  width: auto;
  max-width: 100%;
  align-self: start;
}

.timeline-heading h4 {
  color: var(--ink);
  font-weight: 920;
}

.timeline-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.time-adjustment {
  margin: 0;
  padding: 10px 12px;
  border-left: 2px solid rgba(184, 255, 95, 0.8);
  color: var(--muted);
  background: rgba(157, 255, 231, 0.06);
  font-size: 0.82rem;
  line-height: 1.55;
}

.time-adjustment[hidden] {
  display: none;
}

.pillar-grid,
.analysis-grid,
.concept-grid,
.ten-god-grid {
  display: grid;
  min-width: 0;
  gap: 12px;
}

.pillar-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.analysis-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.ten-god-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.pillar-card,
.analysis-panel,
.concept-card,
.god-card,
.energy-section,
.timeline-section {
  border: 1px solid rgba(157, 255, 231, 0.13);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(12, 17, 14, 0.72), rgba(3, 4, 3, 0.62)),
    rgba(3, 4, 3, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.pillar-card,
.analysis-panel,
.concept-card,
.god-card {
  position: relative;
}

.pillar-card::before,
.analysis-panel::before,
.concept-card::before,
.god-card::before {
  position: absolute;
  top: -1px;
  left: 14px;
  width: 34px;
  height: 1px;
  background: rgba(184, 255, 95, 0.72);
  content: "";
}

.pillar-card {
  min-height: 224px;
  padding: 16px;
}

.pillar-label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.pillar-label span:first-child {
  color: var(--ink);
  font-weight: 920;
}

.pillar-main {
  display: flex;
  align-items: baseline;
  gap: 0.08em;
  margin: 8px 0 12px;
  color: var(--ink);
  font-size: clamp(2.1rem, 4vw, 3.15rem);
  line-height: 1;
  text-shadow: 0 0 22px rgba(157, 255, 231, 0.12);
}

.pillar-glyph,
.element-token,
.hidden-stem-token {
  color: var(--glyph-color);
}

.pillar-glyph {
  font-weight: 820;
  text-shadow: 0 0 18px color-mix(in srgb, var(--glyph-color) 24%, transparent);
}

.element-token,
.hidden-stem-token {
  font-weight: 720;
}

.hidden-stem-token {
  display: inline-block;
  padding: 0 2px;
}

.pillar-stem-line,
.pillar-meta {
  color: var(--muted);
  font-size: 0.88rem;
}

.pillar-stem-line {
  margin-top: 16px;
}

.pillar-meta {
  display: grid;
  gap: 6px;
}

.pillar-hidden-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 8px;
  align-items: start;
  line-height: 1.65;
}

.pillar-hidden-label {
  color: var(--muted);
}

.hidden-stem-list {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.hidden-stem-row {
  display: grid;
  grid-template-columns: minmax(2.8em, max-content) minmax(2.8em, max-content);
  column-gap: 10px;
  align-items: baseline;
  white-space: nowrap;
}

.hidden-stem-god {
  color: var(--muted);
  font-size: 0.82em;
}

.analysis-panel {
  min-height: 176px;
  padding: 18px;
}

.analysis-panel h4 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 1.05rem;
}

.analysis-panel p:last-child,
.concept-card p,
.god-card p,
.timeline p {
  margin: 0;
  color: var(--muted);
}

.energy-section,
.timeline-section {
  padding: 20px;
}

.timeline-section {
  padding-top: 12px;
}

.element-bars {
  display: grid;
  width: min(620px, 100%);
  gap: 10px;
}

.element-row {
  display: grid;
  grid-template-columns: 84px 1fr 44px;
  align-items: center;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.element-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.element-icon {
  display: inline-grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--element-color) 70%, transparent);
  border-radius: 4px;
  color: var(--element-color);
  background: var(--element-soft);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 860;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.bar-track {
  position: relative;
  height: 10px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--element-color) 34%, transparent);
  border-radius: 999px;
  background: var(--element-soft);
}

.bar-fill {
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
  background:
    repeating-linear-gradient(90deg, rgba(3, 4, 3, 0.26) 0 2px, transparent 2px 6px),
    linear-gradient(90deg, color-mix(in srgb, var(--element-color) 58%, #ffffff), var(--element-color));
}

.timeline {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex: 1 1 auto;
  gap: 14px;
  overflow-x: auto;
  padding: 22px 2px 8px;
  scroll-padding-left: 2px;
  scroll-snap-type: x proximity;
  scrollbar-color: rgba(184, 255, 95, 0.72) rgba(17, 19, 15, 0.08);
}

.timeline-item {
  position: relative;
  display: grid;
  width: clamp(220px, 23vw, 270px);
  flex: 0 0 clamp(220px, 23vw, 270px);
  gap: 8px;
  align-content: start;
  padding: 18px 14px 14px;
  border: 1px solid rgba(157, 255, 231, 0.1);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
  scroll-snap-align: start;
}

.timeline-item:not(:last-child)::before,
.timeline-item:last-child::before {
  position: absolute;
  top: -12px;
  left: 20px;
  height: 2px;
  background:
    linear-gradient(90deg, transparent 0 16%, rgba(184, 255, 95, 0.96) 38%, rgba(157, 255, 231, 0.76) 48%, transparent 68%),
    linear-gradient(90deg, rgba(17, 19, 15, 0.78), rgba(184, 255, 95, 0.52), rgba(17, 19, 15, 0.28));
  background-size: 180% 100%, 100% 100%;
  background-position: -160% 0, 0 0;
  box-shadow: 0 0 10px rgba(184, 255, 95, 0.18);
  content: "";
  animation: luck-line-flow 2.6s linear infinite;
}

.timeline-item:not(:last-child)::before {
  width: calc(100% + 14px);
}

.timeline-item:last-child::before {
  width: calc(100% - 14px);
}

@keyframes luck-line-flow {
  to {
    background-position: 160% 0, 0 0;
  }
}

.timeline-item.is-current {
  border-color: rgba(184, 255, 95, 0.72);
  box-shadow:
    inset 0 0 0 1px rgba(184, 255, 95, 0.2),
    5px 5px 0 rgba(17, 19, 15, 0.12);
}

.luck-dot {
  position: absolute;
  top: -18px;
  left: 14px;
  z-index: 1;
  width: 13px;
  height: 13px;
  border: 2px solid #11130f;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(184, 255, 95, 0.16);
}

.luck-node-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.luck-step,
.luck-status,
.luck-age,
.luck-years {
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.3;
}

.luck-step {
  color: var(--muted-2);
}

.luck-status {
  color: var(--amber);
}

.luck-name {
  display: flex;
  align-items: baseline;
  gap: 0.04em;
  color: var(--ink);
  font-size: clamp(2.05rem, 3.1vw, 2.9rem);
  font-weight: 860;
  line-height: 1;
}

.luck-age {
  color: #11130f;
  font-weight: 820;
}

.luck-years {
  color: var(--muted);
}

.luck-ten-god-line,
.luck-hidden-line {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  column-gap: 8px;
  align-items: start;
  padding-top: 7px;
  border-top: 1px solid rgba(17, 19, 15, 0.1);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.luck-ten-god-line > span:first-child,
.luck-hidden-line > span:first-child {
  color: var(--muted-2);
}

.timeline-item .luck-glyph,
.timeline-item .element-token,
.timeline-item .hidden-stem-token {
  color: var(--glyph-color);
}

.timeline-item .hidden-stem-list {
  gap: 1px;
}

.timeline-item .hidden-stem-row {
  grid-template-columns: minmax(2.7em, max-content) minmax(2.7em, max-content);
  column-gap: 8px;
}

.concept-card,
.god-card {
  padding: 18px;
}

.concept-card span,
.god-card span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.concept-card h3,
.god-card h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 1.1rem;
}

.ten-god-wrap {
  margin-top: clamp(36px, 6vw, 64px);
}

.god-card {
  min-height: 168px;
}

.qa-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.1fr);
  gap: clamp(18px, 4vw, 34px);
  align-items: stretch;
}

.qa-prompt-panel,
.qa-chat {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(157, 255, 231, 0.13);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(12, 17, 14, 0.72), rgba(3, 4, 3, 0.62)),
    rgba(3, 4, 3, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.qa-prompt-panel {
  display: grid;
  grid-template-rows: auto minmax(190px, 1fr);
  gap: 14px;
  overflow: hidden;
  padding: clamp(16px, 2.4vw, 22px);
}

.qa-prompt-panel h3,
.qa-chat h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.22rem, 2.1vw, 1.9rem);
  line-height: 1.08;
}

.qa-prompt-window {
  position: relative;
  min-height: 220px;
  max-height: 300px;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
}

.qa-prompt-track {
  display: grid;
  gap: 10px;
  animation: qa-prompt-scroll 22s linear infinite;
}

.qa-prompt-window:hover .qa-prompt-track,
.qa-prompt-window:focus-within .qa-prompt-track {
  animation-play-state: paused;
}

.qa-prompt-loop {
  display: grid;
  gap: 10px;
}

.qa-prompt {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgba(157, 255, 231, 0.16);
  border-radius: 4px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 720;
}

.qa-prompt:hover,
.qa-prompt:focus-visible {
  border-color: rgba(184, 255, 95, 0.62);
  box-shadow: 0 0 0 3px rgba(184, 255, 95, 0.12);
}

@keyframes qa-prompt-scroll {
  to {
    transform: translateY(calc(-50% - 5px));
  }
}

.qa-chat {
  display: grid;
  grid-template-rows: auto minmax(170px, 1fr) auto;
  min-height: 410px;
  max-height: 520px;
  overflow: hidden;
}

.qa-chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(16px, 2.4vw, 22px);
  border-bottom: 1px solid rgba(157, 255, 231, 0.1);
}

.qa-quota {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(184, 255, 95, 0.32);
  border-radius: 999px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.qa-messages {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  max-height: 260px;
  overflow-y: auto;
  padding: clamp(14px, 2.4vw, 20px);
  scrollbar-color: rgba(184, 255, 95, 0.72) rgba(17, 19, 15, 0.08);
}

.qa-message {
  max-width: min(86%, 620px);
  padding: 10px 12px;
  border: 1px solid rgba(157, 255, 231, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
}

.qa-message p {
  margin: 0;
  color: var(--muted);
}

.qa-message-user {
  justify-self: end;
  border-color: rgba(184, 255, 95, 0.32);
  background: rgba(184, 255, 95, 0.1);
}

.qa-message-user p {
  color: var(--ink);
}

.qa-form {
  display: grid;
  gap: 8px;
  padding: clamp(14px, 2.4vw, 20px);
  border-top: 1px solid rgba(157, 255, 231, 0.1);
}

.qa-form label {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.qa-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.qa-input-row textarea {
  width: 100%;
  min-height: 70px;
  resize: vertical;
  border: 1px solid rgba(157, 255, 231, 0.2);
  border-radius: 4px;
  color: var(--ink);
  background: rgba(3, 4, 3, 0.58);
  padding: 12px 13px;
  outline: none;
}

.qa-input-row textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(184, 255, 95, 0.16);
}

.qa-input-row textarea:disabled {
  cursor: not-allowed;
  opacity: 0.66;
}

.qa-input-row .button {
  min-width: 92px;
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 0.7fr);
  align-items: center;
  gap: clamp(24px, 6vw, 82px);
}

.contact-inner {
  position: relative;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(157, 255, 231, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(157, 255, 231, 0.08), transparent 36%),
    rgba(3, 4, 3, 0.62);
}

.contact-inner h2 {
  margin-bottom: 16px;
}

.contact-actions {
  justify-content: flex-end;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(18px, 4vw, 48px);
  border-top: 1px solid rgba(157, 255, 231, 0.1);
  color: var(--muted-2);
  background: #030403;
  font-family: var(--mono);
  font-size: 0.82rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--cyan);
}

body.modal-open {
  overflow: hidden;
}

.wechat-dialog {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 44px);
}

.wechat-dialog[hidden] {
  display: none;
}

.wechat-dialog__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background:
    linear-gradient(135deg, rgba(3, 4, 3, 0.88), rgba(17, 19, 15, 0.76)),
    rgba(3, 4, 3, 0.86);
  cursor: pointer;
}

.wechat-dialog__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 420px);
  align-items: center;
  gap: clamp(20px, 4vw, 42px);
  width: min(920px, 100%);
  max-height: min(86vh, 760px);
  padding: clamp(18px, 4vw, 34px);
  overflow: auto;
  border: 1px solid rgba(157, 255, 231, 0.36);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(157, 255, 231, 0.09), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 248, 0.98), rgba(237, 235, 222, 0.96));
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(184, 255, 95, 0.14);
  color: #11130f;
}

.wechat-dialog__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(17, 19, 15, 0.18);
  border-radius: 4px;
  background: rgba(255, 255, 248, 0.78);
  color: #11130f;
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
}

.wechat-dialog__close:hover,
.wechat-dialog__close:focus-visible {
  border-color: rgba(47, 159, 104, 0.44);
  box-shadow: 0 0 0 3px rgba(47, 159, 104, 0.14);
}

.wechat-dialog__copy {
  display: grid;
  gap: 12px;
  padding-right: 10px;
}

.wechat-dialog__copy h2 {
  max-width: 8em;
  margin: 0;
  color: #11130f;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 0.95;
}

.wechat-dialog__copy p {
  margin: 0;
  color: rgba(17, 19, 15, 0.72);
}

.wechat-dialog__qr-frame {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: clamp(8px, 2vw, 14px);
  border: 1px solid rgba(17, 19, 15, 0.12);
  border-radius: 6px;
  background: #fff;
}

.wechat-dialog__qr-frame img {
  display: block;
  width: min(100%, 380px);
  max-height: min(62vh, 560px);
  object-fit: contain;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .hero-inner,
  .section-head,
  .section-head.two-column,
  .qa-shell,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 112px;
  }

  .hero-copy {
    max-width: 100%;
  }

  h1 {
    max-width: 12em;
  }

  .pillar-grid,
  .analysis-grid,
  .concept-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ten-god-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .energy-section,
  .timeline-section {
    flex-direction: column;
  }

  .contact-actions {
    justify-content: flex-start;
  }

  .qa-prompt-panel {
    grid-template-rows: auto minmax(190px, 240px);
  }

  .wechat-dialog__panel {
    grid-template-columns: 1fr;
  }

  .wechat-dialog__copy h2 {
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  .retro-frame {
    display: none;
  }

  .site-header {
    position: sticky;
    width: 100vw;
    max-width: 100vw;
    min-height: auto;
    padding: 12px 14px;
    gap: 8px;
    overflow: hidden;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(5, max-content);
    justify-content: center;
    min-width: 0;
    gap: 6px;
    font-size: clamp(0.68rem, 3vw, 0.9rem);
  }

  .nav-links a {
    padding: 6px 0;
  }

  .nav-links a span {
    display: none;
  }

  .section-inner,
  .hero-inner {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
  }

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

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(3, 4, 3, 0.86) 0%, rgba(3, 4, 3, 0.78) 46%, rgba(3, 4, 3, 0.95) 100%),
      linear-gradient(90deg, rgba(3, 4, 3, 0.9), rgba(3, 4, 3, 0.58));
  }

  .hero-terminal-tag {
    margin-bottom: 18px;
  }

  .quote-source {
    margin-bottom: 18px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.15rem, 10.3vw, 3.05rem);
    line-height: 1.05;
    word-break: break-all;
  }

  .hero-lede {
    margin-top: 18px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-stats div:nth-child(2) {
    border-right: 0;
  }

  .hero-stats div:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(157, 255, 231, 0.1);
  }

  .birth-console {
    padding: 16px;
  }

  .hero-copy,
  .hero-actions,
  .console-actions,
  .result-shell {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .console-heading {
    gap: 10px;
  }

  .chart-methods {
    display: grid;
    grid-template-columns: 1fr;
  }

  .chart-method {
    width: 100%;
    min-height: 34px;
    white-space: normal;
    line-height: 1.18;
  }

  .pillar-fields {
    grid-template-columns: 1fr;
  }

  .place-selects,
  .lunar-date-picker {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .console-actions,
  .contact-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .console-actions .button,
  .hero-actions .button,
  .contact-actions .button {
    width: 100%;
    min-width: 0;
    padding-inline: 10px;
    white-space: nowrap;
  }

  .wechat-dialog {
    padding: 12px;
  }

  .wechat-dialog__panel {
    gap: 16px;
    width: min(100%, 430px);
    max-height: 88vh;
    padding: 18px;
  }

  .wechat-dialog__copy {
    padding-right: 42px;
  }

  .wechat-dialog__copy h2 {
    font-size: clamp(1.8rem, 12vw, 3rem);
  }

  .wechat-dialog__qr-frame img {
    max-height: 58vh;
  }

  .qa-chat {
    min-height: auto;
  }

  .qa-chat-head {
    display: grid;
  }

  .qa-messages {
    max-height: 300px;
  }

  .qa-message {
    max-width: 100%;
  }

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

  .qa-input-row .button {
    width: 100%;
  }

  .calculator-band,
  .learn-band,
  .qa-band,
  .contact-band {
    padding: 62px 0;
  }

  .pillar-grid,
  .analysis-grid,
  .concept-grid,
  .ten-god-grid {
    grid-template-columns: 1fr;
  }

  .pillar-card,
  .analysis-panel,
  .god-card {
    min-height: auto;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .element-row {
    grid-template-columns: 74px 1fr 36px;
    gap: 8px;
  }

  .element-icon {
    width: 23px;
    height: 23px;
    font-size: 0.76rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 390px) {
  .nav-links {
    gap: 6px;
  }

  .hero-actions,
  .console-actions,
  .contact-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* MegaETH-inspired light retro skin: light concrete base, black type, acid green accents. */
:root {
  --bg: #efefea;
  --bg-2: #e3e1da;
  --ink: #11130f;
  --ink-soft: #252a22;
  --muted: #596156;
  --muted-2: #83897d;
  --cyan: #00bfa6;
  --green: #b6ff3d;
  --amber: #c77500;
  --red: #e64a36;
  --blue: #5d55ff;
  --panel: rgba(248, 248, 241, 0.9);
  --panel-2: rgba(238, 237, 229, 0.92);
  --line: rgba(17, 19, 15, 0.18);
  --line-2: rgba(17, 19, 15, 0.1);
  --shadow: 0 20px 60px rgba(24, 24, 20, 0.12);
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 72% 14%, rgba(182, 255, 61, 0.34), transparent 18rem),
    radial-gradient(circle at 12% 72%, rgba(93, 85, 255, 0.14), transparent 18rem),
    linear-gradient(180deg, #f5f5ef 0%, #ecebe3 48%, #dedcd2 100%);
}

body::before {
  z-index: -3;
  background-image:
    linear-gradient(rgba(17, 19, 15, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 19, 15, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
}

body::after {
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(17, 19, 15, 0.04) 0,
      rgba(17, 19, 15, 0.04) 1px,
      transparent 1px,
      transparent 5px
    );
  mix-blend-mode: multiply;
  opacity: 0.2;
}

.retro-frame {
  border-color: rgba(17, 19, 15, 0.12);
  box-shadow: inset 0 0 80px rgba(17, 19, 15, 0.06);
}

.site-header {
  border-bottom-color: rgba(17, 19, 15, 0.18);
  background:
    linear-gradient(90deg, rgba(245, 245, 239, 0.94), rgba(229, 228, 219, 0.88)),
    rgba(245, 245, 239, 0.82);
}

.brand-mark {
  border-color: rgba(17, 19, 15, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 248, 0.88), rgba(236, 235, 227, 0.62)),
    #f5f5ef;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    4px 4px 0 rgba(17, 19, 15, 0.11);
}

.nav-links {
  color: var(--ink-soft);
}

.nav-links a span,
.quote-source,
.section-kicker {
  color: var(--amber);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #11130f;
  text-shadow: 2px 0 0 rgba(182, 255, 61, 0.55);
}

.hero {
  background:
    linear-gradient(180deg, rgba(245, 245, 239, 0.7), rgba(236, 235, 227, 0.92)),
    #efefea;
}

.hero-media img {
  opacity: 0.34;
  filter: grayscale(1) invert(1) contrast(0.78) brightness(1.24);
  mix-blend-mode: multiply;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(245, 245, 239, 0.96) 0%, rgba(245, 245, 239, 0.86) 42%, rgba(245, 245, 239, 0.54) 100%),
    linear-gradient(180deg, rgba(245, 245, 239, 0.1) 0%, rgba(236, 235, 227, 0.92) 96%);
}

.hero-copy::before {
  background: linear-gradient(90deg, #11130f, transparent);
}

.hero-terminal-tag span {
  color: var(--ink-soft);
  border-color: rgba(17, 19, 15, 0.18);
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 4px 4px 0 rgba(17, 19, 15, 0.05);
}

.quote-line,
.console-heading p,
.concept-card span,
.god-card span,
.site-footer a {
  color: #008f7c;
}

h1 {
  color: #11130f;
  text-shadow:
    3px 0 0 rgba(182, 255, 61, 0.56),
    -2px 0 0 rgba(93, 85, 255, 0.18);
}

.hero-lede,
.section-head p,
.contact-inner p,
.analysis-panel p:last-child,
.concept-card p,
.god-card p,
.timeline p,
.console-note {
  color: var(--muted);
}

.button {
  border-radius: 3px;
}

.button::after {
  border-color: rgba(17, 19, 15, 0.16);
}

.button-primary {
  color: #11130f;
  border-color: #11130f;
  background: var(--green);
  box-shadow: 6px 6px 0 rgba(17, 19, 15, 0.16);
}

.button-ghost {
  color: #11130f;
  border-color: rgba(17, 19, 15, 0.32);
  background: rgba(255, 255, 255, 0.5);
}

.button-subtle {
  color: #11130f;
  border-color: rgba(17, 19, 15, 0.28);
  background: rgba(255, 255, 255, 0.36);
}

.qa-prompt,
.qa-message,
.qa-input-row textarea {
  color: #11130f;
  border-color: rgba(17, 19, 15, 0.18);
  background: rgba(255, 255, 248, 0.54);
}

.qa-prompt:hover,
.qa-prompt:focus-visible,
.qa-input-row textarea:focus {
  border-color: #11130f;
  box-shadow: 0 0 0 3px rgba(182, 255, 61, 0.34);
}

.qa-message p {
  color: var(--muted);
}

.qa-message-user {
  border-color: rgba(17, 19, 15, 0.24);
  background: rgba(182, 255, 61, 0.22);
}

.qa-message-user p {
  color: #11130f;
}

.qa-quota {
  color: #11130f;
  border-color: rgba(17, 19, 15, 0.28);
  background: rgba(182, 255, 61, 0.26);
}

.hero-stats,
.birth-console,
.result-shell,
.pillar-card,
.analysis-panel,
.concept-card,
.god-card,
.energy-section,
.timeline-section,
.qa-prompt-panel,
.qa-chat,
.contact-inner {
  border-color: rgba(17, 19, 15, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 248, 0.78), rgba(235, 234, 225, 0.74)),
    rgba(255, 255, 248, 0.66);
  box-shadow: var(--shadow);
}

.hero-stats div {
  border-right-color: rgba(17, 19, 15, 0.12);
}

.hero-stats span,
.eyebrow,
.panel-label,
.pillar-label,
.console-heading span {
  color: var(--muted-2);
}

.hero-stats strong,
.section-head h2,
.section-head h3,
.qa-prompt-panel h3,
.qa-chat h3,
.contact-inner h2,
.analysis-panel h4,
.energy-section h4,
.timeline-section h4,
.concept-card h3,
.god-card h3,
.pillar-main {
  color: #11130f;
}

.pillar-label span:first-child,
.luck-name,
.luck-age {
  color: #11130f;
}

.birth-console::before,
.result-shell::before,
.contact-inner::before {
  background: #11130f;
  box-shadow: 0 0 0 4px rgba(182, 255, 61, 0.55);
}

.console-heading {
  border-bottom-color: rgba(17, 19, 15, 0.14);
}

.chart-method {
  color: var(--muted);
  border-color: rgba(17, 19, 15, 0.18);
  background: rgba(255, 255, 248, 0.42);
}

.chart-method:hover,
.chart-method:focus-visible {
  color: #11130f;
  border-color: rgba(17, 19, 15, 0.38);
}

.chart-method.is-active {
  color: #11130f;
  border-color: #11130f;
  background: var(--green);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.34),
    4px 4px 0 rgba(17, 19, 15, 0.14);
}

.birth-console input,
.birth-console select {
  color: #11130f;
  border-color: rgba(17, 19, 15, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(238, 237, 229, 0.72)),
    #f5f5ef;
}

.birth-console input:focus,
.birth-console select:focus {
  border-color: #11130f;
  box-shadow:
    0 0 0 3px rgba(182, 255, 61, 0.45),
    inset 0 0 0 1px rgba(17, 19, 15, 0.08);
}

.birth-console input::placeholder {
  color: #8b9188;
}

.time-picker-trigger {
  color: #11130f;
}

.time-picker-panel {
  border-color: rgba(17, 19, 15, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 248, 0.98), rgba(238, 237, 229, 0.98)),
    #f5f5ef;
  box-shadow:
    0 18px 42px rgba(17, 19, 15, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}

.time-option {
  color: #11130f;
}

.time-option:hover,
.time-option:focus-visible {
  border-color: rgba(17, 19, 15, 0.32);
  background: rgba(182, 255, 61, 0.28);
}

.time-option.is-selected {
  color: #11130f;
  border-color: #11130f;
  background: var(--green);
}

.calculator-band,
.learn-band,
.qa-band,
.contact-band {
  background:
    radial-gradient(circle at 80% 20%, rgba(182, 255, 61, 0.18), transparent 22rem),
    linear-gradient(180deg, #efefea, #dedcd2);
}

.time-adjustment {
  color: var(--muted);
  border-left-color: #11130f;
  background: rgba(255, 255, 248, 0.44);
}

.pillar-card::before,
.analysis-panel::before,
.concept-card::before,
.god-card::before {
  background: #11130f;
}

.pillar-stem-line,
.pillar-meta,
.hidden-stem-god,
.element-row {
  color: var(--muted);
}

.bar-track {
  border-color: color-mix(in srgb, var(--element-color) 42%, rgba(17, 19, 15, 0.12));
  background: var(--element-soft);
}

.bar-fill {
  background:
    repeating-linear-gradient(90deg, rgba(17, 19, 15, 0.2) 0 2px, transparent 2px 7px),
    linear-gradient(90deg, color-mix(in srgb, var(--element-color) 64%, #fff), var(--element-color));
}

.timeline-item {
  border-color: rgba(17, 19, 15, 0.14);
  background: rgba(255, 255, 255, 0.36);
}

.site-footer {
  color: var(--muted);
  border-top-color: rgba(17, 19, 15, 0.14);
  background: #dedcd2;
}

@media (max-width: 720px) {
  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(245, 245, 239, 0.92) 0%, rgba(245, 245, 239, 0.84) 46%, rgba(236, 235, 227, 0.96) 100%),
      linear-gradient(90deg, rgba(245, 245, 239, 0.92), rgba(245, 245, 239, 0.64));
  }

  .hero-stats div:nth-child(-n + 2) {
    border-bottom-color: rgba(17, 19, 15, 0.12);
  }
}

/* Hero correction: keep the first visual area to the slogan and let the fate-map background show through. */
.hero {
  min-height: 82svh;
  padding: clamp(118px, 13svh, 156px) 0 clamp(54px, 7svh, 78px);
}

.hero-media img {
  opacity: 0.66;
  filter: grayscale(1) invert(1) contrast(1.12) brightness(1.02);
  mix-blend-mode: multiply;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(245, 245, 239, 0.84) 0%, rgba(245, 245, 239, 0.62) 44%, rgba(245, 245, 239, 0.24) 100%),
    linear-gradient(180deg, rgba(245, 245, 239, 0) 0%, rgba(236, 235, 227, 0.72) 96%);
}

.hero-inner {
  width: min(1480px, calc(100% - clamp(32px, 7vw, 104px)));
  grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
}

.hero-copy {
  display: block;
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  max-width: 100%;
  min-width: 0;
  padding-top: 0;
}

.hero-copy::before {
  width: min(880px, 100%);
  margin-bottom: clamp(18px, 2.4vw, 30px);
  background: linear-gradient(90deg, #11130f 0%, rgba(17, 19, 15, 0.18) 56%, transparent 100%);
}

.quote-line {
  max-width: 100%;
  color: #11130f;
  font-size: var(--hero-quote-size, clamp(2.25rem, 4vw, 4.6rem));
  font-weight: 880;
  line-height: 1.04;
  letter-spacing: 0;
  word-break: keep-all;
  text-shadow:
    5px 0 0 rgba(182, 255, 61, 0.64),
    -4px 0 0 rgba(93, 85, 255, 0.2);
}

.quote-line > span {
  display: block;
  width: max-content;
  max-width: 100%;
}

.quote-line > span:first-child {
  position: relative;
  top: 0;
  transform: translateY(calc(-1 * clamp(92px, 15svh, 150px)));
}

.quote-line > span + span {
  margin-top: clamp(10px, 1vw, 16px);
  font-size: 1em;
  font-weight: 880;
  line-height: 1.04;
  white-space: nowrap;
}

.quote-line > .quote-secondary {
  display: block;
}

.quote-source {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: clamp(16px, 1.8vw, 24px) 0 0;
  margin-left: auto;
  font-family: var(--mono);
  font-size: clamp(1.46rem, 2.35vw, 2.08rem);
  font-weight: 860;
  letter-spacing: 0;
  text-align: right;
  transform: translate(clamp(32px, 4.2vw, 96px), clamp(82px, 12svh, 156px));
  color: var(--amber);
}

.birth-console {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  justify-self: end;
  width: min(100%, 420px);
}

@media (max-width: 1080px) {
  .hero-inner {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 34px;
  }

  .hero-copy,
  .birth-console {
    grid-column: 1;
    grid-row: auto;
  }

  .quote-line > span + span {
    white-space: normal;
  }

  .quote-line > span:first-child {
    transform: none;
  }

  .quote-source {
    width: auto;
    text-align: left;
    transform: none;
  }

  .birth-console {
    justify-self: stretch;
    width: 100%;
  }
}

@media (max-width: 720px) {
  .hero {
    min-height: auto;
    padding: clamp(66px, 10svh, 88px) 0 42px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(245, 245, 239, 0.84) 0%, rgba(245, 245, 239, 0.68) 46%, rgba(236, 235, 227, 0.9) 100%),
      linear-gradient(90deg, rgba(245, 245, 239, 0.84), rgba(245, 245, 239, 0.44));
  }

  .hero-inner {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 28px;
  }

  .hero-copy {
    display: block;
    grid-column: 1;
    padding-top: 0;
  }

  .hero-copy::before {
    width: 100%;
    margin-bottom: 22px;
  }

  .quote-line {
    max-width: 100%;
    font-size: clamp(1.9rem, 9.2vw, 3rem);
    line-height: 1.02;
  }

  .quote-line > span:first-child {
    transform: none;
  }

  .quote-line > span + span {
    font-size: 0.58em;
    white-space: normal;
  }

  .quote-source {
    display: block;
    margin-top: 18px;
    font-size: clamp(0.92rem, 4vw, 1.06rem);
    text-align: left;
  }

  .birth-console {
    grid-column: 1;
    justify-self: stretch;
    width: 100%;
  }
}
