/* ═══════════════════════════════════════════════════════════════
   Momentor — Concept C Ledger Theme Override
   2026-05-14
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* 배경 */
  --bg: #E8DCC4;
  --bg2: #E2D5BA;
  --bg-card: #F2EBD9;
  --bg-panel: #EDE3CE;
  --surface: #EDE3CE;
  --card: #F2EBD9;
  --elevated: #F2EBD9;

  /* 텍스트 */
  --text-primary: #3D2B1F;
  --text-secondary: #5A3D2B;
  --text-muted: #5E4B3B;
  --text-body: #3D2B1F;
  --text-headline: #3D2B1F;
  --text-secondary-warm: #5A3D2B;
  --text-tertiary: #5E4B3B;

  /* 골드 */
  --gold: #C9A96E;
  --gold-primary: #C9A96E;
  --gold-accent: #C9A96E;
  --gold-dim: #A8895A;
  --gold-95: rgba(201,169,110,0.95);
  --gold-90: rgba(201,169,110,0.9);
  --gold-85: rgba(201,169,110,0.85);
  --gold-60: rgba(201,169,110,0.6);
  --gold-50: rgba(201,169,110,0.5);
  --gold-40: rgba(201,169,110,0.4);
  --gold-35: rgba(201,169,110,0.35);
  --gold-30: rgba(201,169,110,0.3);
  --gold-25: rgba(201,169,110,0.25);
  --gold-20: rgba(201,169,110,0.2);
  --gold-15: rgba(201,169,110,0.15);
  --gold-12: rgba(201,169,110,0.12);
  --gold-10: rgba(201,169,110,0.1);
  --gold-08: rgba(201,169,110,0.08);
  --gold-05: rgba(201,169,110,0.05);
  --gold-03: rgba(201,169,110,0.03);
  --gold-55: rgba(201,169,110,0.55);

  /* 인장 */
  --seal-red: #8B0000;

  /* 액센트 → Ledger 갈색 */
  --accent: #8B0000;
  --accent-dim: rgba(139,0,0,0.15);
  --glow: rgba(139,0,0,0.06);
  --glow-strong: rgba(139,0,0,0.12);

  /* 보더 */
  --border: rgba(201,169,110,0.2);
  --border-accent: rgba(139,0,0,0.15);
  --border-subtle: rgba(201,169,110,0.2);

  /* w 시리즈 → 갈색 계열 */
  --w04: rgba(61,43,31,0.04);
  --w05: rgba(61,43,31,0.05);
  --w08: rgba(61,43,31,0.08);
  --w15: rgba(61,43,31,0.15);
  --w20: rgba(61,43,31,0.2);
  --w30: rgba(61,43,31,0.3);
  --w45: rgba(61,43,31,0.45);
}

/* ── Base ── */
body {
  background-color: #E8DCC4 !important;
  color: #3D2B1F !important;
}

.screen {
  background: #E8DCC4 !important;
}

/* ── Cards / Panels ── */
.result-card, .hero-card, .section-card,
[class*="-card"], [class*="-panel"] {
  background: #F2EBD9 !important;
  border-color: rgba(201,169,110,0.3) !important;
  color: #3D2B1F !important;
}

/* ── Typography ── */
h1, h2, h3, h4,
.section-title, .chapter-title,
[class*="-title"], [class*="-heading"] {
  font-family: 'Cormorant Garamond', serif !important;
  color: #3D2B1F !important;
}

/* ── Gold elements ── */
.gold, [class*="-gold"],
.chapter-tab.active, .result-title {
  color: #C9A96E !important;
}

/* ── Inputs ── */
input, select, textarea {
  background: #F2EBD9 !important;
  border-color: rgba(201,169,110,0.5) !important;
  color: #3D2B1F !important;
}
input::placeholder { color: rgba(61,43,31,0.4) !important; }
select option { background: #F2EBD9; color: #3D2B1F; }

/* ── Primary Buttons ── */
.btn-primary, .cta-btn,
[class*="-btn-primary"], #cta-btn {
  background: #3D2B1F !important;
  color: #E8DCC4 !important;
  border: none !important;
}

/* ── Secondary Buttons ── */
.btn-secondary, [class*="-btn-secondary"] {
  background: transparent !important;
  color: #3D2B1F !important;
  border: 1px solid rgba(61,43,31,0.4) !important;
}

/* ── Tabs (hidden for sequential nav, but styled as fallback) ── */
.result-chapter-tabs, #chapter-tabs {
  display: none !important;
}

.chapter-tab {
  color: rgba(61,43,31,0.45) !important;
  border-bottom-color: transparent !important;
  font-family: 'DM Mono', monospace !important;
}
.chapter-tab.active {
  color: #C9A96E !important;
  border-bottom-color: #C9A96E !important;
}

/* ── Dividers ── */
hr, [class*="-divider"], [class*="-separator"] {
  border-color: rgba(201,169,110,0.3) !important;
}

/* ── Loading screen ── */
#screen-loading {
  background: #E8DCC4 !important;
}
[class*="loading-"], [class*="-loading"] {
  color: #3D2B1F !important;
}

/* ── Home SVG / Canvas backgrounds ── */
#home-bg-svg { opacity: 0.15; filter: sepia(1) hue-rotate(10deg); }
#hero-canvas { opacity: 0.1; }

/* ── Input screen ink-wash override ── */
#screen-input::before {
  background: rgba(139,0,0,0.04) !important;
}
#screen-input::after {
  background: rgba(61,43,31,0.02) !important;
}

/* ── Seal header (input screen) ── */
.ledger-seal-header {
  display: flex;
  justify-content: center;
  padding: 24px 0 8px;
  opacity: 0.7;
}

/* ── Sequential Chapter Navigation Button ── */
.ledger-next-btn {
  display: block;
  width: calc(100% - 48px);
  margin: 32px 24px 48px;
  padding: 14px 24px;
  background: #3D2B1F;
  color: #E8DCC4;
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-style: italic;
  letter-spacing: 0.05em;
  border: none;
  border-radius: 0;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s, color 0.2s;
}
.ledger-next-btn:hover {
  background: #C9A96E;
  color: #3D2B1F;
}

/* ── Narrative bridge buttons override ── */
.btn-narrative-next {
  background: #3D2B1F !important;
  color: #E8DCC4 !important;
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 16px !important;
  font-style: italic !important;
  font-weight: 400 !important;
  letter-spacing: 0.05em !important;
  border: none !important;
  border-radius: 0 !important;
}
.btn-narrative-next:hover {
  background: #5C4A3A !important;
  color: #E8DCC4 !important;
}
.btn-narrative-next:active {
  opacity: 0.8 !important;
}

/* ══════════════════════════════════════════════════════════
   LEDGER INPUT FORM — PC VARIANT (Phase 1 ①)
   Concept C · Parchment #E8DCC4 · Seal Red #8B0000
   ══════════════════════════════════════════════════════════ */

/* Page wrapper */
.ldg-input-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px 80px;
  padding-top: 48px;
  font-family: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
}

/* ── Document Header ── */
.ldg-input-rule-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.ldg-input-rule-line {
  flex: 1;
  height: 1px;
  background: rgba(61,43,31,0.28);
}
.ldg-input-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  gap: 16px;
}
.ldg-input-header-border {
  width: 100%;
  height: 2px;
  background: #3D2B1F;
}
.ldg-input-folio {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #5A3D2B;
  white-space: nowrap;
}
.ldg-input-folio strong { color: #3D2B1F; font-weight: 600; }
.ldg-input-folio a { color: inherit; }
.ldg-input-wordmark-center { text-align: center; flex: 1; }
.ldg-input-wordmark {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #3D2B1F;
  line-height: 1;
  display: block;
}
.ldg-input-subtitle {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #5E4B3B;
  margin-top: 4px;
  display: block;
}
/* Seal */
.ldg-input-seal { display: flex; flex-direction: column; align-items: center; gap: 3px; flex-shrink: 0; }
.ldg-input-seal-circle {
  width: 48px; height: 48px;
  border: 2px solid #8B0000;
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative;
  transform: rotate(-8deg);
  background: transparent;
  animation: ldgStampIn 0.5s cubic-bezier(0.34,1.56,0.64,1) 0.3s both;
}
.ldg-input-seal-circle::before {
  content: ''; position: absolute; inset: 3px;
  border: 1px solid #8B0000; border-radius: 50%; opacity: 0.35;
}
.ldg-input-seal-letter {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px; font-weight: 700; color: #8B0000; line-height: 1; position: relative; z-index: 1;
}
.ldg-input-seal-hanzi {
  font-family: 'DM Mono', monospace; font-size: 7px; color: #8B0000;
  letter-spacing: 0.12em; text-transform: uppercase; position: relative; z-index: 1;
}

/* ── Meta row ── */
.ldg-input-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(61,43,31,0.18);
  flex-wrap: wrap;
  gap: 6px;
}
.ldg-input-meta-item {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #5E4B3B;
}
.ldg-input-meta-item span { color: #3D2B1F; font-weight: 500; }
.ldg-input-meta-status span { color: #8B0000; }

/* ── Two-column body ── */
.ldg-input-body {
  display: grid;
  grid-template-columns: 60fr 40fr;
  min-height: 520px;
  border-bottom: 1px solid rgba(61,43,31,0.18);
  gap: 0;
}

/* ── Left column (form) ── */
.ldg-input-col-left {
  padding: 48px 48px 48px 0;
  border-right: 1px solid rgba(61,43,31,0.18);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent, transparent 28px,
    rgba(61,43,31,0.04) 28px, rgba(61,43,31,0.04) 29px
  );
  background-position: 0 52px;
}
.ldg-input-section-label {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #5E4B3B;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.ldg-input-section-label::after {
  content: ''; flex: 1; max-width: 60px; height: 1px; background: rgba(61,43,31,0.18);
}
.ldg-input-headline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 500;
  font-style: italic;
  line-height: 1.22;
  color: #3D2B1F;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}
.ldg-input-ornament {
  display: flex; align-items: center; gap: 10px; margin-bottom: 24px;
}
.ldg-input-ornament-line {
  flex: 1; height: 1px; background: rgba(61,43,31,0.18); max-width: 48px;
}
.ldg-input-ornament-mark {
  width: 5px; height: 5px; border: 1px solid #5E4B3B; transform: rotate(45deg);
}
.ldg-input-sub-copy {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 15px;
  line-height: 1.75;
  color: #5A3D2B;
  margin-bottom: 36px;
}

/* ── Form ── */
.ldg-input-form { display: flex; flex-direction: column; gap: 28px; }
.ldg-input-field-group { display: flex; flex-direction: column; gap: 8px; }
.ldg-input-field-label {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #5E4B3B;
  display: block;
}
.ldg-input-optional {
  font-weight: 400;
  color: rgba(154,138,122,0.65);
  letter-spacing: 0.1em;
}

/* Input field — bottom-border style (Lira P1 spec) */
.ldg-input-field {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(61,43,31,0.25);
  padding: 6px 0 5px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 16px;
  color: #3D2B1F;
  outline: none;
  transition: border-bottom-color 0.2s ease;
  box-sizing: border-box;
}
.ldg-input-field::placeholder { color: rgba(61,43,31,0.3); font-style: italic; }
.ldg-input-field:focus { border-bottom-color: #8B0000; }
.ldg-input-field.filled { border-bottom-color: rgba(201,169,110,0.6); }

/* Date row */
.ldg-input-date-row, .ldg-input-time-row {
  display: grid; gap: 12px;
}
.ldg-input-date-row { grid-template-columns: 2fr 1.5fr 1fr; }
.ldg-input-time-row { grid-template-columns: 1fr 1fr; }

/* Select */
.ldg-input-select-wrap { position: relative; }
.ldg-input-select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(61,43,31,0.25);
  padding: 6px 24px 5px 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 15px;
  color: #3D2B1F;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  cursor: pointer;
  transition: border-bottom-color 0.2s ease;
}
.ldg-input-select:focus { border-bottom-color: #8B0000; }
.ldg-input-select option { background: #F2EBD9; color: #3D2B1F; }
.ldg-input-select-caret {
  position: absolute;
  right: 4px; top: 50%; transform: translateY(-50%);
  width: 12px; height: 12px;
  color: rgba(61,43,31,0.4);
  pointer-events: none;
}

/* Time unknown checkbox */
.ldg-input-time-unknown-wrap { margin-top: 10px; }
.ldg-input-checkbox-label {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
}
.ldg-input-checkbox-native:checked ~ .ldg-input-checkbox-box { border-color: #8B0000; background: rgba(139,0,0,0.06); }
.ldg-input-checkbox-native:checked ~ .ldg-input-checkbox-box .ldg-input-checkbox-check { opacity: 1; }
.ldg-input-checkbox-box {
  width: 14px; height: 14px;
  border: 1px solid rgba(61,43,31,0.28);
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.ldg-input-checkbox-check { width: 10px; height: 10px; opacity: 0; transition: opacity 0.15s; }
.ldg-input-checkbox-text {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(61,43,31,0.45);
}

/* City input with icon */
.ldg-input-city-wrap { position: relative; }
.ldg-input-city-icon {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; color: rgba(61,43,31,0.4); pointer-events: none;
}
.ldg-input-field-city { padding-left: 22px; }

/* CTA zone */
.ldg-input-cta-zone { padding-top: 8px; display: flex; flex-direction: column; gap: 16px; }
.ldg-input-cta-btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 36px 13px;
  background: #3D2B1F;
  color: #E8DCC4;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
  min-height: 48px;
}
.ldg-input-cta-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: #5A3D2B;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}
.ldg-input-cta-btn:hover::before { transform: translateX(0); }
.ldg-input-cta-btn:active { transform: scale(0.98); }
.ldg-input-cta-text { position: relative; z-index: 1; }
.ldg-input-cta-arrow {
  position: relative; z-index: 1;
  width: 16px; height: 16px;
  transition: transform 0.25s ease;
}
.ldg-input-cta-btn:hover .ldg-input-cta-arrow { transform: translateX(4px); }
.ldg-input-privacy-note {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(61,43,31,0.4);
  display: flex; align-items: center; gap: 6px;
}

/* ── Right column (certificate) ── */
.ldg-input-col-right {
  padding: 40px 0 40px 40px;
  display: flex; flex-direction: column;
}
.ldg-input-certificate {
  border: 1px solid rgba(61,43,31,0.2);
  padding: 24px 24px 28px;
  flex: 1;
  display: flex; flex-direction: column;
  background: rgba(210,195,168,0.12);
  position: relative;
}
/* Corner marks */
.ldg-cert-corner { position: absolute; width: 14px; height: 14px; border-color: #5A3D2B; border-style: solid; }
.ldg-cert-corner-tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.ldg-cert-corner-br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

.ldg-cert-title {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 9px; letter-spacing: 0.28em; text-transform: uppercase;
  color: #5E4B3B; text-align: center; margin-bottom: 4px;
}
.ldg-cert-subtitle {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 14px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: #3D2B1F; text-align: center; margin-bottom: 20px;
}
.ldg-cert-rule { width: 100%; height: 1px; background: rgba(61,43,31,0.18); margin-bottom: 22px; }

.ldg-cert-field { margin-bottom: 20px; }
.ldg-cert-field-label {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 8px; letter-spacing: 0.22em; text-transform: uppercase;
  color: #5E4B3B; margin-bottom: 5px; display: block;
}
.ldg-cert-field-input {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 13px; letter-spacing: 0.08em;
  color: #3D2B1F; display: block; width: 100%;
  background: transparent; border: none; border-bottom: 1px solid rgba(61,43,31,0.18);
  padding: 3px 0 2px; outline: none; box-sizing: border-box; cursor: default;
  transition: color 0.2s ease;
}
.ldg-cert-field-input::placeholder { color: rgba(61,43,31,0.2); font-style: italic; }
.ldg-cert-field-input.has-value { color: #3D2B1F; font-style: normal; }

.ldg-cert-number-box {
  border: 1px solid rgba(61,43,31,0.18);
  padding: 10px 12px; margin: 18px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: rgba(232,220,196,0.5);
}
.ldg-cert-number-label {
  font-family: 'DM Mono', monospace; font-size: 8px; letter-spacing: 0.2em;
  text-transform: uppercase; color: #5E4B3B;
}
.ldg-cert-number-value {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 11px; letter-spacing: 0.15em; color: #5A3D2B; font-style: italic;
}

.ldg-cert-seal-space {
  margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(61,43,31,0.12);
  display: flex; align-items: center; gap: 12px;
}
.ldg-cert-seal-circle {
  width: 52px; height: 52px; border: 2px solid rgba(139,0,0,0.6); border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transform: rotate(-5deg); flex-shrink: 0; position: relative;
}
.ldg-cert-seal-circle::before {
  content: ''; position: absolute; inset: 3px;
  border: 1px solid rgba(139,0,0,0.3); border-radius: 50%;
}
.ldg-cert-seal-letter {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 17px; font-weight: 700; color: #8B0000; line-height: 1;
}
.ldg-cert-seal-hanzi {
  font-family: 'DM Mono', monospace; font-size: 7px; color: rgba(139,0,0,0.7);
  letter-spacing: 0.1em;
}
.ldg-cert-issuer {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 8px; letter-spacing: 0.14em; text-transform: uppercase;
  color: #5E4B3B; line-height: 1.7;
}

/* ── Footer ── */
.ldg-input-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0 0; gap: 16px;
}
.ldg-input-footer-text {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: #5E4B3B;
}
.ldg-input-footer-rule {
  flex: 1; height: 1px; background: rgba(61,43,31,0.12); max-width: 200px;
}

/* ── Entrance animations ── */
@keyframes ldgStampIn {
  0%   { opacity: 0; transform: rotate(-8deg) scale(1.3); }
  60%  { opacity: 1; transform: rotate(-8deg) scale(0.95); }
  100% { opacity: 1; transform: rotate(-8deg) scale(1); }
}
@keyframes ldgFadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ldgFadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ldg-input-doc-header  { animation: ldgFadeInDown 0.7s cubic-bezier(0.25,0.46,0.45,0.94) 0.1s both; }
.ldg-input-meta-row    { animation: ldgFadeInDown 0.6s cubic-bezier(0.25,0.46,0.45,0.94) 0.3s both; }
.ldg-input-section-label { animation: ldgFadeInUp 0.6s cubic-bezier(0.25,0.46,0.45,0.94) 0.5s both; }
.ldg-input-headline    { animation: ldgFadeInUp 0.9s cubic-bezier(0.25,0.46,0.45,0.94) 0.65s both; }
.ldg-input-col-right   { animation: ldgFadeInDown 0.9s cubic-bezier(0.25,0.46,0.45,0.94) 0.8s both; }

/* ── Responsive — tablet (768px–1023px) ── */
@media (min-width: 769px) and (max-width: 1023px) {
  .ldg-input-page { padding: 32px 24px 60px; }
  .ldg-input-body { grid-template-columns: 1fr; }
  .ldg-input-col-left { border-right: none; border-bottom: 1px solid rgba(61,43,31,0.18); padding: 36px 0; }
  .ldg-input-col-right { padding: 32px 0 0; }
  .ldg-input-meta-row { display: none; }
}
/* ── Desktop ≥1024px ── */
@media (min-width: 1024px) {
  .ldg-input-col-left { padding-left: 8px; }
}
/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .ldg-input-doc-header, .ldg-input-meta-row, .ldg-input-section-label,
  .ldg-input-headline, .ldg-input-col-right, .ldg-input-seal-circle {
    animation: none !important;
  }
}

/* ── Bottom nav ── */
.bottom-nav, #bottom-nav {
  background: #E8DCC4 !important;
  border-top-color: rgba(201,169,110,0.3) !important;
}
/* Bug fix: .bnav-btn was using white text (rgba(232,220,196)) invisible on parchment */
.bottom-nav .nav-item, .bnav-item, .bnav-btn {
  color: rgba(61,43,31,0.5) !important;
  background: transparent !important;
  border-color: transparent !important;
}
.bnav-icon {
  color: rgba(61,43,31,0.5) !important;
}
.bnav-label {
  color: rgba(61,43,31,0.5) !important;
}
.bottom-nav .nav-item.active, .bnav-item.active, .bnav-btn.active {
  background: rgba(139,0,0,0.07) !important;
  color: #8B0000 !important;
  border-color: rgba(139,0,0,0.18) !important;
}
.bnav-btn.active .bnav-icon,
.bnav-btn.active .bnav-label {
  color: #8B0000 !important;
}

/* ── Paywall overlay ── */
#paywall-overlay {
  background: rgba(232,220,196,0.95) !important;
}
#paywall-overlay [class*="-card"],
#paywall-overlay [class*="-panel"] {
  background: #F2EBD9 !important;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #E8DCC4; }
::-webkit-scrollbar-thumb { background: rgba(201,169,110,0.4); border-radius: 3px; }

/* ── Chapter watermark ── */
.chapter-watermark {
  color: rgba(201,169,110,0.12) !important;
}

/* ── Element colors stay as-is (Wood/Fire/Earth/Metal/Water) ── */

/* ═══════════════════════════════════════════════════════════════
   PC VARIANT INPUT — Ledger Override
   ═══════════════════════════════════════════════════════════════ */

/* PC nav bar */
#pc-v-input > nav {
  background: rgba(232,220,196,0.95) !important;
  border-bottom-color: rgba(201,169,110,0.3) !important;
}
#pc-v-input > nav a {
  color: #3D2B1F !important;
}
#pc-v-input > nav a:hover {
  color: #C9A96E !important;
}
#pc-v-input > nav .text-foreground\/60,
#pc-v-input > nav [class*="text-foreground"] {
  color: #5A3D2B !important;
}

/* PC ambient blobs → transparent on Ledger */
#pc-v-input > .fixed.rounded-full.blur-\[120px\],
#pc-v-input > .fixed.rounded-full.blur-\[150px\],
#pc-v-input > .fixed.pointer-events-none.opacity-20,
#pc-v-input > .fixed.scanlines {
  display: none !important;
}

/* PC decorative circles */
#pc-v-input main .absolute.rounded-full.border {
  border-color: rgba(201,169,110,0.08) !important;
}

/* PC form container */
#pc-v-input main > div[class*="bg-gradient"] {
  background: #F2EBD9 !important;
  border: 1px solid rgba(201,169,110,0.3) !important;
  box-shadow: 0 4px 30px rgba(61,43,31,0.08) !important;
}

/* PC form heading */
#pc-v-input h1 {
  font-family: 'Cormorant Garamond', serif !important;
  font-style: italic !important;
  color: #3D2B1F !important;
}
#pc-v-input .font-mono {
  font-family: 'DM Mono', monospace !important;
}

/* PC form subtext */
#pc-v-input p[class*="text-foreground"] {
  color: rgba(61,43,31,0.5) !important;
}

/* PC labels */
#pc-v-input label {
  color: #C9A96E !important;
  font-family: 'DM Mono', monospace !important;
}
#pc-v-input label span {
  color: rgba(61,43,31,0.35) !important;
}

/* PC inputs & selects */
#pc-v-input input[type="text"],
#pc-v-input select {
  background: #E8DCC4 !important;
  border: 1px solid rgba(201,169,110,0.4) !important;
  color: #3D2B1F !important;
}
#pc-v-input input::placeholder {
  color: rgba(61,43,31,0.35) !important;
}
#pc-v-input select option {
  background: #F2EBD9 !important;
  color: #3D2B1F !important;
}

/* PC chevron icons */
#pc-v-input svg[class*="text-foreground"] {
  color: rgba(61,43,31,0.4) !important;
}

/* PC checkbox */
#pc-v-input .peer-checked\:bg-white\/20 {
  background: rgba(61,43,31,0.2) !important;
}
#pc-v-input div[class*="border-white"] {
  border-color: rgba(201,169,110,0.3) !important;
}
#pc-v-input span[class*="text-foreground\/40"] {
  color: rgba(61,43,31,0.4) !important;
}

/* PC location icon */
#pc-v-input .text-foreground\/40 {
  color: rgba(61,43,31,0.4) !important;
}

/* PC submit button */
#pc-v-input button[onclick="submitPCForm()"] {
  background: #3D2B1F !important;
  color: #E8DCC4 !important;
  border: 1px solid #3D2B1F !important;
  box-shadow: none !important;
}
#pc-v-input button[onclick="submitPCForm()"]:hover {
  background: #C9A96E !important;
  color: #3D2B1F !important;
  border-color: #C9A96E !important;
}

/* PC privacy note */
#pc-v-input .text-foreground\/40 {
  color: rgba(61,43,31,0.4) !important;
}

/* PC nav divider line */
#pc-v-input .bg-white\/10 {
  background: rgba(201,169,110,0.3) !important;
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE INPUT — Ledger Override
   ═══════════════════════════════════════════════════════════════ */

.input-top-bar {
  background: rgba(232,220,196,0.95) !important;
}
.input-back {
  color: #5A3D2B !important;
  background: rgba(232,220,196,0.9) !important;
}
.brand-wordmark {
  color: #3D2B1F !important;
}

/* Progressive disclosure form */
.pd-input-container {
  background: #E8DCC4 !important;
}
.pd-step-title {
  font-family: 'Cormorant Garamond', serif !important;
  font-style: italic !important;
  color: #3D2B1F !important;
}
.pd-step-helper {
  color: #5A3D2B !important;
}
.pd-step-text {
  color: #C9A96E !important;
  font-family: 'DM Mono', monospace !important;
}
.pd-progress-bar {
  background: rgba(201,169,110,0.15) !important;
}
.pd-progress-fill {
  background: #C9A96E !important;
}
.pd-cta-btn {
  background: #3D2B1F !important;
  color: #E8DCC4 !important;
  border: none !important;
}
.pd-cta-btn:hover {
  background: #C9A96E !important;
  color: #3D2B1F !important;
}
.pd-cta-btn:disabled {
  background: rgba(61,43,31,0.2) !important;
  color: rgba(61,43,31,0.4) !important;
}
.pd-back-btn {
  color: #5A3D2B !important;
}
.pd-subtext {
  color: rgba(61,43,31,0.4) !important;
}

/* Mobile date fields */
.date-field {
  background: #E8DCC4 !important;
  border-color: rgba(201,169,110,0.4) !important;
  color: #3D2B1F !important;
}
.date-separator {
  color: rgba(201,169,110,0.5) !important;
}
.date-picker-link {
  color: #C9A96E !important;
}

/* Time choice buttons */
.pd-time-choice-btn {
  background: #F2EBD9 !important;
  border-color: rgba(201,169,110,0.3) !important;
  color: #3D2B1F !important;
}
.pd-time-choice-btn.active,
.pd-time-choice-btn:hover {
  border-color: #C9A96E !important;
  background: rgba(201,169,110,0.12) !important;
}
.pd-time-range-btn {
  background: #F2EBD9 !important;
  border-color: rgba(201,169,110,0.3) !important;
  color: #3D2B1F !important;
}
.pd-time-range-btn.active,
.pd-time-range-btn:hover {
  border-color: #C9A96E !important;
  background: rgba(201,169,110,0.12) !important;
}

/* City search */
.pd-city-input {
  background: #E8DCC4 !important;
  border-color: rgba(201,169,110,0.4) !important;
  color: #3D2B1F !important;
}
.pd-city-results {
  background: #F2EBD9 !important;
  border-color: rgba(201,169,110,0.3) !important;
}
.pd-city-selected {
  background: rgba(201,169,110,0.12) !important;
  border-color: rgba(201,169,110,0.3) !important;
  color: #3D2B1F !important;
}
.pd-skip-link {
  color: #C9A96E !important;
}
.pd-name-input {
  background: #E8DCC4 !important;
  border-color: rgba(201,169,110,0.4) !important;
  color: #3D2B1F !important;
}

/* Time display */
.pd-time-display {
  background: #F2EBD9 !important;
  border-color: rgba(201,169,110,0.3) !important;
  color: #3D2B1F !important;
}
.pd-time-hint, .pd-time-range-label, .pd-time-helper {
  color: #5A3D2B !important;
}

/* ═══════════════════════════════════════════════════════════════
   PC VARIANT LOADING — Ledger Override
   ═══════════════════════════════════════════════════════════════ */

/* Hide dark ambient blobs */
#pc-v-loading > .fixed.rounded-full,
#pc-v-loading > .noise-bg,
#pc-v-loading > .fixed.scanlines {
  display: none !important;
}

/* Loading text */
#pc-v-loading h1 {
  font-family: 'Cormorant Garamond', serif !important;
  color: #3D2B1F !important;
}

/* Element labels */
#pc-v-loading .font-mono {
  font-family: 'DM Mono', monospace !important;
  color: rgba(61,43,31,0.5) !important;
}

/* Element dots */
#pc-v-loading .bg-foreground {
  background: rgba(61,43,31,0.4) !important;
}
#pc-v-loading .bg-cinnabar {
  background: #8B0000 !important;
}

/* Loading progress bar bg */
#pc-v-loading .bg-white\/\[0\.05\] {
  background: rgba(201,169,110,0.15) !important;
}

/* Loading progress bar fill */
#pc-v-loading .bg-cinnabar.animate-progress {
  background: #8B0000 !important;
}

/* Loading sub text */
#pc-v-loading .text-foreground\/30 {
  color: rgba(61,43,31,0.3) !important;
}

/* Center dot and ring */
#pc-v-loading .border-white\/10 {
  border-color: rgba(201,169,110,0.15) !important;
}

/* Element label lines */
#pc-v-loading .bg-white\/20,
#pc-v-loading .bg-white\/40,
#pc-v-loading .bg-white\/60 {
  background: rgba(201,169,110,0.3) !important;
}

/* Fire label strong */
#pc-v-loading .text-white.font-bold {
  color: #3D2B1F !important;
}
#pc-v-loading .border-white {
  border-color: rgba(201,169,110,0.5) !important;
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE LOADING — Ledger Override
   ═══════════════════════════════════════════════════════════════ */

.loading-brand {
  color: #5A3D2B !important;
}
.loading-sigil {
  color: #8B0000 !important;
}
.loading-text {
  color: #3D2B1F !important;
  font-family: 'Cormorant Garamond', serif !important;
}

/* ═══════════════════════════════════════════════════════════════
   RESULT SCREEN — Ledger Override
   ═══════════════════════════════════════════════════════════════ */

/* Bug fix: ensure result screen scrolls properly (scroll 안 내려감 fix) */
#screen-result {
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  padding-bottom: 140px !important;
}

/* Sticky header */
.result-sticky-header {
  background: rgba(232,220,196,0.95) !important;
  backdrop-filter: blur(20px) saturate(1.2) !important;
  box-shadow: 0 1px 0 0 rgba(201,169,110,0.2) !important;
}
.result-top-bar {
  color: #5A3D2B !important;
}
.result-top-bar h2,
#result-header-title {
  color: #3D2B1F !important;
  font-family: 'Cormorant Garamond', serif !important;
}
.result-top-bar .ph-back,
.result-top-bar .compat-back-btn {
  color: #5A3D2B !important;
}

/* Hero card */
.result-hero {
  background: #F2EBD9 !important;
  border: 1px solid rgba(201,169,110,0.4) !important;
}

/* Hero text */
.hero-tagline {
  color: #3D2B1F !important;
  font-family: 'Cormorant Garamond', serif !important;
}
.hero-badge {
  color: #C9A96E !important;
}
.hero-keywords-row {
  color: #5A3D2B !important;
}

/* Section labels */
.result-section-label {
  color: #8B0000 !important;
  font-family: 'DM Mono', monospace !important;
}

/* Section cards */
.result-section {
  color: #3D2B1F !important;
}

/* Chart cards */
.chart-card {
  background: #F2EBD9 !important;
  border-color: rgba(201,169,110,0.2) !important;
}
.chart-card.day-card {
  border-color: #8B0000 !important;
}

/* Chart theme labels */
.chart-theme-lbl {
  color: #C9A96E !important;
  font-family: 'DM Mono', monospace !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  font-size: 0.5rem !important;
  letter-spacing: 2px !important;
  line-height: 1.3 !important;
}
.chart-theme-sub {
  color: rgba(61,43,31,0.5) !important;
}

/* Chart card — prevent text clipping */
.chart-card {
  overflow: visible !important;
  padding: 0 4px !important;
}

/* Chart card text — element colors applied via .el-fire/.el-earth etc */
.cc-hanja {
  font-size: 22px !important;
  margin-bottom: 6px !important;
}
.cc-pron-el {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-style: italic !important;
  font-size: 10px !important;
  margin-bottom: 10px !important;
}
.cc-top-ss, .cc-bot-ss {
  color: #5A3D2B !important;
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 10px !important;
  line-height: 1.3 !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
}
.cc-top-mean, .cc-bot-mean {
  color: rgba(61,43,31,0.5) !important;
}
.cc-reading-label {
  color: rgba(61,43,31,0.4) !important;
  font-family: 'DM Mono', monospace !important;
  font-size: 8px !important;
}
.cc-reading-text {
  color: #3D2B1F !important;
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 9px !important;
  -webkit-line-clamp: 3 !important;
}
.cc-divider {
  border-color: rgba(201,169,110,0.2) !important;
  margin: 14px 0 !important;
}

/* Rarity banner */
.rarity-banner {
  background: #F2EBD9 !important;
  border-color: rgba(201,169,110,0.3) !important;
  color: #3D2B1F !important;
}
.rarity-banner-label {
  color: rgba(61,43,31,0.5) !important;
  font-family: 'DM Mono', monospace !important;
}
.rarity-banner-pct {
  color: #3D2B1F !important;
}
.rarity-banner-sub {
  color: #5A3D2B !important;
}

/* Pillar interpretation */
.pillar-interp-block {
}
.pillar-interp-label {
  color: #8B0000 !important;
  font-family: 'Cormorant Garamond', Georgia, serif !important;
}
.pillar-interp-text {
  color: rgba(61,43,31,0.7) !important;
}

/* Prologue blocks */
.prologue-block-label {
  color: #8B0000 !important;
  font-family: 'DM Mono', monospace !important;
}
.prologue-shape-text,
.prologue-tension-text {
  color: #3D2B1F !important;
}
.prologue-essence-tags {
  color: #5A3D2B !important;
}
.prologue-famous-card {
  background: #F2EBD9 !important;
  border-color: rgba(201,169,110,0.3) !important;
}

/* Narrative bridge */
.narrative-bridge {
  color: #3D2B1F !important;
}
.bridge-text {
  color: #5A3D2B !important;
  font-family: 'Cormorant Garamond', serif !important;
}

/* Chapter content */
#ch1-content, #ch2-content, #ch3-content {
  color: #3D2B1F !important;
}

/* Result footer */
.result-footer {
  background: rgba(232,220,196,0.95) !important;
}
.btn-footer {
  color: #3D2B1F !important;
  border-color: rgba(201,169,110,0.3) !important;
}
.btn-footer:hover {
  background: rgba(201,169,110,0.1) !important;
}

/* Revisit trigger */
.revisit-trigger p {
  color: #5A3D2B !important;
}

/* Section divider SVGs */
.section-divider svg,
.section-geo-divider svg {
  opacity: 0.6;
}
.divider-symbol {
  color: #C9A96E !important;
}
.divider-line {
  background: rgba(201,169,110,0.3) !important;
}

/* Reading progress bar */
#reading-progress-bar {
  background: rgba(201,169,110,0.12) !important;
}
#reading-progress-fill {
  background: rgba(201,169,110,0.6) !important;
}

/* Sticky paywall CTA */
.sticky-paywall-cta {
  background: rgba(232,220,196,0.95) !important;
}
.sticky-paywall-btn {
  background: #3D2B1F !important;
  color: #E8DCC4 !important;
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 16px !important;
  font-style: italic !important;
  font-weight: 400 !important;
  letter-spacing: 0.05em !important;
  border: none !important;
  border-radius: 0 !important;
}
.sticky-paywall-btn:hover {
  background: #5C4A3A !important;
}
.sticky-paywall-btn:active {
  opacity: 0.8 !important;
}

/* ═══════════════════════════════════════════════════════════════
   LOGIN SCREEN — Ledger Override
   ═══════════════════════════════════════════════════════════════ */

#screen-login {
  background: #E8DCC4 !important;
}
.login-wrap {
  background: #E8DCC4 !important;
}
.login-logo {
  color: #C9A96E !important;
}
.login-title {
  color: #3D2B1F !important;
  font-family: 'Cormorant Garamond', serif !important;
}
.login-sub {
  color: #5A3D2B !important;
}
.login-opt {
  background: #F2EBD9 !important;
  border: 1px solid rgba(201,169,110,0.4) !important;
  color: #3D2B1F !important;
}
.login-opt.google {
  background: #F2EBD9 !important;
  border-color: rgba(201,169,110,0.5) !important;
}
.login-arrow {
  color: rgba(61,43,31,0.3) !important;
}
#screen-login .back-btn {
  color: #5A3D2B !important;
}
#screen-login .back-btn:hover {
  color: #3D2B1F !important;
}

/* Email form */
#login-email, #login-password {
  background: #E8DCC4 !important;
  border: 1px solid rgba(201,169,110,0.4) !important;
  color: #3D2B1F !important;
}
.btn-email-submit {
  background: rgba(139,0,0,0.12) !important;
  border: 1px solid rgba(201,169,110,0.4) !important;
  color: #8B0000 !important;
}
.btn-email-signup {
  color: #5A3D2B !important;
}

/* ═══════════════════════════════════════════════════════════════
   PROFILES SCREEN — Ledger Override
   ═══════════════════════════════════════════════════════════════ */

#screen-profiles {
  background: #E8DCC4 !important;
}
.profiles-header {
  background: rgba(232,220,196,0.95) !important;
  border-bottom-color: rgba(201,169,110,0.3) !important;
}
.profiles-header h2 {
  color: #3D2B1F !important;
  font-family: 'Cormorant Garamond', serif !important;
}
.profiles-header .ph-back {
  color: #5A3D2B !important;
}
.profile-card {
  background: #F2EBD9 !important;
  border-color: rgba(201,169,110,0.3) !important;
}
.profile-card:active {
  border-color: #C9A96E !important;
}
.pc-name {
  color: #8B0000 !important;
  border-bottom-color: rgba(201,169,110,0.5) !important;
}
.pc-tagline {
  color: #5A3D2B !important;
}
.pc-action {
  color: #C9A96E !important;
}
.pc-delete {
  color: rgba(61,43,31,0.3) !important;
}
.pc-delete:hover {
  color: rgba(61,43,31,0.7) !important;
}
.profiles-empty, .profiles-loading {
  color: #5A3D2B !important;
}
.btn-new-profile {
  background: #3D2B1F !important;
  color: #E8DCC4 !important;
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 16px !important;
  font-style: italic !important;
  font-weight: 400 !important;
  letter-spacing: 0.05em !important;
  border: none !important;
  border-radius: 0 !important;
}
.btn-new-profile:hover {
  background: #5C4A3A !important;
}
.btn-new-profile:active {
  opacity: 0.8 !important;
}

/* ═══════════════════════════════════════════════════════════════
   PROFILE MENU — Ledger Override
   ═══════════════════════════════════════════════════════════════ */

#screen-profile-menu {
  background: #E8DCC4 !important;
}
.pm-item {
  border-color: rgba(201,169,110,0.2) !important;
  color: #3D2B1F !important;
}
.pm-label {
  color: #3D2B1F !important;
}
.pm-arrow {
  color: rgba(61,43,31,0.3) !important;
}

/* ═══════════════════════════════════════════════════════════════
   BOTTOM NAV — Ledger Override (extended)
   ═══════════════════════════════════════════════════════════════ */

#bottom-nav {
  background: rgba(8,8,12,0.96) !important;
  border-top: 1px solid rgba(139,0,0,0.3) !important;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.5) !important;
}
.bnav-btn {
  border: none !important;
  background: transparent !important;
  color: rgba(232,220,196,0.5) !important;
}
.bnav-btn.active {
  background: rgba(139,0,0,0.12) !important;
  color: rgba(232,220,196,0.95) !important;
  border: 1px solid rgba(139,0,0,0.25) !important;
  box-shadow: none !important;
}

/* ═══════════════════════════════════════════════════════════════
   COMPAT SCREENS — Ledger Override
   ═══════════════════════════════════════════════════════════════ */

#screen-compat-list, #screen-compat-input, #screen-compat-result, #screen-compat-setup {
  background: #E8DCC4 !important;
}
.cl-header, .compat-header {
  background: rgba(232,220,196,0.95) !important;
  border-bottom-color: rgba(201,169,110,0.3) !important;
}
.cl-title {
  color: #3D2B1F !important;
}
.cl-back {
  color: #5A3D2B !important;
}

/* ═══════════════════════════════════════════════════════════════
   HOME TOP BAR — Ledger Override
   ═══════════════════════════════════════════════════════════════ */

.home-top-bar {
  background: rgba(232,220,196,0.85) !important;
  border-bottom-color: rgba(201,169,110,0.2) !important;
}

/* ═══════════════════════════════════════════════════════════════
   AUTH UI — Ledger Override
   ═══════════════════════════════════════════════════════════════ */

#top-auth-btn .auth-icon {
  background: rgba(201,169,110,0.08) !important;
  border-color: rgba(201,169,110,0.3) !important;
  color: #5A3D2B !important;
}

/* ═══════════════════════════════════════════════════════════════
   MODAL — Ledger Override
   ═══════════════════════════════════════════════════════════════ */

.modal-overlay {
  background: rgba(61,43,31,0.6) !important;
}
.modal-sheet {
  background: #F2EBD9 !important;
}
.modal-title {
  color: #3D2B1F !important;
}
.modal-sub {
  color: #5A3D2B !important;
}
.modal-close {
  color: rgba(61,43,31,0.4) !important;
}

/* ═══════════════════════════════════════════════════════════════
   PC HOME VARIANT — Ledger Override
   ═══════════════════════════════════════════════════════════════ */

#pc-v-home {
  background: #E8DCC4 !important;
}
#pc-v-home > .fixed.rounded-full,
#pc-v-home > .noise-bg,
#pc-v-home > .fixed.scanlines {
  display: none !important;
}

/* PC orbital element labels */
#pc-v-home .text-foreground\/70,
#pc-v-home [class*="text-foreground"] {
  color: rgba(61,43,31,0.5) !important;
}
#pc-v-home .bg-foreground {
  background: rgba(61,43,31,0.4) !important;
}
#pc-v-home .bg-foreground\/80 {
  background: rgba(61,43,31,0.3) !important;
}

/* ═══════════════════════════════════════════════════════════════
   BODY OVERRIDES — Kill dark bg image/gradients
   ═══════════════════════════════════════════════════════════════ */

body {
  background-image: none !important;
}
body::before {
  opacity: 0.01 !important;
}
body::after {
  display: none !important;
}

/* Selection color */
::selection {
  background: rgba(201,169,110,0.35) !important;
  color: #3D2B1F !important;
}

/* Saved profile cards */
.saved-profile-card {
  background: #F2EBD9 !important;
  border-color: rgba(201,169,110,0.3) !important;
}
.saved-profile-name {
  color: #C9A96E !important;
}
.saved-profile-sub {
  color: #5A3D2B !important;
}
.saved-profile-cta {
  color: #C9A96E !important;
}

/* ═══════════════════════════════════════════════════════════════
   ADDITIONAL TEXT COLOR OVERRIDES
   (main CSS has hardcoded rgba(255,255,255,...) values)
   ═══════════════════════════════════════════════════════════════ */

.tagline-you {
  color: rgba(61,43,31,0.4) !important;
}
.rarity-banner-label {
  color: rgba(61,43,31,0.35) !important;
  font-family: 'DM Mono', monospace !important;
}
.rarity-banner-reason {
  color: rgba(61,43,31,0.65) !important;
}
.chapter-tab.locked:hover {
  color: rgba(61,43,31,0.35) !important;
}

/* Compat screens text */
.diff-section-desc,
.diff-card-body,
.how-header-desc {
  color: rgba(61,43,31,0.6) !important;
}
.diff-card-cat,
.diff-card-tags li {
  color: rgba(61,43,31,0.35) !important;
}
.diff-card--accent .diff-card-body {
  color: rgba(61,43,31,0.75) !important;
}
.discover-header-desc {
  color: rgba(61,43,31,0.5) !important;
}
.compat-prologue-bridge {
  color: rgba(61,43,31,0.45) !important;
}
.cpc-ilju {
  color: rgba(61,43,31,0.4) !important;
}
.cpc-tagline {
  color: rgba(61,43,31,0.35) !important;
}
.tab-btn.locked:hover {
  color: rgba(61,43,31,0.35) !important;
}
.cl-delete-btn {
  color: rgba(61,43,31,0.25) !important;
}
.btn-skip-auth {
  color: rgba(61,43,31,0.4) !important;
}

/* Field disabled state */
.field-select:disabled {
  border-bottom-color: rgba(201,169,110,0.2) !important;
}
.field-select option {
  background: #F2EBD9 !important;
  color: #3D2B1F !important;
}

/* Modal sheet */
.modal-sheet {
  border-radius: 16px 16px 0 0 !important;
}
.btn-google-signin {
  background: #F2EBD9 !important;
  color: #3D2B1F !important;
  border: 1px solid rgba(201,169,110,0.3) !important;
}

/* Theme color override */
.home-top-bar .brand-wordmark,
.brand-wordmark {
  color: #3D2B1F !important;
}

/* ═══════════════════════════════════════════════════════════════
   HOME SCREEN (#screen-home) — Ledger Override
   Overrides dark-theme !important values with parchment palette
   ═══════════════════════════════════════════════════════════════ */

/* ── Screen background ── */
#screen-home {
  background: #E8DCC4 !important;
}
#screen-home::before {
  background: transparent !important;
}
#screen-home::after {
  background: transparent !important;
}
#screen-home .home-body::before {
  display: none !important;
}

/* ── Home section labels ── */
#screen-home .home-section-label {
  color: #C9A84C !important;
  font-family: 'DM Mono', monospace !important;
  opacity: 1 !important;
}

/* ── Home section general ── */
#screen-home .home-section {
  color: #3D2B1F !important;
}

/* ── Diff Section (What Makes You Different) ── */
#screen-home .diff-section-tag {
  color: #8B0000 !important;
}
#screen-home .diff-section-title {
  color: #3D2B1F !important;
}
#screen-home .diff-section-desc {
  color: rgba(61,43,31,0.6) !important;
}
#screen-home .diff-card {
  background: #F2EBD9 !important;
  border-color: rgba(201,168,76,0.3) !important;
}
#screen-home .diff-card--accent {
  background: rgba(139,0,0,0.04) !important;
  border-color: rgba(139,0,0,0.25) !important;
}
#screen-home .diff-card-accent-bar {
  background: #8B0000 !important;
}
#screen-home .diff-card-name {
  color: #3D2B1F !important;
}
#screen-home .diff-card--accent .diff-card-name {
  color: #8B0000 !important;
}
#screen-home .diff-card-cat {
  color: rgba(61,43,31,0.4) !important;
}
#screen-home .diff-card--accent .diff-card-cat {
  color: rgba(139,0,0,0.5) !important;
}
#screen-home .diff-card-body {
  color: rgba(61,43,31,0.65) !important;
}
#screen-home .diff-card--accent .diff-card-body {
  color: rgba(61,43,31,0.8) !important;
}
#screen-home .diff-card-tags {
  border-top-color: rgba(201,168,76,0.2) !important;
}
#screen-home .diff-card-tags--accent {
  border-color: rgba(139,0,0,0.15) !important;
}
#screen-home .diff-card-tags li {
  color: rgba(61,43,31,0.45) !important;
}
#screen-home .diff-card-tags--accent li {
  color: #3D2B1F !important;
}
#screen-home .diff-tag-dot {
  background: rgba(61,43,31,0.25) !important;
}
#screen-home .diff-tag-dot--accent {
  background: #8B0000 !important;
  box-shadow: 0 0 5px rgba(139,0,0,0.4) !important;
}

/* ── Stat Box ── */
#screen-home .stat-box {
  background: rgba(201,168,76,0.08) !important;
  border-color: rgba(201,168,76,0.3) !important;
}
#screen-home .stat-label {
  color: #C9A84C !important;
  font-family: 'DM Mono', monospace !important;
}
#screen-home .stat-body {
  color: rgba(61,43,31,0.7) !important;
}
#screen-home .stat-combo {
  color: rgba(61,43,31,0.5) !important;
}
#screen-home .stat-yours {
  color: #8B0000 !important;
}

/* ── How It Works Section ── */
#screen-home .how-header-tag {
  color: #8B0000 !important;
}
#screen-home .how-header-title {
  color: #3D2B1F !important;
}
#screen-home .how-header-desc {
  color: rgba(61,43,31,0.55) !important;
}
#screen-home .how-num-circle {
  border-color: rgba(201,168,76,0.35) !important;
  color: #3D2B1F !important;
  background: #F2EBD9 !important;
}
#screen-home .how-num-circle--accent {
  border-color: rgba(139,0,0,0.4) !important;
  color: #8B0000 !important;
  box-shadow: 0 0 12px rgba(139,0,0,0.12) !important;
}
#screen-home .how-title {
  color: #3D2B1F !important;
}
#screen-home .how-desc {
  color: rgba(61,43,31,0.55) !important;
}
#screen-home .how-timeline-line {
  background: rgba(201,168,76,0.2) !important;
}

/* ── Reviews Section ── */
#screen-home .home-reviews-section {
  color: #3D2B1F !important;
}
#screen-home .review-card {
  background: #F2EBD9 !important;
  border-color: rgba(201,168,76,0.25) !important;
  color: #3D2B1F !important;
}
#screen-home .review-quote {
  color: #3D2B1F !important;
}
#screen-home .review-handle {
  color: rgba(201,168,76,0.6) !important;
}
#screen-home .review-name {
  color: #3D2B1F !important;
}
#screen-home .review-text {
  color: rgba(61,43,31,0.65) !important;
}
#screen-home .review-date {
  color: rgba(61,43,31,0.4) !important;
}

/* ── Discover Section ── */
#screen-home .discover-header-tag {
  color: #8B0000 !important;
}
#screen-home .discover-header-title {
  color: #3D2B1F !important;
}
#screen-home .discover-header-desc {
  color: rgba(61,43,31,0.5) !important;
}
#screen-home .discover-card {
  background: #F2EBD9 !important;
  border-color: rgba(201,168,76,0.25) !important;
  color: #3D2B1F !important;
}
#screen-home .discover-card--accent {
  border-color: rgba(139,0,0,0.25) !important;
}
#screen-home .discover-card--accent .discover-chapter {
  color: #8B0000 !important;
}
#screen-home .discover-chapter {
  color: #C9A84C !important;
}
#screen-home .discover-title {
  color: #3D2B1F !important;
}
#screen-home .discover-desc {
  color: rgba(61,43,31,0.55) !important;
}
#screen-home .discover-card-line {
  background: rgba(201,168,76,0.2) !important;
}
#screen-home .discover-card--accent .discover-card-line {
  background: rgba(139,0,0,0.3) !important;
}
#screen-home .badge-free {
  color: rgba(61,43,31,0.45) !important;
}
#screen-home .badge-basic {
  color: #C9A84C !important;
}
#screen-home .badge-premium {
  color: #8B0000 !important;
  border-color: rgba(139,0,0,0.25) !important;
}
#screen-home .badge-preview {
  color: rgba(61,43,31,0.5) !important;
  border-color: rgba(139,0,0,0.2) !important;
}

/* ── Teaser Card ── */
#screen-home .teaser-card {
  background: #F2EBD9 !important;
  border-color: rgba(201,168,76,0.3) !important;
}
#screen-home .teaser-chapter {
  color: #C9A84C !important;
}
#screen-home .teaser-title {
  color: #3D2B1F !important;
}
#screen-home .teaser-text {
  color: rgba(61,43,31,0.7) !important;
}
#screen-home .teaser-mask {
  background: linear-gradient(transparent 30%, #F2EBD9 70%) !important;
}

/* ── Pricing Cards ── */
#screen-home .pricing-card {
  background: #F2EBD9 !important;
  border-color: rgba(201,168,76,0.3) !important;
}
#screen-home .pricing-card:hover {
  background: rgba(201,168,76,0.12) !important;
}
#screen-home .pricing-card.featured {
  border-color: #8B0000 !important;
}
#screen-home .pricing-popular {
  color: #8B0000 !important;
}
#screen-home .pricing-tier {
  color: rgba(61,43,31,0.5) !important;
}
#screen-home .pricing-price {
  color: #3D2B1F !important;
}
#screen-home .pricing-desc {
  color: rgba(61,43,31,0.5) !important;
}
#screen-home .pricing-btn {
  border-color: rgba(201,168,76,0.4) !important;
  color: #8B0000 !important;
}

/* ── Product Selection ── */
#screen-home .product-card {
  background: #F2EBD9 !important;
  border-color: rgba(201,168,76,0.3) !important;
}
#screen-home .product-card:hover {
  border-color: rgba(201,168,76,0.5) !important;
  background: rgba(201,168,76,0.12) !important;
}
#screen-home .product-card.pc-best {
  border-color: #8B0000 !important;
}
#screen-home .product-best-badge {
  background: #C9A84C !important;
  color: #3D2B1F !important;
}
#screen-home .product-name {
  color: #3D2B1F !important;
}
#screen-home .product-select-heading {
  color: #C9A84C !important;
}

/* ── Hero section text (dark-theme overrides) ── */
#screen-home .hero-headline {
  color: #3D2B1F !important;
}
#screen-home .hero-sub {
  color: rgba(61,43,31,0.65) !important;
}
#screen-home .hero-trust {
  color: rgba(61,43,31,0.45) !important;
}
#screen-home .btn-begin {
  background: #3D2B1F !important;
  color: #E8DCC4 !important;
  border-color: #3D2B1F !important;
}
#screen-home .btn-begin:hover {
  background: #C9A84C !important;
  color: #3D2B1F !important;
}

/* ── Home divider ── */
#screen-home .home-divider {
  background: rgba(201,168,76,0.3) !important;
}

/* ── PC FAQ Section (Ledger tone) ── */
.pc-faq-section {
  border-top-color: rgba(201,168,76,0.2) !important;
}
.pc-faq-section .home-section-label {
  color: #C9A84C !important;
}
.pc-faq-q {
  color: #3D2B1F !important;
}
.pc-faq-a {
  color: rgba(61,43,31,0.55) !important;
}

/* ── PC variant FAQ (in #pc-v-home context) ── */
.pc-v-faq-section {
  border-top-color: rgba(201,168,76,0.2) !important;
}
.pc-v-faq-tag {
  color: #8B0000 !important;
}
.pc-v-faq-title {
  color: #3D2B1F !important;
}
.pc-v-faq-q {
  color: #3D2B1F !important;
}
.pc-v-faq-a {
  color: rgba(61,43,31,0.55) !important;
}
.faq-toggle {
  color: rgba(61,43,31,0.4) !important;
}

/* ── Saved profile cards in home ── */
#screen-home .saved-profile-card {
  background: #F2EBD9 !important;
  border-color: rgba(201,168,76,0.3) !important;
}
#screen-home .saved-profile-name {
  color: #C9A84C !important;
}
#screen-home .saved-profile-sub {
  color: rgba(61,43,31,0.55) !important;
}
#screen-home .saved-profile-cta {
  color: #C9A84C !important;
}

/* ═══════════════════════════════════════════════════════════════
   SPEC_02: INPUT FORM — Ledger Step Wizard
   ═══════════════════════════════════════════════════════════════ */

/* Step progress — Roman numerals */
.ledger-step-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 28px 0 0;
}
.lsp-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.2px solid rgba(61,43,31,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 10px;
  font-style: italic;
  color: rgba(138,125,110,1);
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.lsp-dot.active {
  border-color: #8B0000;
  color: #8B0000;
  background: rgba(139,0,0,0.06);
}
.lsp-dot.completed {
  border-color: #C9A96E;
  color: #C9A96E;
  background: rgba(201,169,110,0.08);
}
.lsp-line {
  width: 20px;
  height: 1px;
  background: rgba(61,43,31,0.1);
  flex-shrink: 0;
}
.lsp-line.completed {
  background: rgba(201,169,110,0.35);
}

/* Step label (DM Mono) */
.ledger-step-label {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #C9A96E;
  margin-bottom: 8px;
  text-align: center;
}

/* Step helper text */
.ledger-step-helper {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 15px;
  font-style: italic;
  color: #5A3D2B;
}

/* Ornament divider */
.ledger-ornament-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 20px;
}
.lod-line {
  flex: 1;
  height: 1px;
  background: rgba(61,43,31,0.1);
}

/* Input field Ledger style */
.input-ledger,
.pd-input-container .date-field,
.pd-input-container .pd-city-input,
.pd-input-container .pd-name-input {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 17px !important;
  color: #3D2B1F !important;
  background: rgba(242,235,217,0.5) !important;
  border: 1px solid rgba(61,43,31,0.2) !important;
  border-radius: 0 !important;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
}
.pd-input-container .date-field:focus,
.pd-input-container .pd-city-input:focus,
.pd-input-container .pd-name-input:focus,
.input-ledger:focus {
  border-color: #8B0000 !important;
  box-shadow: 0 0 0 2px rgba(139,0,0,0.08) !important;
}
.input-ledger::placeholder,
.pd-input-container .date-field::placeholder,
.pd-input-container .pd-city-input::placeholder,
.pd-input-container .pd-name-input::placeholder {
  font-style: italic;
  color: rgba(138,125,110,1) !important;
  opacity: 0.6;
}

/* Time choice buttons — Ledger override */
.pd-time-choice-btn {
  border: 1px solid rgba(61,43,31,0.2) !important;
  background: transparent !important;
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 16px !important;
  color: #5C5246 !important;
  border-radius: 0 !important;
  transition: all 0.18s ease;
}
.pd-time-choice-btn:hover,
.pd-time-choice-btn.active,
.pd-time-choice-btn.selected {
  border-color: #8B0000 !important;
  color: #8B0000 !important;
  background: rgba(139,0,0,0.04) !important;
}

/* Time range buttons */
.pd-time-range-btn {
  border: 1px solid rgba(61,43,31,0.2) !important;
  background: transparent !important;
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  border-radius: 0 !important;
  color: #5C5246 !important;
}
.pd-time-range-btn:hover,
.pd-time-range-btn.active {
  border-color: #8B0000 !important;
  color: #8B0000 !important;
  background: rgba(139,0,0,0.04) !important;
}

/* City results dropdown Ledger */
.pd-city-results {
  background: #F2EBD9 !important;
  border: 1px solid rgba(201,169,110,0.35) !important;
  border-top: none !important;
  border-radius: 0 !important;
}
.pd-city-results > div {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 15px;
  color: #3D2B1F;
  border-bottom: 1px solid rgba(61,43,31,0.1);
  transition: background 0.15s ease;
}
.pd-city-results > div:hover {
  background: rgba(139,0,0,0.04);
  color: #8B0000;
}

/* Continue button Ledger */
.pd-cta-btn {
  font-family: 'DM Mono', 'Courier New', monospace !important;
  font-size: 11px !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  border-radius: 0 !important;
}

/* Step transition animation */
@keyframes ledger-step-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.pd-step.active {
  animation: ledger-step-in 0.28s ease-out;
}

/* Step indicator — hide old progress bar, show roman numerals */
.pd-step-indicator {
  display: none !important;
}

/* Mobile spot illustrations */
.ledger-step-illust {
  display: block;
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  opacity: 0.45;
  transform: rotate(-3deg);
}
@media (min-width: 768px) {
  .ledger-step-illust { display: none; }
}

/* Form cert card (desktop) */
.form-cert-card {
  position: relative;
  border: 1px solid rgba(201,169,110,0.3);
  background: #F2EBD9;
  padding: 40px 48px;
  box-shadow: 0 4px 30px rgba(61,43,31,0.08);
}
.form-cert-card::before {
  content: '';
  position: absolute;
  top: 12px; left: 12px;
  width: 16px; height: 16px;
  border-top: 1px solid rgba(61,43,31,0.3);
  border-left: 1px solid rgba(61,43,31,0.3);
}
.form-cert-card::after {
  content: '';
  position: absolute;
  bottom: 12px; right: 12px;
  width: 16px; height: 16px;
  border-bottom: 1px solid rgba(61,43,31,0.3);
  border-right: 1px solid rgba(61,43,31,0.3);
}

/* Error message Ledger */
.ledger-error-msg,
.pd-error {
  color: #8B0000 !important;
  font-size: 12px !important;
  font-family: 'DM Mono', 'Courier New', monospace !important;
  letter-spacing: 0.1em;
  margin-top: 6px;
}

/* ═══════════════════════════════════════════════════════════════
   SPEC_03: LOADING SCREEN — Ledger Style
   ═══════════════════════════════════════════════════════════════ */

/* Loading seal animation */
.loading-seal,
.ledger-loading-seal {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  animation: seal-rotate 4s ease-in-out infinite;
}
@keyframes seal-rotate {
  0%   { transform: rotate(-8deg) scale(1); opacity: 0.7; }
  50%  { transform: rotate(4deg) scale(1.05); opacity: 1; }
  100% { transform: rotate(-8deg) scale(1); opacity: 0.7; }
}

/* Loading text Ledger */
#screen-loading .loading-text {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-style: italic !important;
  font-size: clamp(18px, 4vw, 22px) !important;
  color: #3D2B1F !important;
  text-align: center;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

/* Loading brand Ledger */
#screen-loading .loading-brand {
  font-family: 'DM Mono', 'Courier New', monospace !important;
  font-size: 9px !important;
  letter-spacing: 0.25em !important;
  text-transform: uppercase !important;
  color: rgba(61,43,31,0.35) !important;
}

/* Loading sub text */
.loading-sub {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(138,125,110,1);
  text-align: center;
  line-height: 1.8;
  max-width: 260px;
  margin: 0 auto;
}

/* Loading ornament */
.loading-ornament {
  animation: ornament-pulse 2s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 16px auto;
}
@keyframes ornament-pulse {
  0%, 100% { opacity: 0.3; }
  50%      { opacity: 0.7; }
}

/* Progress bar */
.loading-progress-track {
  width: 200px;
  height: 3px;
  background: rgba(61,43,31,0.1);
  margin: 24px auto 12px;
  position: relative;
  overflow: hidden;
}
.loading-progress-fill {
  height: 100%;
  background: #8B0000;
  transition: width 0.6s ease-out;
  position: relative;
  width: 0%;
}
.loading-progress-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: -2px;
  width: 6px;
  height: 7px;
  background: #8B0000;
  border-radius: 50%;
  opacity: 0.6;
  animation: progress-glow 1s ease-in-out infinite;
}
@keyframes progress-glow {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 0.9; }
}

/* Progress label */
.loading-progress-label {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(138,125,110,1);
  text-align: center;
}

/* Trigram background */
.ledger-trigram-bg {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  animation: ledger-trigram-spin 12s linear infinite reverse;
  opacity: 0.22;
}
@keyframes ledger-trigram-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}

/* Loading exit */
.loading-exit {
  animation: loading-fade-out 0.4s ease-in forwards;
}
@keyframes loading-fade-out {
  to { opacity: 0; transform: scale(0.98); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ledger-loading-seal,
  .loading-seal,
  .ledger-trigram-bg,
  .loading-ornament { animation: none !important; }
}

/* Hide old sigil */
.loading-sigil {
  display: none !important;
}

/* ═══════════════════════════════════════════════════════════════
   SPEC_08: COMPATIBILITY LIST — Ledger Style
   ═══════════════════════════════════════════════════════════════ */

/* Section header */
.compat-section-header {
  text-align: center;
  padding: 32px 24px 24px;
  border-bottom: 1px solid rgba(61,43,31,0.1);
  margin-bottom: 24px;
}
.compat-section-label {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #C9A96E;
  margin-bottom: 8px;
}
.compat-section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 400;
  color: #3D2B1F;
}

/* Compat card */
.compat-card,
.cl-compat-card {
  border: 1px solid rgba(61,43,31,0.2) !important;
  padding: 24px 20px !important;
  position: relative;
  background: rgba(210,195,168,0.06) !important;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  border-radius: 0 !important;
  margin-bottom: 12px;
}
.compat-card:hover,
.cl-compat-card:hover {
  border-color: #8B0000 !important;
  box-shadow: 0 2px 12px rgba(139,0,0,0.06) !important;
}
.compat-card::before,
.cl-compat-card::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px;
  width: 14px; height: 14px;
  border-top: 1.5px solid #5C5246;
  border-left: 1.5px solid #5C5246;
}
.compat-card::after,
.cl-compat-card::after {
  content: '';
  position: absolute;
  bottom: -1px; right: -1px;
  width: 14px; height: 14px;
  border-bottom: 1.5px solid #5C5246;
  border-right: 1.5px solid #5C5246;
}

/* Card typography */
.compat-card-number {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #C9A96E;
  display: block;
  text-align: center;
}
.compat-names {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 12px 0;
}
.compat-name-self,
.compat-name-partner {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  color: #3D2B1F;
}
.compat-link-icon {
  font-size: 14px;
  color: #8B0000;
  opacity: 0.7;
}
.compat-date {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 9px;
  letter-spacing: 0.15em;
  color: rgba(138,125,110,1);
  display: block;
  text-align: center;
  margin-top: 8px;
}
.compat-action {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 12px;
  color: #5C5246;
  display: block;
  text-align: center;
  margin-top: 12px;
}

/* New compat button */
.compat-add-btn,
.cl-new-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 24px !important;
  background: #3D2B1F !important;
  color: #E8DCC4 !important;
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 16px !important;
  font-style: italic !important;
  font-weight: 400 !important;
  letter-spacing: 0.05em !important;
  border: none !important;
  border-radius: 0 !important;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.compat-add-btn:hover,
.cl-new-btn:hover {
  background: #5C4A3A !important;
  color: #E8DCC4 !important;
}
.compat-add-btn:active,
.cl-new-btn:active {
  opacity: 0.8 !important;
}

/* Empty state */
.compat-empty {
  text-align: center;
  padding: 60px 24px;
}
.compat-empty-seal {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  opacity: 0.35;
}
.compat-empty-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 20px;
  color: #3D2B1F;
  margin-bottom: 12px;
}
.compat-empty-desc {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: rgba(138,125,110,1);
  line-height: 2;
  text-transform: uppercase;
  max-width: 240px;
  margin: 0 auto 24px;
}
.compat-empty-cta {
  display: inline-block;
  padding: 14px 32px;
  background: #3D2B1F;
  color: #E8DCC4;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
.compat-empty-cta:hover { opacity: 0.85; }

/* Desktop grid */
@media (min-width: 768px) {
  #cl-list-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    max-width: 680px;
    margin: 0 auto;
  }
}

/* ═══════════════════════════════════════════════════════════════
   SPEC_09: COMPATIBILITY INPUT — Ledger Style
   ═══════════════════════════════════════════════════════════════ */

/* Person A card */
.compat-you-card {
  border: 1px solid rgba(61,43,31,0.2) !important;
  padding: 28px 24px !important;
  position: relative;
  background: rgba(210,195,168,0.08) !important;
  border-radius: 0 !important;
}
.compat-you-card::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px;
  width: 16px; height: 16px;
  border-top: 2px solid #5C5246;
  border-left: 2px solid #5C5246;
}
.compat-you-card::after {
  content: '';
  position: absolute;
  bottom: -1px; right: -1px;
  width: 16px; height: 16px;
  border-bottom: 2px solid #5C5246;
  border-right: 2px solid #5C5246;
}
.compat-you-label {
  font-family: 'DM Mono', 'Courier New', monospace !important;
  font-size: 9px !important;
  letter-spacing: 0.3em !important;
  text-transform: uppercase;
  color: #C9A96E !important;
  margin-bottom: 12px;
}
.compat-you-value {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 22px !important;
  font-weight: 600 !important;
  color: #3D2B1F !important;
  margin-bottom: 8px;
}
.compat-you-sub {
  font-family: 'DM Mono', 'Courier New', monospace !important;
  font-size: 10px !important;
  letter-spacing: 0.12em !important;
  color: rgba(138,125,110,1) !important;
  line-height: 2;
}

/* Versus ornament */
.compat-divider-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 0 !important;
}
.compat-x {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 14px !important;
  color: #8B0000 !important;
  opacity: 0.6;
}

/* Partner label */
.compat-partner-label {
  font-family: 'DM Mono', 'Courier New', monospace !important;
  font-size: 9px !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  color: rgba(138,125,110,1) !important;
  margin-bottom: 8px;
  display: block;
}

/* Field groups */
.compat-input-wrap .field-group {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(61,43,31,0.1);
}
.compat-input-wrap .field-group:last-of-type {
  border-bottom: none;
}
.field-label {
  font-family: 'DM Mono', 'Courier New', monospace !important;
  font-size: 9px !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  color: rgba(138,125,110,1) !important;
  margin-bottom: 8px;
  display: block;
}

/* Field inputs Ledger */
.field-input,
.field-select {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 17px !important;
  color: #3D2B1F !important;
  background: rgba(242,235,217,0.5) !important;
  border: 1px solid rgba(61,43,31,0.2) !important;
  border-radius: 0 !important;
  padding: 14px 16px;
  width: 100%;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field-input:focus,
.field-select:focus {
  border-color: #8B0000 !important;
  box-shadow: 0 0 0 2px rgba(139,0,0,0.08) !important;
}

/* Calculate button */
.btn-calculate {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 320px;
  margin: 32px auto 0 !important;
  padding: 14px 24px !important;
  background: #3D2B1F !important;
  color: #E8DCC4 !important;
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 16px !important;
  font-style: italic !important;
  font-weight: 400 !important;
  letter-spacing: 0.05em !important;
  border: none !important;
  border-radius: 0 !important;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-calculate:hover { background: #5C4A3A !important; }
.btn-calculate:active { opacity: 0.8 !important; }
.btn-calculate:disabled { opacity: 0.4; cursor: not-allowed; }

/* No time button */
.no-time-btn {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-style: italic;
  font-size: 12px !important;
  color: #5C5246 !important;
  background: none !important;
  border: none !important;
}

/* Desktop 2-column */
@media (min-width: 768px) {
  .compat-input-wrap {
    max-width: 760px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 32px;
    align-items: start;
  }
}

/* ═══════════════════════════════════════════════════════════════
   SPEC_10: COMPATIBILITY RESULT — Ledger Style
   ═══════════════════════════════════════════════════════════════ */

/* Compat hero card */
.compat-hero-card {
  text-align: center;
  padding: 36px 24px !important;
  border: 1px solid rgba(61,43,31,0.2) !important;
  margin: 56px 16px 8px !important;
  position: relative;
  background: rgba(210,195,168,0.08) !important;
  border-radius: 0 !important;
}
.compat-hero-card::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px;
  width: 16px; height: 16px;
  border-top: 2px solid #5C5246;
  border-left: 2px solid #5C5246;
}
.compat-hero-card::after {
  content: '';
  position: absolute;
  bottom: -1px; right: -1px;
  width: 16px; height: 16px;
  border-bottom: 2px solid #5C5246;
  border-right: 2px solid #5C5246;
}

/* Compat hero names */
.compat-hero-names {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-weight: 600 !important;
  font-size: 22px !important;
  color: #3D2B1F !important;
}

/* Score */
.compat-score-label {
  font-family: 'DM Mono', 'Courier New', monospace !important;
  font-size: 9px !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  color: #C9A96E !important;
  margin: 16px 0 4px;
}
.compat-score-value {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 48px !important;
  font-weight: 300 !important;
  color: #3D2B1F !important;
}
.compat-score-max {
  font-family: 'DM Mono', 'Courier New', monospace !important;
  font-size: 11px !important;
  color: rgba(138,125,110,1) !important;
}

/* Score bar */
.compat-score-bar-wrap {
  margin: 12px auto;
  max-width: 200px;
}
.compat-score-bar {
  height: 3px;
  background: rgba(61,43,31,0.1);
  position: relative;
  overflow: hidden;
}
.compat-score-fill {
  height: 100%;
  background: #C9A96E !important;
  transition: width 0.8s ease-out;
}

/* Score dots (Ledger) */
.compat-score-dots {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-bottom: 6px;
}
.compat-score-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #C9A96E;
}
.compat-score-dot.empty {
  background: transparent;
  border: 1px solid rgba(61,43,31,0.2);
}

/* Compat title */
.compat-title {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-style: italic !important;
  font-size: 18px !important;
  color: #3D2B1F !important;
  margin-top: 12px;
}

/* Compat pillar cards */
.compat-pillars-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
  padding: 0 16px !important;
  margin-bottom: 16px !important;
}
.compat-pillar-card {
  border: 1px solid rgba(61,43,31,0.15) !important;
  padding: 16px !important;
  background: rgba(210,195,168,0.06) !important;
  border-radius: 0 !important;
  text-align: center;
}
.cpc-label {
  font-family: 'DM Mono', 'Courier New', monospace !important;
  font-size: 8px !important;
  letter-spacing: 0.25em !important;
  text-transform: uppercase !important;
  color: #C9A96E !important;
  margin-bottom: 8px;
}
.cpc-name {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #3D2B1F !important;
}

/* Analysis blocks */
.compat-analysis-block {
  padding: 20px 0;
  border-bottom: 1px solid rgba(61,43,31,0.1);
}
.analysis-person-label {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #C9A96E;
  margin-bottom: 6px;
  display: block;
}
.analysis-synthesis-label {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8B0000;
  margin-bottom: 6px;
  display: block;
}
.analysis-connector {
  padding: 12px 0;
  text-align: center;
}

/* Compat chapter tabs — show them */
#screen-compat-result .result-chapter-tabs,
.compat-chapter-tabs {
  display: flex !important;
}

/* ═══════════════════════════════════════════════════════════════
   SPEC_12: SHARE MODAL — Ledger Style
   ═══════════════════════════════════════════════════════════════ */

/* Share modal overlay */
.share-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,15,15,0.6);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}

/* Share modal */
.share-modal {
  background: #E8DCC4;
  max-width: 400px;
  width: calc(100% - 32px);
  max-height: 80vh;
  overflow-y: auto;
  padding: 32px 24px;
  position: relative;
  border: 1px solid rgba(61,43,31,0.2);
}
.share-modal::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px;
  width: 20px; height: 20px;
  border-top: 2px solid #5C5246;
  border-left: 2px solid #5C5246;
}
.share-modal::after {
  content: '';
  position: absolute;
  bottom: -1px; right: -1px;
  width: 20px; height: 20px;
  border-bottom: 2px solid #5C5246;
  border-right: 2px solid #5C5246;
}
.share-modal-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 20px;
  color: #3D2B1F;
  text-align: center;
  margin-bottom: 20px;
}
.share-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 18px;
  color: rgba(138,125,110,1);
  cursor: pointer;
}

/* Card selection thumbnails */
.share-card-options {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}
.share-card-thumb {
  width: 80px;
  height: 100px;
  border: 1px solid rgba(61,43,31,0.2);
  background: rgba(210,195,168,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s;
  position: relative;
}
.share-card-thumb.selected {
  border-color: #8B0000;
  box-shadow: 0 0 0 2px rgba(139,0,0,0.1);
}
.share-card-thumb-label {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(138,125,110,1);
  text-align: center;
  margin-top: 6px;
}

/* Action buttons */
.share-action-primary {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: #3D2B1F;
  color: #E8DCC4;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  margin-bottom: 10px;
  transition: opacity 0.2s;
}
.share-action-primary:hover { opacity: 0.85; }
.share-action-secondary {
  display: block;
  width: 100%;
  padding: 12px 24px;
  background: transparent;
  color: #5C5246;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(61,43,31,0.2);
  cursor: pointer;
  margin-bottom: 8px;
  transition: border-color 0.2s;
}
.share-action-secondary:hover { border-color: #5C5246; }

/* Share preview overlay — warm dark */
.share-preview-overlay {
  background: rgba(61,43,31,0.88) !important;
}

/* PC share modal Ledger */
.pc-share-modal {
  background: #E8DCC4 !important;
  border: 1px solid rgba(61,43,31,0.2) !important;
}
.pc-share-modal-inner {
  background: #E8DCC4 !important;
}

/* Share button loading */
.btn-share-loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Share footer button Ledger */
.btn-footer {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-style: italic;
  border-radius: 0 !important;
}

/* ═══════════════════════════════════════════════════════════════
   BUG FIX P0 — Concept C Ledger uniform style (2026-05-17)
   Applies parchment theme to screens/overlays that were missing it
   ═══════════════════════════════════════════════════════════════ */

/* Profile menu screen */
#screen-profile-menu {
  background: #E8DCC4 !important;
  color: #3D2B1F !important;
}
#screen-profile-menu .pm-label {
  color: #3D2B1F !important;
}
#screen-profile-menu .pm-icon {
  color: #5A3D2B !important;
}
#screen-profile-menu .pm-arrow {
  color: rgba(61,43,31,0.35) !important;
}
#screen-profile-menu .pm-signout .pm-label {
  color: #8B0000 !important;
}

/* My Readings screen */
#screen-profiles {
  background: #E8DCC4 !important;
  color: #3D2B1F !important;
}
#screen-profiles .profiles-header {
  border-bottom-color: rgba(201,169,110,0.3) !important;
}
#screen-profiles .ph-back {
  color: #3D2B1F !important;
}
#screen-profiles h2 {
  color: #3D2B1F !important;
  font-family: 'Cormorant Garamond', serif !important;
}
#screen-profiles .btn-new-profile {
  background: #3D2B1F !important;
  border: none !important;
  color: #E8DCC4 !important;
}
#screen-profiles .btn-new-profile:hover {
  background: #5C4A3A !important;
}
#screen-profiles .btn-new-profile:active {
  opacity: 0.8 !important;
}

/* Overlays: purchase history, contact, terms */
#purchase-history-overlay > div,
#contact-us-overlay > div,
#terms-privacy-overlay > div {
  background: #F2EBD9 !important;
  border-color: rgba(201,169,110,0.3) !important;
  color: #3D2B1F !important;
}
#purchase-history-overlay h3,
#contact-us-overlay h3,
#terms-privacy-overlay h3 {
  color: #C9A96E !important;
}
#contact-us-overlay input,
#contact-us-overlay textarea {
  background: #E8DCC4 !important;
  border-color: rgba(201,169,110,0.4) !important;
  color: #3D2B1F !important;
}
#contact-us-overlay button[onclick*="submitContact"] {
  background: #3D2B1F !important;
  color: #E8DCC4 !important;
}

/* Home screen mobile-only floating Begin Reading CTA */
.ldg-mobile-begin-cta {
  display: none;
}
@media (max-width: 767px) {
  .ldg-mobile-begin-cta {
    display: block;
    width: calc(100% - 48px);
    margin: 24px 24px 0;
    padding: 16px 24px;
    background: #3D2B1F;
    color: #E8DCC4;
    font-family: 'DM Mono', 'Courier New', monospace;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    border-radius: 0;
    cursor: pointer;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
  }
  .ldg-mobile-begin-cta:active {
    background: #5C4A3A;
  }
}

/* Home screen ldg-page bottom padding fix for bottom nav */
@media (max-width: 767px) {
  #screen-home .ldg-page {
    padding-bottom: 120px !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   SPEC_04: RESULT SCREEN — Ledger Typography & Layout
   Phase 1③ — Prologue / Ch.1 / Ch.2 / Ch.3 全 章
   ═══════════════════════════════════════════════════════════════ */

/* ── Chapter title block (Prologue / Ch.1 / Ch.2 / Ch.3 공통) ── */
.chapter-title-block {
  text-align: center;
  padding: 32px 24px 28px;
  border-bottom: 1px solid rgba(201,169,110,0.35);
  margin-bottom: 28px;
  position: relative;
}

.chapter-number {
  font-family: 'DM Mono', 'Courier New', monospace !important;
  font-size: 10px !important;
  letter-spacing: 4px !important;
  color: #8B0000 !important;
  text-transform: uppercase !important;
  margin-bottom: 10px !important;
  opacity: 0.8 !important;
}

.chapter-headline {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: clamp(22px, 5vw, 28px) !important;
  font-style: italic !important;
  font-weight: 400 !important;
  color: #3D2B1F !important;
  line-height: 1.4 !important;
  margin-bottom: 8px !important;
  letter-spacing: 0.01em !important;
}

/* chapter-subtitle는 이미 있으나 결과 화면 내에서 강화 */
#screen-result .chapter-subtitle {
  font-family: 'DM Mono', 'Courier New', monospace !important;
  font-size: 9px !important;
  letter-spacing: 0.3em !important;
  text-transform: uppercase !important;
  color: #5E4B3B !important;
}

/* ── Narrative section header / title ── */
.narrative-section-header {
  margin-bottom: 12px;
}

.narrative-section-title {
  font-family: 'DM Mono', 'Courier New', monospace !important;
  font-size: 9px !important;
  letter-spacing: 0.25em !important;
  text-transform: uppercase !important;
  color: #8B0000 !important;
  opacity: 0.85 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-weight: 400 !important;
  margin: 0 !important;
}

.narrative-section-title::after {
  content: '' !important;
  flex: 1 !important;
  max-width: 48px !important;
  height: 1px !important;
  background: rgba(201,169,110,0.35) !important;
}

/* ── Ch.1/2/3 section text body ── */
.ch1-section {
  margin-bottom: 28px;
  padding: 0 24px;
}

.ch1-section-text {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 17px !important;
  font-weight: 400 !important;
  line-height: 1.9 !important;
  color: #5C5246 !important;
  white-space: pre-wrap;
}

/* ── Prologue shape / tension text (Ledger upgrade) ── */
.prologue-shape-text {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 17px !important;
  font-weight: 400 !important;
  line-height: 1.9 !important;
  color: #5C5246 !important;
}

.prologue-tension-text {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 17px !important;
  font-weight: 400 !important;
  line-height: 1.9 !important;
  color: #5C5246 !important;
}

/* ── Narrative transition (italic blockquote) ── */
.narrative-transition {
  padding: 0 24px;
  margin: 20px 0;
}

.transition-text {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 14px !important;
  font-style: italic !important;
  color: #5E4B3B !important;
  line-height: 1.8 !important;
  text-align: center !important;
  border-left: 2px solid rgba(201,169,110,0.35) !important;
  padding-left: 14px !important;
  background: none !important;
}

/* ── Viral highlight box ── */
.viral-highlight {
  margin: 4px 24px 32px !important;
  padding: 16px 20px !important;
  border: 1px solid rgba(201,169,110,0.35) !important;
  background: rgba(201,169,110,0.04) !important;
  text-align: center !important;
  border-radius: 0 !important;
}

.viral-highlight p {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-style: italic !important;
  font-size: 16px !important;
  color: #3D2B1F !important;
  line-height: 1.7 !important;
}

/* ── Narrative ending (Ch.3 결말 블록) ── */
.narrative-ending {
  text-align: center;
  padding: 32px 24px;
  margin: 8px 24px 0;
  border: 1px solid rgba(61,43,31,0.1);
  background: rgba(232,220,196,0.1);
  position: relative;
}

.narrative-ending::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px;
  width: 14px; height: 14px;
  border-top: 1px solid rgba(201,169,110,0.35);
  border-left: 1px solid rgba(201,169,110,0.35);
}

.narrative-ending::after {
  content: '';
  position: absolute;
  bottom: -1px; right: -1px;
  width: 14px; height: 14px;
  border-bottom: 1px solid rgba(201,169,110,0.35);
  border-right: 1px solid rgba(201,169,110,0.35);
}

.ending-glyph {
  display: block;
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 8px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #C9A96E;
  opacity: 0.7;
  margin-bottom: 14px;
}

/* ── Chapter seal divider (Ch.1/2/3 상단 장식) ── */
.chapter-seal-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px 24px 0;
}

.seal-row-line {
  flex: 1;
  height: 1px;
  background: rgba(61,43,31,0.2);
}

/* ── Gold rule divider ── */
#screen-result .gold-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  margin: 20px 0;
}

.gold-rule-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,169,110,0.35), transparent);
}

.gold-rule-diamond {
  width: 6px;
  height: 6px;
  border: 1px solid #C9A96E;
  transform: rotate(45deg);
  opacity: 0.5;
}

/* ── Doc meta row (Prologue header) ── */
.doc-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 24px;
  border-bottom: 1px solid rgba(61,43,31,0.1);
  margin-bottom: 24px;
}

.doc-meta-item {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 8px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #5E4B3B;
}

.doc-meta-item span {
  color: #3D2B1F;
  font-weight: 500;
}

/* ── Prologue: famous card Ledger style ── */
.famous-name {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  color: #3D2B1F !important;
}

.famous-why {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 13px !important;
  color: #5E4B3B !important;
  font-style: italic !important;
}

/* ── Prologue: essence tag Ledger re-skin ── */
.prologue-essence-tag {
  font-family: 'DM Mono', 'Courier New', monospace !important;
  font-size: 9px !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: #5C5246 !important;
  border: 1px solid rgba(61,43,31,0.2) !important;
  padding: 4px 12px !important;
  background: rgba(232,220,196,0.3) !important;
  border-radius: 0 !important;
}

.prologue-essence-tag:hover {
  background: rgba(201,169,110,0.12) !important;
  border-color: rgba(201,169,110,0.45) !important;
  transform: none !important;
}

/* ── Narrative bridge — Ledger style ── */
.narrative-bridge {
  padding: 0 24px;
  margin: 24px 0;
}

.bridge-text {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-style: italic !important;
  font-size: 15px !important;
  color: #5A3D2B !important;
  line-height: 1.8 !important;
  text-align: center !important;
  margin-bottom: 20px !important;
}

/* Prologue to Ch.1 bridge next button */
.ledger-next-btn,
.btn-narrative-next {
  display: block !important;
  width: calc(100% - 48px) !important;
  margin: 24px 24px 40px !important;
  padding: 14px 24px !important;
  background: #3D2B1F !important;
  color: #E8DCC4 !important;
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 16px !important;
  font-style: italic !important;
  font-weight: 400 !important;
  letter-spacing: 0.05em !important;
  border: none !important;
  border-radius: 0 !important;
  cursor: pointer !important;
  text-align: center !important;
  text-decoration: none !important;
  transition: background 0.2s, color 0.2s !important;
}

.ledger-next-btn:hover,
.btn-narrative-next:hover {
  background: #5C4A3A !important;
  color: #E8DCC4 !important;
}
.ledger-next-btn:active,
.btn-narrative-next:active {
  opacity: 0.8 !important;
}

/* ── Bridge divider symbols ── */
.bridge-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
}

.bridge-divider .divider-line {
  flex: 1;
  height: 1px;
  background: rgba(201,169,110,0.3) !important;
}

.bridge-divider .divider-symbol {
  color: #C9A96E !important;
  font-size: 10px;
}

/* ── Result section label upgrade ── */
#screen-result .result-section-label {
  font-family: 'DM Mono', 'Courier New', monospace !important;
  font-size: 9px !important;
  letter-spacing: 0.25em !important;
  text-transform: uppercase !important;
  color: #8B0000 !important;
  opacity: 0.85 !important;
  margin-bottom: 16px !important;
}

/* ── Rarity banner Ledger upgrade ── */
.rarity-banner {
  text-align: center;
  padding: 20px 24px !important;
  border: 1px solid rgba(61,43,31,0.1) !important;
  background: rgba(201,169,110,0.04) !important;
  border-radius: 0 !important;
}

.rarity-banner-pct {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 34px !important;
  font-weight: 300 !important;
  color: #C9A96E !important;
  letter-spacing: 0.02em !important;
  margin-bottom: 4px !important;
}

.rarity-banner-label {
  font-family: 'DM Mono', 'Courier New', monospace !important;
  font-size: 8px !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  color: rgba(61,43,31,0.35) !important;
  margin-bottom: 6px !important;
}

.rarity-banner-reason {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 9px;
  color: rgba(61,43,31,0.65) !important;
  letter-spacing: 0.1em;
}

/* ── Pillar interp Ledger upgrade ── */
#screen-result .pillar-interp-section {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.pillar-interp-block {
  margin-bottom: 20px;
}

.pillar-interp-label {
  font-family: 'DM Mono', monospace !important;
  font-size: 0.6rem !important;
  letter-spacing: 0.3em !important;
  text-transform: uppercase !important;
  color: #8B0000 !important;
  margin-bottom: 10px !important;
}

.pillar-interp-text {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 17px !important;
  line-height: 1.8 !important;
  color: #3D2B1F !important;
}

/* ── Teaser (locked chapter preview) ── */
.teaser-section {
  padding: 0 24px;
  margin-bottom: 20px;
  opacity: 0.55;
}

.teaser-section-title {
  font-family: 'DM Mono', 'Courier New', monospace !important;
  font-size: 9px !important;
  letter-spacing: 0.25em !important;
  text-transform: uppercase !important;
  color: #C9A96E !important;
  margin-bottom: 8px !important;
}

.teaser-body {
  position: relative;
  overflow: hidden;
  max-height: 80px;
}

.teaser-mask {
  background: linear-gradient(transparent 20%, #E8DCC4 70%) !important;
}

/* ── Inline paywall Ledger ── */
.inline-paywall {
  border: 1px solid rgba(201,169,110,0.3);
  padding: 28px 24px;
  margin: 8px 24px 32px;
  text-align: center;
  background: rgba(201,169,110,0.03);
  position: relative;
}

.inline-paywall::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px;
  width: 14px; height: 14px;
  border-top: 1px solid rgba(201,169,110,0.5);
  border-left: 1px solid rgba(201,169,110,0.5);
}

.inline-paywall::after {
  content: '';
  position: absolute;
  bottom: -1px; right: -1px;
  width: 14px; height: 14px;
  border-bottom: 1px solid rgba(201,169,110,0.5);
  border-right: 1px solid rgba(201,169,110,0.5);
}

/* ── Result hero Ledger upgrade ── */
.result-hero {
  border: 1px solid rgba(201,169,110,0.4) !important;
  background: #F2EBD9 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  padding-top: 56px !important;
  padding-bottom: 56px !important;
}

.result-hero .tagline-you {
  color: rgba(44,24,16,0.75) !important;
  font-size: 16px !important;
  margin-bottom: 10px !important;
}

.result-hero .hero-tagline {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-style: italic !important;
  font-size: 13px !important;
  color: #5E4B3B !important;
  letter-spacing: 0.05em !important;
  margin-bottom: 18px !important;
}

.result-hero .hero-badge {
  font-family: 'DM Mono', 'Courier New', monospace !important;
  font-size: 9px !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  color: #C9A96E !important;
  border: 1px solid rgba(201,169,110,0.35) !important;
  display: inline-block !important;
  padding: 4px 14px !important;
  background: none !important;
  margin-top: 4px !important;
}

/* hero-ilju-bg: Ledger 테마에서 문양 가시성 확보 (0.04→0.55) */
#hero-ilju-bg {
  opacity: 0.55 !important;
  filter: none !important;
}

/* ── Result header title ── */
#result-header-title {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  color: #3D2B1F !important;
  letter-spacing: 0.04em !important;
}

/* ── Chapter tabs (show on mobile for navigation) ── */
.result-chapter-tabs,
#chapter-tabs {
  display: flex !important;
  border-bottom: 1px solid rgba(201,169,110,0.2) !important;
  background: rgba(232,220,196,0.95) !important;
}

.chapter-tab {
  font-family: 'DM Mono', 'Courier New', monospace !important;
  font-size: 10px !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: rgba(61,43,31,0.4) !important;
  border-bottom: 2px solid transparent !important;
  padding: 10px 2px 8px !important;
}

.chapter-tab.active {
  color: #3D2B1F !important;
  border-bottom-color: #C9A96E !important;
}

.chapter-tab.locked {
  color: rgba(61,43,31,0.25) !important;
  opacity: 1 !important;
}

.chapter-tab.locked::before {
  content: '' !important;
  /* 잠금 아이콘 제거 — Ledger 스타일에서 불필요 */
}

/* ── Result footer buttons ── */
.result-footer {
  background: transparent !important;
  border-top: 1px solid rgba(201,169,110,0.2) !important;
}

.btn-footer {
  font-family: 'DM Mono', 'Courier New', monospace !important;
  font-size: 10px !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  color: #3D2B1F !important;
  border-color: rgba(201,169,110,0.3) !important;
}

/* ── Revisit trigger ── */
.revisit-trigger {
  padding: 20px 24px;
  text-align: center;
}

.revisit-trigger p {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-style: italic !important;
  font-size: 14px !important;
  color: #5E4B3B !important;
  line-height: 1.7 !important;
}

/* ── Reading progress bar ── */
#reading-progress-bar {
  background: rgba(201,169,110,0.12) !important;
}

#reading-progress-fill {
  background: rgba(201,169,110,0.6) !important;
}

/* ── Chapter wrap content containers ── */
#ch1-content-wrap,
#ch2-content-wrap,
#ch3-content-wrap {
  padding-top: 8px;
}

/* ── Chapter watermark (Ledger gold tint) ── */
.chapter-watermark {
  color: rgba(201,169,110,0.1) !important;
  font-family: 'Cormorant Garamond', Georgia, serif !important;
}

/* ── Result section border ── */
.result-section {
  border-bottom-color: rgba(201,169,110,0.2) !important;
}

/* ── Section rule inner ── */
.section-rule-inner {
  border-color: rgba(201,169,110,0.2) !important;
}

/* ── Viral highlight inner elements ── */
.viral-highlight-label {
  font-family: 'DM Mono', 'Courier New', monospace !important;
  font-size: 8px !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  color: rgba(61,43,31,0.4) !important;
  margin-bottom: 10px !important;
}

.viral-highlight-text {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-style: italic !important;
  font-size: 16px !important;
  color: #3D2B1F !important;
  line-height: 1.7 !important;
}

.viral-highlight-action {
  margin-top: 14px !important;
  font-family: 'DM Mono', 'Courier New', monospace !important;
  font-size: 8px !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  color: rgba(61,43,31,0.35) !important;
}

/* ── Viral line (inline narrative emphasis) ── */
.viral-line {
  margin: 20px 0 !important;
  padding: 16px 20px !important;
  background: rgba(201,169,110,0.05) !important;
  border-left: 2px solid rgba(201,169,110,0.4) !important;
  border-radius: 0 !important;
  font-size: 1em !important;
  line-height: 1.7 !important;
  color: #3D2B1F !important;
  font-style: italic !important;
}

.viral-line p {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  color: #3D2B1F !important;
}

/* ── Teaser blur gradient (parchment bg override) ── */
#screen-result .ch-teaser-blur .teaser-blurred {
  filter: blur(2.5px) !important;
  -webkit-filter: blur(2.5px) !important;
  opacity: 0.45 !important;
}

/* Override dark gradient mask in teaser */
#screen-result .ch1-section-text > div[style*="rgba(8,8,8"] {
  background: linear-gradient(to bottom, transparent 0%, rgba(232,220,196,0.8) 100%) !important;
}

/* ── Chapter paywall floating block ── */
.ch-paywall-floating {
  text-align: center !important;
  padding: 32px 24px !important;
  margin: 24px 0 !important;
  border: 1px solid rgba(201,169,110,0.3) !important;
  background: rgba(201,169,110,0.03) !important;
  position: relative;
}

.ch-paywall-floating::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px;
  width: 14px; height: 14px;
  border-top: 1px solid rgba(201,169,110,0.5);
  border-left: 1px solid rgba(201,169,110,0.5);
}

.ch-paywall-floating::after {
  content: '';
  position: absolute;
  bottom: -1px; right: -1px;
  width: 14px; height: 14px;
  border-bottom: 1px solid rgba(201,169,110,0.5);
  border-right: 1px solid rgba(201,169,110,0.5);
}

.ch-paywall-floating .paywall-lock {
  font-size: 20px !important;
  margin-bottom: 14px !important;
  color: #C9A96E !important;
}

.ch-paywall-floating .paywall-msg {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 16px !important;
  font-style: italic !important;
  color: #5A3D2B !important;
  line-height: 1.7 !important;
  margin-bottom: 20px !important;
}

.ch-paywall-floating .paywall-unlock-btn {
  display: inline-block !important;
  padding: 14px 24px !important;
  background: #3D2B1F !important;
  color: #E8DCC4 !important;
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 16px !important;
  font-style: italic !important;
  font-weight: 400 !important;
  letter-spacing: 0.05em !important;
  border: none !important;
  border-radius: 0 !important;
  cursor: pointer !important;
  transition: background 0.2s, color 0.2s !important;
  box-shadow: none !important;
}

.ch-paywall-floating .paywall-unlock-btn:hover {
  background: #5C4A3A !important;
  color: #E8DCC4 !important;
  box-shadow: none !important;
}
.ch-paywall-floating .paywall-unlock-btn:active {
  opacity: 0.8 !important;
}

/* ── Responsive: mobile adjustments ── */
@media (max-width: 520px) {
  .chapter-title-block { padding: 24px 16px 20px; }
  .ch1-section { padding: 0 16px; }
  .narrative-transition { padding: 0 16px; }
  .viral-highlight { margin: 4px 16px 28px !important; }
  .narrative-ending { margin: 8px 16px 0; }
  .inline-paywall { margin: 8px 16px 28px; }
  .ch-paywall-floating { padding: 24px 16px !important; }
}

/* ═══════════════════════════════════════════════════════════════
   PHASE 2 ④ — COMPATIBILITY SCREENS Ledger Override
   3 screens: compat-list · compat-input · compat-result
   2026-05-17 · BirthPrint · Parchment #E8DCC4 · Seal Red #8B0000
   ═══════════════════════════════════════════════════════════════ */

/* ── Screen backgrounds (already in base, reinforced here) ── */
#screen-compat-list,
#screen-compat-input,
#screen-compat-result {
  background: #E8DCC4 !important;
  color: #3D2B1F !important;
}

/* ────────────────────────────────────────────────
   COMPAT LIST — Ledger Document Header
   ─────────────────────────────────────────────── */

/* profiles-header already styled globally; ensure compat list inherits */
#screen-compat-list .profiles-header {
  background: rgba(232,220,196,0.95) !important;
  border-bottom: 1px solid rgba(201,169,110,0.3) !important;
}
#screen-compat-list .ph-back {
  color: #5A3D2B !important;
}
#screen-compat-list #compat-list-title {
  color: #3D2B1F !important;
  font-family: 'Cormorant Garamond', serif !important;
}

/* Ledger section header inside list */
.compat-section-header {
  text-align: center;
  padding: 20px 0 8px;
}
.compat-section-label {
  font-family: 'DM Mono', 'Courier New', monospace !important;
  font-size: 9px !important;
  letter-spacing: 0.24em !important;
  text-transform: uppercase !important;
  color: #5E4B3B !important;
}
.compat-section-title {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  font-style: italic !important;
  color: #3D2B1F !important;
  letter-spacing: 0.02em !important;
}

/* Ornament divider inside compat list header */
.ledger-ornament-divider {
  display: flex;
  align-items: center;
  gap: 6px;
}
.lod-line {
  flex: 1;
  height: 1px;
  background: rgba(61,43,31,0.18) !important;
}

/* List body */
#screen-compat-list .cl-body {
  color: #3D2B1F !important;
}

/* New record button — Ledger dark on parchment */
#screen-compat-list .cl-new-btn {
  background: #3D2B1F !important;
  color: #E8DCC4 !important;
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 16px !important;
  font-style: italic !important;
  font-weight: 400 !important;
  letter-spacing: 0.05em !important;
  border: none !important;
  border-radius: 0 !important;
}
#screen-compat-list .cl-new-btn:hover {
  background: #5C4A3A !important;
}
#screen-compat-list .cl-new-btn:active {
  opacity: 0.8 !important;
}

/* Saved compat cards */
#screen-compat-list .cl-compat-card {
  background: #F2EBD9 !important;
  border: 1px solid rgba(201,169,110,0.3) !important;
  border-radius: 0 !important;
}
#screen-compat-list .cl-compat-card:active {
  background: rgba(201,169,110,0.12) !important;
}
#screen-compat-list .cl-card-names {
  color: #3D2B1F !important;
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 15px !important;
}
#screen-compat-list .cl-card-heart {
  color: #C9A96E !important;
}
#screen-compat-list .cl-card-date {
  color: rgba(61,43,31,0.45) !important;
  font-family: 'DM Mono', monospace !important;
}
#screen-compat-list .cl-card-score {
  color: #C9A96E !important;
  font-family: 'Cormorant Garamond', serif !important;
}
#screen-compat-list .cl-empty-icon {
  opacity: 0.3 !important;
}
#screen-compat-list .cl-empty-text {
  color: rgba(61,43,31,0.45) !important;
  font-family: 'DM Mono', monospace !important;
}
#screen-compat-list .cl-delete-btn {
  color: rgba(61,43,31,0.25) !important;
}

/* ────────────────────────────────────────────────
   COMPAT INPUT — Ledger Document Form
   ─────────────────────────────────────────────── */

/* Top bar */
#screen-compat-input .input-top-bar {
  background: rgba(232,220,196,0.95) !important;
  border-bottom: 1px solid rgba(201,169,110,0.3) !important;
}
#screen-compat-input .input-back {
  color: #5A3D2B !important;
  background: rgba(232,220,196,0.9) !important;
}
#screen-compat-input .brand-wordmark {
  color: #3D2B1F !important;
}

/* Compat input wrapper bg */
.compat-input-wrap {
  background: #E8DCC4 !important;
}

/* Your chart card */
#screen-compat-input .compat-you-card {
  background: #F2EBD9 !important;
  border: 1px solid rgba(201,169,110,0.35) !important;
  border-radius: 0 !important;
}
#screen-compat-input .compat-you-label {
  color: #5E4B3B !important;
  font-family: 'DM Mono', monospace !important;
}
#screen-compat-input .compat-you-value {
  color: #3D2B1F !important;
  font-family: 'Cormorant Garamond', serif !important;
}
#screen-compat-input .compat-you-sub {
  color: rgba(61,43,31,0.45) !important;
  font-family: 'DM Mono', monospace !important;
}

/* Divider compass rose */
#screen-compat-input .compat-divider-row {
  border-color: rgba(61,43,31,0.15) !important;
}
#screen-compat-input .compat-divider-row::before,
#screen-compat-input .compat-divider-row::after {
  background: rgba(61,43,31,0.15) !important;
}

/* Partner label */
#screen-compat-input .compat-partner-label {
  color: #8B0000 !important;
  opacity: 0.8 !important;
  font-family: 'DM Mono', monospace !important;
}

/* Field groups (Partner input) */
#screen-compat-input .field-label {
  color: #C9A96E !important;
  font-family: 'DM Mono', monospace !important;
  opacity: 1 !important;
}
#screen-compat-input .field-input {
  background: transparent !important;
  border-bottom: 1.5px solid rgba(61,43,31,0.25) !important;
  color: #3D2B1F !important;
  font-family: 'Cormorant Garamond', Georgia, serif !important;
}
#screen-compat-input .field-input::placeholder {
  color: rgba(61,43,31,0.35) !important;
  font-style: italic !important;
}
#screen-compat-input .field-input:focus {
  border-bottom-color: #8B0000 !important;
  box-shadow: 0 2px 0 rgba(139,0,0,0.08) !important;
}
#screen-compat-input .field-select {
  background-color: transparent !important;
  border-bottom: 1.5px solid rgba(61,43,31,0.25) !important;
  color: #3D2B1F !important;
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='rgba(61,43,31,0.35)'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 4px center !important;
}
#screen-compat-input .field-select:focus {
  border-bottom-color: #8B0000 !important;
}
#screen-compat-input .field-select option {
  background: #F2EBD9 !important;
  color: #3D2B1F !important;
}
#screen-compat-input .field-select:disabled {
  opacity: 0.3 !important;
  border-bottom-color: rgba(61,43,31,0.12) !important;
}

/* City results dropdown */
#compat-city-results {
  background: #F2EBD9 !important;
  border-color: rgba(201,169,110,0.35) !important;
  color: #3D2B1F !important;
  border-radius: 0 !important;
}

/* No birth time button */
#screen-compat-input .no-time-btn {
  color: rgba(61,43,31,0.5) !important;
  font-family: 'DM Mono', monospace !important;
  border-bottom-color: transparent !important;
}
#screen-compat-input .no-time-btn.active {
  color: #8B0000 !important;
  border-bottom-color: #8B0000 !important;
}

/* Calculate button */
#screen-compat-input .btn-calculate {
  background: #3D2B1F !important;
  color: #E8DCC4 !important;
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 16px !important;
  font-style: italic !important;
  font-weight: 400 !important;
  letter-spacing: 0.05em !important;
  border: none !important;
  border-radius: 0 !important;
}
#screen-compat-input .btn-calculate:hover {
  background: #5C4A3A !important;
}
#screen-compat-input .btn-calculate:active {
  opacity: 0.8 !important;
}
#screen-compat-input .btn-calculate.ready {
  background: #3D2B1F !important;
  color: #E8DCC4 !important;
  border: none !important;
}

/* ────────────────────────────────────────────────
   COMPAT RESULT — Ledger Result Screens
   Prologue + Ch.1~3 sequential structure
   ─────────────────────────────────────────────── */

/* Kill dark ambient decorations */
#screen-compat-result .bg-grid,
#screen-compat-result .ambient-glow {
  display: none !important;
}

/* Sticky header */
#screen-compat-result .result-sticky-header,
#screen-compat-result #compat-sticky-header {
  background: rgba(232,220,196,0.95) !important;
  backdrop-filter: blur(20px) saturate(1.2) !important;
  box-shadow: 0 1px 0 0 rgba(201,169,110,0.25) !important;
}
#screen-compat-result .ph-back,
#screen-compat-result .compat-back-btn {
  color: #5A3D2B !important;
}
#screen-compat-result #compat-header-title {
  color: #3D2B1F !important;
  font-family: 'Cormorant Garamond', serif !important;
}

/* Chapter tabs (hidden in sequential mode, but styled as fallback) */
#screen-compat-result .compat-chapter-tabs {
  display: flex !important;
}

/* Hero resonance card */
#screen-compat-result .compat-hero-card {
  background: #F2EBD9 !important;
  border: 1px solid rgba(201,169,110,0.4) !important;
  border-radius: 0 !important;
  box-shadow: 0 2px 16px rgba(61,43,31,0.06) !important;
  margin: 56px 16px 8px !important;
}

/* Score elements */
#screen-compat-result .compat-hero-names {
  color: #3D2B1F !important;
  font-family: 'Cormorant Garamond', Georgia, serif !important;
}
#screen-compat-result .compat-score-label {
  color: #5E4B3B !important;
  font-family: 'DM Mono', monospace !important;
}
#screen-compat-result .compat-score-value,
#screen-compat-result #compat-score-display {
  color: #C9A96E !important;
  font-family: 'Cormorant Garamond', serif !important;
}
#screen-compat-result .compat-score-max {
  color: rgba(61,43,31,0.45) !important;
  font-family: 'DM Mono', monospace !important;
}
#screen-compat-result .compat-title,
#screen-compat-result #compat-title-display {
  color: #3D2B1F !important;
  font-family: 'Cormorant Garamond', serif !important;
}
#screen-compat-result .compat-score-bar {
  background: rgba(201,169,110,0.15) !important;
}
#screen-compat-result .compat-score-fill {
  background: linear-gradient(90deg, rgba(201,169,110,0.4), #C9A96E) !important;
}

/* Two-pillar cards */
#screen-compat-result .compat-pillars-row {
  border-color: rgba(201,169,110,0.15) !important;
}
#screen-compat-result .compat-pillar-card {
  background: rgba(232,220,196,0.6) !important;
  border: 1px solid rgba(201,169,110,0.3) !important;
  border-radius: 0 !important;
}
#screen-compat-result .cpc-label {
  color: #5E4B3B !important;
  font-family: 'DM Mono', monospace !important;
}
#screen-compat-result .cpc-name {
  color: #C9A96E !important;
  font-family: 'DM Mono', monospace !important;
}
#screen-compat-result .cpc-ilju {
  color: rgba(61,43,31,0.45) !important;
}
#screen-compat-result .cpc-tagline {
  color: rgba(61,43,31,0.4) !important;
  font-family: 'Cormorant Garamond', Georgia, serif !important;
}

/* Keywords row */
#screen-compat-result .compat-keywords-row {
  color: #5A3D2B !important;
}
#screen-compat-result .compat-keywords-row span,
#screen-compat-result .compat-keyword-tag {
  background: rgba(201,169,110,0.1) !important;
  border: 1px solid rgba(201,169,110,0.3) !important;
  color: #5A3D2B !important;
  font-family: 'DM Mono', monospace !important;
  border-radius: 0 !important;
}

/* Prologue / connection text */
#screen-compat-result .result-section-label {
  color: #8B0000 !important;
  font-family: 'DM Mono', monospace !important;
}
#screen-compat-result .compat-prologue-shape {
  color: rgba(201,169,110,0.7) !important;
  font-family: 'DM Mono', monospace !important;
}
#screen-compat-result .compat-prologue-text {
  color: #3D2B1F !important;
  font-family: 'Cormorant Garamond', Georgia, serif !important;
}
#screen-compat-result .compat-prologue-bridge {
  color: rgba(61,43,31,0.5) !important;
  font-family: 'Cormorant Garamond', serif !important;
}

/* Narrative bridge (prologue→ch1 etc.) */
#screen-compat-result .narrative-bridge {
  color: #3D2B1F !important;
}
#screen-compat-result .bridge-text {
  color: #5A3D2B !important;
  font-family: 'Cormorant Garamond', serif !important;
}
#screen-compat-result .btn-narrative-next {
  background: #3D2B1F !important;
  color: #E8DCC4 !important;
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 16px !important;
  font-style: italic !important;
  font-weight: 400 !important;
  letter-spacing: 0.05em !important;
  border: none !important;
  border-radius: 0 !important;
}
#screen-compat-result .btn-narrative-next:hover {
  background: #5C4A3A !important;
  color: #E8DCC4 !important;
}
#screen-compat-result .btn-narrative-next:active {
  opacity: 0.8 !important;
}
#screen-compat-result .bridge-divider {
  color: #C9A96E !important;
}
#screen-compat-result .divider-symbol {
  color: #C9A96E !important;
}
#screen-compat-result .divider-line {
  background: rgba(201,169,110,0.3) !important;
}

/* Chapter title blocks (Ch.1~3, Epilogue) */
#screen-compat-result .chapter-title-block {
  background: transparent !important;
  border-top: 1px solid rgba(201,169,110,0.2) !important;
}
#screen-compat-result .chapter-number {
  color: #8B0000 !important;
  font-family: 'DM Mono', monospace !important;
  opacity: 0.7 !important;
}
#screen-compat-result .chapter-headline {
  color: #3D2B1F !important;
  font-family: 'Cormorant Garamond', serif !important;
}
#screen-compat-result .chapter-sub {
  color: rgba(61,43,31,0.5) !important;
}
#screen-compat-result .chapter-subtitle {
  color: rgba(61,43,31,0.4) !important;
}

/* Compat entry sections (ch1/ch2/ch3 entries rendered by JS) */
#screen-compat-result .compat-section {
  border-bottom-color: rgba(201,169,110,0.2) !important;
}
#screen-compat-result .compat-section-heading {
  color: #C9A96E !important;
  font-family: 'DM Mono', monospace !important;
  opacity: 1 !important;
}
#screen-compat-result .result-section {
  color: #3D2B1F !important;
}

/* Generic text inside compat result */
#screen-compat-result p,
#screen-compat-result li {
  color: #3D2B1F !important;
}
#screen-compat-result h1,
#screen-compat-result h2,
#screen-compat-result h3 {
  color: #3D2B1F !important;
  font-family: 'Cormorant Garamond', serif !important;
}

/* Invite partner button */
#screen-compat-result .btn-invite-partner {
  background: transparent !important;
  border: 1px solid rgba(61,43,31,0.3) !important;
  color: #3D2B1F !important;
  font-family: 'DM Mono', monospace !important;
  border-radius: 0 !important;
}
#screen-compat-result .btn-invite-partner:hover {
  background: rgba(61,43,31,0.04) !important;
  border-color: #C9A96E !important;
  color: #C9A96E !important;
}

/* Result footer */
#screen-compat-result .result-footer {
  background: rgba(232,220,196,0.95) !important;
  border-top: 1px solid rgba(201,169,110,0.25) !important;
}
#screen-compat-result .btn-footer {
  color: #3D2B1F !important;
  border-color: rgba(201,169,110,0.3) !important;
  font-family: 'DM Mono', monospace !important;
}
#screen-compat-result .btn-footer:hover {
  background: rgba(201,169,110,0.1) !important;
}

/* Sticky paywall CTA in compat */
#screen-compat-result .sticky-paywall-cta {
  background: rgba(232,220,196,0.95) !important;
}
#screen-compat-result .sticky-paywall-btn {
  background: #3D2B1F !important;
  color: #E8DCC4 !important;
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 16px !important;
  font-style: italic !important;
  font-weight: 400 !important;
  letter-spacing: 0.05em !important;
  border: none !important;
  border-radius: 0 !important;
}
#screen-compat-result .sticky-paywall-btn:hover {
  background: #5C4A3A !important;
  color: #E8DCC4 !important;
}
#screen-compat-result .sticky-paywall-btn:active {
  opacity: 0.8 !important;
}

/* PC compat sticky header title color fix */
#screen-compat-result h2[id="compat-header-title"] {
  color: #3D2B1F !important;
}

/* ── Prologue Share Picker ── */
#prologue-share-picker-overlay {
  font-family: 'Cormorant Garamond', Georgia, serif;
}
#prologue-share-picker-overlay button:focus-visible {
  outline: 2px solid rgba(201,168,76,0.6);
  outline-offset: 2px;
}
#prologue-share-picker-overlay #psp-hero:hover,
#prologue-share-picker-overlay #psp-manseryok:hover,
#prologue-share-picker-overlay #psp-result:hover {
  background: #F5EDD8 !important;
  border-color: rgba(61,43,31,0.28) !important;
}

/* ═══════════════════════════════════════════════════════════════
   CRITICAL FIX: Text visibility on parchment (2026-05-22)
   All text in reading screens MUST be dark on parchment.
   ═══════════════════════════════════════════════════════════════ */

/* Prologue narrative text — force dark */
#screen-result .prologue-subsection-title {
  color: #5A3D2B !important;
}
#screen-result .prologue-subsection-text {
  color: #3D2B1F !important;
}
#screen-result .chart-narrative {
  color: #3D2B1F !important;
}

/* All narrative body text — force dark */
#screen-result .ch1-section-text,
#screen-result .ch2-section-text,
#screen-result .ch3-section-text {
  color: #3D2B1F !important;
}

/* Prologue block labels — seal red for visibility */
#screen-result .prologue-block-label {
  color: #8B0000 !important;
}

/* Teaser blur gradient — parchment color, not black */
#screen-result div[style*="rgba(8,8"] {
  background: linear-gradient(to bottom, transparent 0%, #E8DCC4 100%) !important;
}

/* Chapter number label (Chapter I, II, III) */
#screen-result .chapter-number,
#screen-compat-result .chapter-number {
  color: #8B0000 !important;
  opacity: 0.8 !important;
}

/* Hero card text */
#screen-result .hero-tagline {
  color: #3D2B1F !important;
}
#screen-result .tagline-ilju-title {
  color: #8B0000 !important;
  font-size: 30px !important;
  font-weight: 700 !important;
}

/* Paywall text in reading */
#screen-result .paywall-headline {
  color: #3D2B1F !important;
}
#screen-result .paywall-title {
  color: #5A3D2B !important;
}
#screen-result .paywall-sub {
  color: rgba(61,43,31,0.5) !important;
}
#screen-result .paywall-note {
  color: rgba(61,43,31,0.45) !important;
}
#screen-result .paywall-dismiss {
  color: rgba(61,43,31,0.5) !important;
}

/* Inline paywall floating */
.ch-paywall-floating .paywall-msg {
  color: #5A3D2B !important;
}
.ch-paywall-floating .paywall-lock {
  color: #8B0000 !important;
}

/* ═══════════════════════════════════════════════════════════════
   DEFINITIVE TEXT COLOR FIX — 2026-05-23
   Force ALL p elements in reading screen to dark ink.
   Overrides pc-overrides.css #screen-result p { color:white !important }
   both on mobile and desktop. Specificity: (1,3,1) beats (1,0,1).
   ═══════════════════════════════════════════════════════════════ */
#screen-result .ch1-section .ch1-section-text p,
#screen-result .ch2-section .ch2-section-text p,
#screen-result .ch3-section .ch3-section-text p,
#screen-result .result-section .ch1-section-text p,
#screen-result .ch-teaser-blur .teaser-blurred p,
#screen-result .ch1-section p,
#screen-result .ch2-section p,
#screen-result .ch3-section p,
#screen-result .result-section p {
  color: #3D2B1F !important;
}

/* Teaser opacity fix — increase from 0.45 to 0.75 for readability */
#screen-result .ch-teaser-blur .teaser-blurred {
  opacity: 0.75 !important;
}

/* Desktop override — pc-overrides.css has #screen-result p { color:white !important }
   inside @media min-width:1024px. Neutralize it with higher specificity. */
@media (min-width: 1024px) {
  #screen-result .ch1-section p,
  #screen-result .ch2-section p,
  #screen-result .ch3-section p,
  #screen-result .result-section p,
  #screen-result .ch-teaser-blur .teaser-blurred p,
  #screen-result .ch1-section-text p,
  #screen-result .ch2-section-text p,
  #screen-result .ch3-section-text p {
    color: #3D2B1F !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   COMPAT RESULT TEXT COLOR FIX — 2026-05-23
   Mirror the #screen-result dark ink fix for #screen-compat-result.
   Overrides pc-overrides.css .compat-section-text white color.
   ═══════════════════════════════════════════════════════════════ */
#screen-compat-result .compat-section p,
#screen-compat-result .compat-section-text p,
#screen-compat-result .result-section p,
#screen-compat-result .compat-section-text,
#screen-compat-result .ch-teaser-blur .teaser-blurred p {
  color: #3D2B1F !important;
}

#screen-compat-result .ch-teaser-blur .teaser-blurred {
  opacity: 0.75 !important;
}

@media (min-width: 1024px) {
  #screen-compat-result .compat-section p,
  #screen-compat-result .compat-section-text p,
  #screen-compat-result .compat-section-text,
  #screen-compat-result .result-section p,
  #screen-compat-result .ch-teaser-blur .teaser-blurred p {
    color: #3D2B1F !important;
  }
}

/* ── Unified share button style (all share buttons → chapter-share-btn look) ── */
#lbl-share-card,
#lbl-share-card-compat {
  background: #DDD3B5 !important;
  border: none !important;
  border-top: 1px solid rgba(139,0,0,0.20) !important;
  border-bottom: 1px solid rgba(139,0,0,0.12) !important;
  color: #3D2B1F !important;
  font-family: 'DM Mono', 'Courier New', monospace !important;
  font-size: 0.72rem !important;
  letter-spacing: 1.2px !important;
  text-align: left !important;
  padding: 16px 24px !important;
  min-height: 56px !important;
  border-radius: 0 !important;
}
#lbl-share-card:hover,
#lbl-share-card-compat:hover {
  background: #D0C8A8 !important;
  color: #8B0000 !important;
}

/* ── Share strip margin — unified spacing above all Share Chart buttons ── */
.chapter-share-strip {
  margin-top: 26px !important;
}
/* Famous card → Share Chart: optically compensate (card has less trailing whitespace) */
.prologue-famous-wrap .chapter-share-strip {
  margin-top: 48px !important;
}
