@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/cg-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/cg-400i.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/pjs-400.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  --bg: #0c0b10;
  --bg-2: #121118;
  --card: #16151d;
  --card-2: #1c1a24;
  --line: rgba(214, 182, 122, 0.16);
  --line-strong: rgba(214, 182, 122, 0.42);
  --gold: #d6b67a;
  --gold-soft: #e8d3a4;
  --gold-deep: #a9834c;
  --cream: #f4ecdd;
  --text: #e7e0d2;
  --muted: #a59d8f;
  --faint: #6f685d;
  --cinnabar: #c8553d;
  --wood: #5fb48a;
  --fire: #e0654f;
  --earth: #d3a65a;
  --metal: #c3ccd6;
  --water: #5b9bd5;
  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --han: 'STKaiti', 'KaiTi', 'Kaiti SC', 'KaiTi_GB2312', 'Songti SC', 'SimSun', serif;
  --sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background:
    radial-gradient(1100px 560px at 80% -8%, rgba(214, 182, 122, 0.13), transparent 62%),
    radial-gradient(900px 520px at -12% 18%, rgba(200, 85, 61, 0.09), transparent 60%),
    radial-gradient(800px 600px at 50% 110%, rgba(91, 155, 213, 0.06), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(214, 182, 122, 0.35); color: #fff; }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-soft); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  color: var(--cream);
  letter-spacing: -0.005em;
}

.container {
  width: min(1180px, calc(100vw - 36px));
  margin: 0 auto;
}

.han { font-family: var(--han); font-weight: 400; }

/* ---------- Top strip & header ---------- */
.notice-strip {
  background: linear-gradient(90deg, transparent, rgba(214, 182, 122, 0.08), transparent);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
  text-align: center;
  padding: 7px 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(12, 11, 16, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.brand:hover { color: #fff; }

.brand-seal {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: linear-gradient(145deg, #d8664c, #9f3a26);
  color: #fff4e6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--han);
  font-size: 1.15rem;
  box-shadow: 0 0 0 1px rgba(255, 220, 190, 0.25) inset, 0 6px 18px rgba(200, 85, 61, 0.35);
}

.brand-word span { color: var(--gold); }

.header-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 0.9rem;
}

.header-nav a {
  color: var(--muted);
  font-weight: 500;
  transition: color 0.15s;
}
.header-nav a:hover { color: var(--cream); }

/* ---------- Buttons ---------- */
.button, .button-secondary, .button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 650;
  border-radius: 999px;
  padding: 12px 22px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.button {
  background: linear-gradient(135deg, #f0dbab 0%, #d6b67a 45%, #b58c50 100%);
  color: #1d150a;
  border: 0;
  box-shadow: 0 8px 26px rgba(214, 182, 122, 0.28), 0 0 0 1px rgba(255, 240, 210, 0.35) inset;
}
.button:hover { color: #1d150a; transform: translateY(-1px); box-shadow: 0 12px 34px rgba(214, 182, 122, 0.4), 0 0 0 1px rgba(255, 240, 210, 0.45) inset; }
.button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.button-secondary {
  background: rgba(214, 182, 122, 0.06);
  color: var(--cream);
  border: 1px solid var(--line-strong);
}
.button-secondary:hover { border-color: var(--gold); color: #fff; background: rgba(214, 182, 122, 0.12); }

.button-ghost {
  background: transparent;
  color: var(--gold);
  border: 1px solid transparent;
  padding-inline: 10px;
}
.button-ghost:hover { color: var(--gold-soft); }

.button-small { padding: 8px 15px; font-size: 0.84rem; }
.button-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: 32px;
  padding: 64px 0 56px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(255, 245, 225, 0.7), transparent 60%),
    radial-gradient(1px 1px at 28% 78%, rgba(255, 245, 225, 0.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 46% 12%, rgba(255, 245, 225, 0.55), transparent 60%),
    radial-gradient(1px 1px at 63% 64%, rgba(255, 245, 225, 0.45), transparent 60%),
    radial-gradient(1px 1px at 82% 30%, rgba(255, 245, 225, 0.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 92% 82%, rgba(255, 245, 225, 0.4), transparent 60%),
    radial-gradient(1px 1px at 6% 90%, rgba(255, 245, 225, 0.5), transparent 60%),
    radial-gradient(1px 1px at 38% 46%, rgba(255, 245, 225, 0.35), transparent 60%);
  opacity: 0.8;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold);
  font-weight: 650;
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.hero h1 {
  font-size: clamp(2.5rem, 5.2vw, 4.2rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: italic;
  background: linear-gradient(120deg, #f6e3b8, #d6b67a 50%, #b88e52);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  color: var(--muted);
  margin: 20px 0 0;
  max-width: 560px;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 30px;
  font-size: 0.84rem;
  color: var(--muted);
}
.trust-row span::before {
  content: '✦';
  color: var(--gold);
  margin-right: 7px;
  font-size: 0.75rem;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  max-width: 470px;
  width: 100%;
  justify-self: center;
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 182, 122, 0.24), rgba(214, 182, 122, 0.04) 55%, transparent 70%);
  filter: blur(10px);
  animation: aura-breathe 8s ease-in-out infinite;
}

@keyframes aura-breathe {
  0%, 100% { transform: scale(0.97); opacity: 0.78; }
  50% { transform: scale(1.04); opacity: 1; }
}

.hero-wheel {
  position: relative;
  width: 100%;
  height: auto;
  animation: wheel-spin 240s linear infinite;
  filter: drop-shadow(0 0 24px rgba(214, 182, 122, 0.18));
}

.hero-chip {
  position: absolute;
  background: rgba(22, 21, 29, 0.82);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 10px 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.78rem;
  color: var(--muted);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}
.hero-chip strong { display: block; color: var(--cream); font-size: 0.92rem; font-family: var(--serif); }
.hero-chip-a { top: 9%; left: -4%; }
.hero-chip-b { bottom: 10%; right: -3%; }

@keyframes wheel-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .hero-wheel { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Section headings ---------- */
.section {
  padding: 26px 0 56px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 26px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.section-head p {
  color: var(--muted);
  margin: 8px 0 0;
  max-width: 560px;
}

/* ---------- Cards ---------- */
.card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0) 40%),
    var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 211, 164, 0.36), transparent);
  pointer-events: none;
}

.card-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 16px;
}
.card-title h3 { font-size: 1.4rem; }
.card-title .han { color: var(--gold); opacity: 0.75; font-size: 1.05rem; }
.card-subhint { font-size: 0.76rem; color: var(--muted); font-weight: 500; }

.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}

.preset-chip {
  font: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(214, 182, 122, 0.06);
  color: var(--gold-soft);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.preset-chip:hover {
  background: rgba(214, 182, 122, 0.16);
  border-color: var(--gold);
  color: #fff;
}

.muted { color: var(--muted); }
.small { font-size: 0.84rem; }

/* ---------- Workspace ---------- */
.workspace-grid {
  display: grid;
  grid-template-columns: minmax(300px, 350px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.form-card {
  position: sticky;
  top: 86px;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 6px;
}

.field-label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.input, .select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  font: inherit;
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
  background: rgba(8, 7, 11, 0.65);
  color: var(--cream);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.input::placeholder { color: var(--faint); }
.input:disabled { opacity: 0.45; }

.input:focus, .select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(214, 182, 122, 0.16);
}

.select option { background: #16151d; color: var(--cream); }

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

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--muted);
  cursor: pointer;
}
.check-row input { accent-color: var(--gold); width: 16px; height: 16px; }

.form-foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--faint);
  display: flex;
  gap: 8px;
}
.form-foot::before { content: '◈'; color: var(--gold); }

.chart-column {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

/* ---------- Day Master banner ---------- */
.dm-banner {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 26px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(500px 220px at 100% 0%, rgba(214, 182, 122, 0.16), transparent 70%),
    linear-gradient(135deg, #1d1a24 0%, #141219 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.dm-banner::after {
  content: '日主';
  position: absolute;
  right: 18px;
  bottom: -26px;
  font-family: var(--han);
  font-size: 7.5rem;
  line-height: 1;
  color: rgba(214, 182, 122, 0.05);
  pointer-events: none;
}

.dm-seal {
  width: 94px;
  height: 94px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--han);
  font-size: 3.4rem;
  line-height: 1;
  border: 1px solid currentColor;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 70%);
  box-shadow: 0 0 0 6px rgba(214, 182, 122, 0.05), 0 0 34px -6px currentColor;
}

.dm-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold);
  font-weight: 650;
}

.dm-banner h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  margin-top: 6px;
}

.dm-sub {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 6px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--cream);
  background: rgba(214, 182, 122, 0.07);
}

/* Element tints */
.text-Wood { color: var(--wood); }
.text-Fire { color: var(--fire); }
.text-Earth { color: var(--earth); }
.text-Metal { color: var(--metal); }
.text-Water { color: var(--water); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid;
  width: fit-content;
}
.tag-Wood { color: var(--wood); border-color: rgba(95, 180, 138, 0.45); background: rgba(95, 180, 138, 0.1); }
.tag-Fire { color: var(--fire); border-color: rgba(224, 101, 79, 0.45); background: rgba(224, 101, 79, 0.1); }
.tag-Earth { color: var(--earth); border-color: rgba(211, 166, 90, 0.45); background: rgba(211, 166, 90, 0.1); }
.tag-Metal { color: var(--metal); border-color: rgba(195, 204, 214, 0.4); background: rgba(195, 204, 214, 0.08); }
.tag-Water { color: var(--water); border-color: rgba(91, 155, 213, 0.45); background: rgba(91, 155, 213, 0.1); }

/* ---------- Four Pillars chart ---------- */
.pillars-card { padding: 22px; }

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

.pillar-col {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 16px 10px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.005));
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.pillar-col:hover, .pillar-col:focus-visible {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  outline: none;
}

.pillar-col.is-day {
  border-color: rgba(214, 182, 122, 0.45);
  background:
    radial-gradient(160px 120px at 50% 0%, rgba(214, 182, 122, 0.14), transparent 75%),
    linear-gradient(180deg, rgba(214, 182, 122, 0.06), rgba(255, 255, 255, 0.01));
}

.pillar-col.is-selected {
  border-color: rgba(232, 211, 164, 0.85);
  box-shadow: 0 0 0 1px rgba(232, 211, 164, 0.28), 0 18px 40px -12px rgba(214, 182, 122, 0.34);
}

.pillar-col.is-empty { opacity: 0.55; border-style: dashed; }

.pillar-inspector {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(10, 9, 13, 0.55);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.86rem;
}

.pi-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.pi-title {
  color: var(--gold-soft);
  font-weight: 700;
  font-size: 0.9rem;
}

.pi-domain {
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

.pi-body {
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

.pc-pos {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  font-weight: 650;
}
.pc-pos .han { letter-spacing: 0.1em; color: var(--gold); margin-left: 4px; font-size: 0.85rem; }
.pillar-col.is-day .pc-pos { color: var(--gold-soft); }

.pc-god {
  font-size: 0.78rem;
  color: var(--gold);
  min-height: 20px;
  margin-top: 4px;
}
.pc-god .han { font-size: 0.95rem; margin-right: 4px; }

.pc-glyph {
  font-family: var(--han);
  font-size: clamp(2.6rem, 4.2vw, 3.4rem);
  line-height: 1.08;
  margin-top: 6px;
  text-shadow: 0 0 22px currentColor;
}
.pc-glyph + .pc-glyph { margin-top: 0; }

.pc-name {
  font-size: 0.8rem;
  color: var(--cream);
  font-weight: 600;
}

.pc-divider {
  width: 60%;
  height: 1px;
  margin: 8px auto 2px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.pc-hidden {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin-top: 6px;
}
.pc-hidden .tag { font-size: 0.68rem; padding: 2px 7px; }

.pc-empty-note {
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.4;
}

/* ---------- Elements ---------- */
.elements-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 22px;
  align-items: center;
}

.wheel-wrap {
  position: relative;
}
.wheel-wrap svg { width: 100%; height: auto; display: block; }

.bars-mini { margin-top: 6px; }

.bar-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 10px;
  margin-top: 9px;
  font-size: 0.84rem;
  font-weight: 600;
}
.bar-row .han { font-size: 1rem; margin-right: 4px; }

.bar-track {
  height: 7px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(.2,.7,.2,1);
}
.fill-Wood { background: linear-gradient(90deg, rgba(95, 180, 138, 0.5), var(--wood)); }
.fill-Fire { background: linear-gradient(90deg, rgba(224, 101, 79, 0.5), var(--fire)); }
.fill-Earth { background: linear-gradient(90deg, rgba(211, 166, 90, 0.5), var(--earth)); }
.fill-Metal { background: linear-gradient(90deg, rgba(195, 204, 214, 0.45), var(--metal)); }
.fill-Water { background: linear-gradient(90deg, rgba(91, 155, 213, 0.5), var(--water)); }

.guidance-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.guide-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  font-size: 0.87rem;
}
.guide-item .gi-icon {
  font-family: var(--han);
  color: var(--gold);
  font-size: 1.2rem;
  line-height: 1.3;
  text-align: center;
}
.guide-item strong { display: block; color: var(--cream); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.guide-item span { color: var(--muted); }

/* ---------- Archetype ---------- */
.archetype-essence {
  font-family: var(--serif);
  font-size: 1.22rem;
  line-height: 1.55;
  color: var(--cream);
  margin: 0;
  padding-left: 18px;
  border-left: 2px solid var(--gold);
}

.trait-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.trait {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.86rem;
  color: var(--muted);
}
.trait h4 {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

/* ---------- Luck timeline ---------- */
.luck-strip {
  display: grid;
  grid-template-columns: repeat(8, minmax(96px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding: 6px 2px 10px;
  scrollbar-width: thin;
}

.luck-item {
  position: relative;
  text-align: center;
  padding: 14px 8px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.luck-item.is-now {
  border-color: var(--gold);
  background: radial-gradient(120px 90px at 50% 0%, rgba(214, 182, 122, 0.2), transparent 80%), rgba(214, 182, 122, 0.05);
  box-shadow: 0 14px 32px -12px rgba(214, 182, 122, 0.4);
}

.luck-now {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  background: var(--gold);
  color: #1d150a;
  padding: 2px 8px;
  border-radius: 999px;
}

.luck-glyph {
  font-family: var(--han);
  font-size: 1.75rem;
  line-height: 1.1;
}

.luck-age { font-size: 0.8rem; color: var(--cream); font-weight: 650; margin-top: 6px; }
.luck-meta { font-size: 0.72rem; color: var(--muted); }

.transit-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.transit-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(224, 101, 79, 0.08), rgba(255, 255, 255, 0.01));
}
.transit-card .luck-glyph { font-size: 2rem; }
.transit-card strong { display: block; color: var(--cream); font-size: 0.95rem; }
.transit-card span { font-size: 0.8rem; color: var(--muted); }

.action-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
}

/* ---------- Folio paywall ---------- */
.folio-card {
  position: relative;
  border-radius: 24px;
  padding: 34px;
  border: 1px solid transparent;
  background:
    radial-gradient(600px 260px at 85% 0%, rgba(214, 182, 122, 0.14), transparent 70%) padding-box,
    linear-gradient(160deg, #1f1c27, #141219) padding-box,
    linear-gradient(135deg, #f0dbab, #7d5c2e 40%, #3a2e1c 60%, #e2c58c) border-box;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.folio-card::after {
  content: '命書';
  position: absolute;
  right: -8px;
  top: -30px;
  font-family: var(--han);
  font-size: 9rem;
  line-height: 1;
  color: rgba(214, 182, 122, 0.045);
  pointer-events: none;
}

.folio-top {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 28px;
  align-items: start;
}

.folio-card h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin-top: 4px; }
.folio-card .lede { color: var(--muted); margin: 12px 0 0; max-width: 560px; }

.folio-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.folio-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text);
  font-size: 0.93rem;
}
.folio-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold) 0 3px, transparent 4px), rgba(214, 182, 122, 0.14);
  border: 1px solid rgba(214, 182, 122, 0.5);
}

.price-box {
  text-align: center;
  padding: 24px 20px;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: rgba(10, 9, 13, 0.55);
}

.price-old { color: var(--faint); text-decoration: line-through; font-size: 0.9rem; }
.price-now {
  font-family: var(--serif);
  font-size: 3.3rem;
  font-weight: 600;
  line-height: 1;
  color: var(--cream);
  margin: 6px 0 4px;
}
.price-now sup { font-size: 1.3rem; vertical-align: top; position: relative; top: 8px; margin-right: 2px; color: var(--gold); }
.price-note { font-size: 0.8rem; color: var(--muted); margin-bottom: 18px; }
.price-box .button { width: 100%; }
.price-links { display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; margin-top: 10px; }
.price-guarantee { margin-top: 12px; font-size: 0.75rem; color: var(--faint); }

.teaser {
  position: relative;
  margin-top: 28px;
  border-radius: 16px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}
.teaser[hidden] { display: none; }

.teaser-text {
  padding: 22px 24px;
  filter: blur(4.5px);
  opacity: 0.6;
  user-select: none;
  max-height: 210px;
  overflow: hidden;
}
.teaser-text h4 { color: var(--gold); font-size: 1.1rem; margin-bottom: 6px; }
.teaser-text p { margin: 0 0 14px; font-size: 0.92rem; }

.teaser-lock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  background: linear-gradient(180deg, rgba(20, 18, 25, 0.15), rgba(20, 18, 25, 0.85) 70%);
  padding: 20px;
}
.teaser-seal {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--han);
  font-size: 1.6rem;
  color: #fff3e3;
  background: linear-gradient(145deg, #d8664c, #9f3a26);
  box-shadow: 0 10px 26px rgba(200, 85, 61, 0.4);
}
.teaser-lock strong { color: var(--cream); font-family: var(--serif); font-size: 1.3rem; }
.teaser-lock span { color: var(--muted); font-size: 0.86rem; max-width: 420px; }

.reading-output {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.reading-output[hidden] { display: none; }

.reading-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.reading-head strong { font-family: var(--serif); font-size: 1.45rem; color: var(--cream); }

.sample-ribbon {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(200, 85, 61, 0.16);
  color: #f0a08e;
  border: 1px solid rgba(200, 85, 61, 0.45);
  margin-bottom: 6px;
}
.sample-ribbon[hidden] { display: none; }

.reading-section {
  padding: 20px 22px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}
.reading-section h4 { color: var(--gold); font-size: 1.2rem; margin-bottom: 8px; }
.reading-section p { margin: 0; font-size: 0.95rem; color: var(--text); line-height: 1.75; }

.followup-panel {
  padding: 20px 22px;
  border-radius: 14px;
  border: 1px dashed var(--line-strong);
  background: rgba(214, 182, 122, 0.03);
}
.followup-panel h4 { font-size: 1.15rem; }
.followup-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-top: 12px; }
.followup-row[hidden] { display: none; }

.qa-item {
  border-left: 2px solid var(--wood);
  padding: 2px 0 2px 14px;
  margin-top: 14px;
}
.qa-item strong { color: var(--cream); font-size: 0.92rem; }
.qa-item p { margin: 4px 0 0; color: var(--muted); font-size: 0.9rem; }

/* ---------- Notices ---------- */
.notice {
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 0.87rem;
  margin-top: 14px;
}
.notice[hidden] { display: none; }
.notice-info { background: rgba(95, 180, 138, 0.1); border: 1px solid rgba(95, 180, 138, 0.35); color: #b9e4cd; }
.notice-error { background: rgba(224, 101, 79, 0.1); border: 1px solid rgba(224, 101, 79, 0.4); color: #f4b7aa; }

.status-text { font-size: 0.84rem; color: var(--muted); }

/* ---------- Method / FAQ ---------- */
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.method-card { padding: 26px; }
.method-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--han);
  font-size: 1.6rem;
  color: var(--gold);
  border: 1px solid var(--line-strong);
  background: rgba(214, 182, 122, 0.06);
  margin-bottom: 16px;
}
.method-card h3 { font-size: 1.35rem; margin-bottom: 8px; }
.method-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* ---------- Dialog ---------- */
.studio-dialog {
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 0;
  width: min(500px, calc(100vw - 28px));
  background: linear-gradient(180deg, #1d1a24, #141219);
  color: var(--text);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}
.studio-dialog::backdrop { background: rgba(5, 4, 8, 0.72); backdrop-filter: blur(4px); }
.studio-dialog [hidden] { display: none; }

.dialog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--cream);
}

.close-dialog {
  background: none;
  border: 0;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
}
.close-dialog:hover { color: var(--cream); }

.dialog-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 44px;
  font-size: 0.85rem;
  color: var(--muted);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.3));
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}
.footer-inner p { margin: 8px 0 0; max-width: 520px; color: var(--faint); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-start;
}
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--cream); }

/* ---------- Legal pages ---------- */
.legal-main {
  padding: 56px 0 80px;
  max-width: 760px;
}
.legal-main h1 { font-size: 2.6rem; margin-bottom: 10px; }
.legal-main h2 { margin: 30px 0 8px; font-size: 1.45rem; color: var(--gold-soft); }
.legal-main p, .legal-main li { color: var(--text); font-size: 0.97rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; text-align: left; }
  .hero-visual { max-width: 360px; order: -1; }
  .workspace-grid { grid-template-columns: 1fr; }
  .form-card { position: static; }
  .elements-layout { grid-template-columns: 1fr; }
  .folio-top { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; }
  .trait-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .header-nav a { display: none; }
  .pillars-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dm-banner { grid-template-columns: 1fr; text-align: left; }
  .transit-row { grid-template-columns: 1fr; }
  .folio-card { padding: 24px 20px; }
  .hero-chip { display: none; }
  .row-two { grid-template-columns: 1fr; }
}
