:root {
  --bg-deep: #0b090f;
  --bg-cathedral: #14111b;
  --parchment: #f7f1e4;
  --parchment-soft: #efe6d2;
  --parchment-ink: #1e1812;
  --parchment-muted: #5a4e3f;
  --obsidian: #110e17;
  --obsidian-card: #171320;
  --obsidian-ink: #f4ece0;
  --obsidian-muted: #b8ac9e;
  --gold: #c9a24b;
  --gold-bright: #efd07e;
  --gold-deep: #8d6b24;
  --crimson: #a8243a;
  --crimson-bright: #df4862;
  --crimson-soft: rgba(168, 36, 58, 0.16);
  --gold-soft: rgba(201, 162, 75, 0.16);
  --line-dark: rgba(201, 162, 75, 0.24);
  --line-light: rgba(141, 107, 36, 0.28);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --font-display: "Cinzel", Georgia, serif;
  --font-scripture: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }
body.cl-body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 18% 0%, rgba(201, 162, 75, 0.12), transparent 42%),
              radial-gradient(circle at 84% 4%, rgba(168, 36, 58, 0.15), transparent 44%),
              var(--bg-deep);
  color: var(--obsidian-ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.68;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body[data-realm="gothic"] {
  background: radial-gradient(circle at 50% 0%, rgba(168, 36, 58, 0.22), transparent 46%),
              radial-gradient(circle at 15% 20%, rgba(201, 162, 75, 0.06), transparent 40%),
              #08060b;
}

.cl-aura-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.92;
}
.cl-vfx-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 88;
}
.cl-header, .cl-main, .cl-footer { position: relative; z-index: 2; }
.cl-wrap { width: min(1140px, calc(100% - 32px)); margin-inline: auto; }
.cl-skip {
  position: absolute; left: -9999px; top: 8px; z-index: 99;
  padding: 8px 14px; background: var(--gold); color: var(--bg-deep); font-weight: 700; border-radius: 6px;
}
.cl-skip:focus { left: 12px; }

/* Header */
.cl-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(11, 9, 15, 0.84);
  border-bottom: 1px solid var(--line-dark);
}
.cl-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
  padding-block: 8px;
}
.cl-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--obsidian-ink);
  text-decoration: none;
}
.cl-brand-sigil { display: inline-flex; flex-shrink: 0; }
.cl-brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.cl-brand-text strong, .cl-footer-brand .cl-brand strong {
  font-family: var(--font-display);
  font-size: 1.08rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.cl-brand-text small {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--obsidian-muted);
}
.cl-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cl-nav a {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--obsidian-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease;
}
.cl-nav a:hover { color: var(--gold-bright); background: rgba(201, 162, 75, 0.1); }
.cl-nav a[aria-current="page"] {
  color: var(--gold-bright);
  background: rgba(201, 162, 75, 0.16);
  border: 1px solid rgba(201, 162, 75, 0.35);
}
.cl-header-tools { display: flex; align-items: center; gap: 10px; }
.cl-sfx-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  background: rgba(20, 17, 27, 0.9);
  color: var(--gold-bright);
  font: 600 0.82rem/1 var(--font-sans);
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.cl-sfx-toggle:hover { border-color: var(--gold); background: rgba(201, 162, 75, 0.14); }
.cl-sfx-toggle[aria-pressed="true"] { color: var(--obsidian-muted); border-color: rgba(255, 255, 255, 0.14); }
.cl-mobile-nav { display: none; position: relative; }
.cl-mobile-nav summary {
  list-style: none;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  cursor: pointer;
}
.cl-mobile-nav summary::-webkit-details-marker { display: none; }
.cl-mobile-nav summary span { display: block; width: 18px; height: 2px; background: var(--gold-bright); margin: 2px 0; }
.cl-mobile-nav nav {
  position: absolute; right: 0; top: 46px; width: 230px;
  padding: 10px; border-radius: var(--radius-md);
  background: #14101c; border: 1px solid var(--line-dark);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
  display: flex; flex-direction: column; gap: 4px;
}
.cl-mobile-nav nav a {
  padding: 9px 12px; border-radius: 8px;
  color: var(--obsidian-ink); text-decoration: none; font-size: 0.92rem;
}
.cl-mobile-nav nav a:hover { background: var(--gold-soft); color: var(--gold-bright); }

/* Dual-Realm Hero */
.cl-hero {
  position: relative;
  padding: 16px 0 38px;
  border-bottom: 1px solid var(--line-dark);
  overflow: hidden;
}
.cl-hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.cl-hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  opacity: 0.34;
  filter: saturate(1.06) contrast(1.04);
}
.cl-hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(201, 162, 75, 0.14) 0%, rgba(11, 9, 15, 0.56) 50%, rgba(168, 36, 58, 0.22) 100%),
    linear-gradient(180deg, rgba(11, 9, 15, 0.58) 0%, rgba(11, 9, 15, 0.78) 55%, var(--bg-deep) 100%);
}
.cl-hero-veil.is-gothic {
  background:
    radial-gradient(circle at 50% 22%, rgba(168, 36, 58, 0.28), transparent 55%),
    linear-gradient(180deg, rgba(8, 6, 11, 0.56) 0%, rgba(8, 6, 11, 0.84) 65%, #08060b 100%);
}
.cl-hero-inner { position: relative; z-index: 2; }

/* Sacred vs Gothic Realm Switcher */
.cl-realm-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 12px;
}
.cl-realm-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--line-dark);
  background: rgba(17, 14, 23, 0.78);
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.cl-realm-btn:hover { transform: translateY(-1px); }
.cl-realm-btn strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cl-realm-btn small { display: block; font-size: 0.74rem; opacity: 0.84; }
.cl-realm-btn.is-sacred { color: var(--gold-bright); }
.cl-realm-btn.is-sacred.is-active {
  background: linear-gradient(135deg, rgba(247, 241, 228, 0.96), rgba(235, 217, 174, 0.95));
  color: #1c150c;
  border-color: var(--gold-bright);
  box-shadow: 0 0 28px rgba(239, 208, 126, 0.34);
}
.cl-realm-btn.is-gothic { color: #f4a4b2; }
.cl-realm-btn.is-gothic.is-active {
  background: linear-gradient(135deg, #2d0d17, #140912);
  color: #ffdce2;
  border-color: var(--crimson-bright);
  box-shadow: 0 0 28px rgba(223, 72, 98, 0.36);
}
.cl-realm-sigil { font-size: 1.15rem; }
.cl-realm-vs {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold);
  opacity: 0.85;
}

.cl-hero-head { text-align: center; max-width: 780px; margin: 0 auto 14px; }
.cl-kicker {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.cl-hero-head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.95rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, #fffdf7 0%, #f5dfa0 58%, #c9a24b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.58));
}
body[data-realm="gothic"] .cl-hero-head h1 {
  background: linear-gradient(180deg, #fff6f7 0%, #f8c2cc 55%, #df4862 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cl-hero-lead {
  margin: 6px auto 4px;
  max-width: 60ch;
  color: #e9e0d0;
  font-size: 0.96rem;
}
.cl-epigraph-mini {
  margin: 0 auto;
  font-family: var(--font-scripture);
  font-style: italic;
  font-size: 1.02rem;
  color: rgba(242, 214, 136, 0.92);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
.cl-epigraph-mini cite {
  font-style: normal;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: rgba(226, 214, 196, 0.78);
  margin-left: 6px;
}
.cl-epigraph-mini.is-gothic { color: rgba(249, 182, 195, 0.94); }
.cl-epigraph {
  display: inline-block;
  margin: 0 auto;
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 75, 0.42);
  background: linear-gradient(180deg, rgba(22, 18, 30, 0.82), rgba(12, 10, 18, 0.84));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(239, 208, 126, 0.08) inset;
  font-family: var(--font-scripture);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold-bright);
}
.cl-epigraph cite {
  font-style: normal;
  font-family: var(--font-display);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: #d6cbb8;
  margin-left: 8px;
}
.cl-epigraph.is-gothic {
  border-color: rgba(223, 72, 98, 0.48);
  color: #f8b7c2;
}

/* Interactive Quiz Sanctuary Card — Illuminated Manuscript & Gothic Velvet */
.cl-quiz-shell {
  max-width: 880px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3.2vw, 36px);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 250, 236, 0.85), transparent 55%),
    radial-gradient(circle at 12% 100%, rgba(201, 162, 75, 0.16), transparent 45%),
    linear-gradient(165deg, #faf4e7 0%, #f1e6cf 56%, #e9dac0 100%);
  color: var(--parchment-ink);
  border: 1.5px solid #c9a24b;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 250, 232, 0.72) inset,
    0 0 60px rgba(201, 162, 75, 0.22);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.4s ease;
}
.cl-quiz-shell::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(141, 107, 36, 0.32);
  border-radius: 13px;
  pointer-events: none;
}
.cl-quiz-shell::after {
  content: "✦";
  position: absolute;
  top: 1px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 12px;
  font-size: 0.78rem;
  color: #6b4e16;
  background: #f8f1e2;
  letter-spacing: 0.2em;
  pointer-events: none;
}
.cl-quiz-shell.is-gothic {
  background:
    radial-gradient(circle at 50% 0%, rgba(223, 72, 98, 0.18), transparent 52%),
    radial-gradient(circle at 88% 100%, rgba(201, 162, 75, 0.09), transparent 46%),
    linear-gradient(165deg, #1b1324 0%, #110c18 58%, #0a0710 100%);
  color: var(--obsidian-ink);
  border-color: rgba(223, 72, 98, 0.62);
  box-shadow:
    0 32px 84px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(223, 72, 98, 0.2) inset,
    0 0 64px rgba(168, 36, 58, 0.28);
}
.cl-quiz-shell.is-gothic::before { border-color: rgba(201, 162, 75, 0.22); }
.cl-quiz-shell.is-gothic::after {
  content: "❖";
  color: var(--crimson-bright);
  background: #191121;
}
.cl-quiz-shell.is-pulse-sacred {
  animation: clShellPulseSacred 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.cl-quiz-shell.is-pulse-gothic {
  animation: clShellPulseGothic 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes clShellPulseSacred {
  0% { box-shadow: 0 30px 80px rgba(0,0,0,0.65), 0 0 0 0 rgba(239,208,126,0.75), 0 0 60px rgba(201,162,75,0.22); }
  50% { box-shadow: 0 30px 80px rgba(0,0,0,0.65), 0 0 0 14px rgba(239,208,126,0), 0 0 90px rgba(239,208,126,0.52); }
  100% { box-shadow: 0 30px 80px rgba(0,0,0,0.65), 0 0 0 0 rgba(239,208,126,0), 0 0 60px rgba(201,162,75,0.22); }
}
@keyframes clShellPulseGothic {
  0% { box-shadow: 0 32px 84px rgba(0,0,0,0.8), 0 0 0 0 rgba(223,72,98,0.8), 0 0 64px rgba(168,36,58,0.28); }
  50% { box-shadow: 0 32px 84px rgba(0,0,0,0.8), 0 0 0 14px rgba(223,72,98,0), 0 0 96px rgba(223,72,98,0.55); }
  100% { box-shadow: 0 32px 84px rgba(0,0,0,0.8), 0 0 0 0 rgba(223,72,98,0), 0 0 64px rgba(168,36,58,0.28); }
}
/* Ornate Gilded Corner Medallions */
.cl-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  pointer-events: none;
  opacity: 0.72;
  z-index: 3;
}
.cl-corner-tl { top: 13px; left: 13px; border-top: 2px solid var(--gold); border-left: 2px solid var(--gold); border-top-left-radius: 5px; }
.cl-corner-tr { top: 13px; right: 13px; border-top: 2px solid var(--gold); border-right: 2px solid var(--gold); border-top-right-radius: 5px; }
.cl-corner-bl { bottom: 13px; left: 13px; border-bottom: 2px solid var(--gold); border-left: 2px solid var(--gold); border-bottom-left-radius: 5px; }
.cl-corner-br { bottom: 13px; right: 13px; border-bottom: 2px solid var(--gold); border-right: 2px solid var(--gold); border-bottom-right-radius: 5px; }
.is-gothic .cl-corner { border-color: rgba(223, 72, 98, 0.72); }

/* Friend Challenge Banner */
.cl-friend-banner {
  margin-bottom: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(17, 14, 23, 0.94), rgba(40, 16, 26, 0.92));
  color: var(--obsidian-ink);
  border: 1px solid var(--gold);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cl-friend-banner strong {
  font-family: var(--font-display);
  color: var(--gold-bright);
  letter-spacing: 0.04em;
}
.cl-friend-banner p { margin: 2px 0 0; font-size: 0.9rem; color: #ddd2c0; }

/* Live Polarity Meter & HUD */
.cl-quiz-hud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.cl-step-badge {
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.is-gothic .cl-step-badge { color: var(--gold-bright); }
.cl-trait-pill {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(141, 107, 36, 0.14);
  color: var(--gold-deep);
}
.is-gothic .cl-trait-pill {
  background: rgba(223, 72, 98, 0.2);
  color: #ffc5cf;
}

.cl-progress-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(141, 107, 36, 0.16);
  overflow: hidden;
  margin-bottom: 14px;
}
.is-gothic .cl-progress-track { background: rgba(255, 255, 255, 0.09); }
.cl-progress-fill {
  height: 100%;
  width: 3%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
  transition: width 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.is-gothic .cl-progress-fill {
  background: linear-gradient(90deg, var(--crimson), var(--crimson-bright), var(--gold));
}

/* Dynamic Light vs Shadow Balance Beam */
.cl-polarity-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cl-pol-left { color: var(--gold-deep); }
.is-gothic .cl-pol-left { color: var(--gold-bright); }
.cl-pol-right { color: var(--crimson); }
.is-gothic .cl-pol-right { color: #f68699; }
.cl-pol-track {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(201, 162, 75, 0.45), rgba(168, 36, 58, 0.45));
}
.cl-pol-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold-bright);
  border: 2px solid #16111c;
  box-shadow: 0 0 12px rgba(201, 162, 75, 0.85);
  transform: translate(-50%, -50%);
  transition: left 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.cl-q-card { position: relative; z-index: 2; padding: 6px 0 4px; }
.cl-q-text {
  margin: 4px 0 22px;
  text-align: center;
  font-family: var(--font-scripture);
  font-size: clamp(1.42rem, 2.5vw, 1.88rem);
  font-weight: 600;
  line-height: 1.32;
  min-height: 3.2em;
  display: grid;
  place-items: center;
}

/* Likert Scale Buttons */
.cl-likert {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.cl-likert-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 76px;
  padding: 10px 8px;
  border-radius: 12px;
  border: 1.5px solid var(--line-light);
  background: rgba(255, 255, 255, 0.72);
  color: var(--parchment-ink);
  font: 600 0.8rem/1.2 var(--font-sans);
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}
.is-gothic .cl-likert-btn {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(201, 162, 75, 0.22);
  color: var(--obsidian-ink);
}
.cl-likert-btn:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 8px 20px rgba(201, 162, 75, 0.22);
}
.is-gothic .cl-likert-btn:hover {
  border-color: var(--crimson-bright);
  box-shadow: 0 8px 22px rgba(223, 72, 98, 0.28);
}
.cl-likert-btn.is-selected {
  background: linear-gradient(135deg, #211926, #322416);
  color: var(--gold-bright);
  border-color: var(--gold);
  box-shadow: 0 8px 24px rgba(201, 162, 75, 0.34);
}
.is-gothic .cl-likert-btn.is-selected {
  background: linear-gradient(135deg, #6e1528, #2b0c15);
  color: #fff2f4;
  border-color: var(--crimson-bright);
}
.cl-likert-dot {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  border: 1.5px solid currentColor;
  opacity: 0.85;
}

.cl-quiz-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(141, 107, 36, 0.18);
  font-size: 0.84rem;
  color: var(--parchment-muted);
}
.is-gothic .cl-quiz-foot { border-color: rgba(255, 255, 255, 0.1); color: var(--obsidian-muted); }
.cl-link-btn {
  border: none;
  background: transparent;
  color: inherit;
  font: 600 0.85rem/1 var(--font-sans);
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
}
.cl-link-btn:hover:not(:disabled) { background: rgba(201, 162, 75, 0.16); }
.cl-link-btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* Buttons */
.cl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font: 700 0.9rem/1.1 var(--font-sans);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.cl-btn:hover { transform: translateY(-1px); }
.cl-btn-gold {
  background: linear-gradient(135deg, #e5c36c, #b98e35);
  color: #151008;
  box-shadow: 0 8px 24px rgba(201, 162, 75, 0.28);
}
.cl-btn-crimson {
  background: linear-gradient(135deg, #b82942, #7a1528);
  color: #fff4f6;
  border-color: rgba(244, 146, 163, 0.35);
  box-shadow: 0 8px 24px rgba(168, 36, 58, 0.34);
}
.cl-btn-ghost {
  background: transparent;
  color: inherit;
  border-color: currentColor;
  opacity: 0.9;
}

/* Illuminated Soul Alignment Dossier (Results) */
.cl-dossier { position: relative; z-index: 2; }
.cl-dossier-header {
  text-align: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-light);
  margin-bottom: 20px;
}
.is-gothic .cl-dossier-header { border-color: rgba(201, 162, 75, 0.24); }
.cl-dossier-seal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(141, 107, 36, 0.14);
  color: var(--gold-deep);
  margin-bottom: 8px;
}
.is-gothic .cl-dossier-seal { background: rgba(223, 72, 98, 0.2); color: #ffc6d0; }
.cl-dossier-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.15;
}
.cl-dossier-archetype {
  margin: 6px 0 0;
  font-family: var(--font-scripture);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--gold-deep);
}
.is-gothic .cl-dossier-archetype { color: var(--gold-bright); }

.cl-dossier-grid {
  display: grid;
  grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 22px;
}
.cl-radar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px;
  border-radius: var(--radius-md);
  background: rgba(17, 14, 23, 0.94);
  border: 1px solid rgba(201, 162, 75, 0.4);
  color: var(--obsidian-ink);
}
.cl-radar-wrap svg { width: 100%; max-width: 292px; height: auto; }
.cl-radar-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
  font-size: 0.76rem;
  color: #ddd2be;
}
.cl-leg-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }

.cl-bars { display: flex; flex-direction: column; gap: 10px; }
.cl-bar-row { display: grid; gap: 4px; }
.cl-bar-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 700;
}
.cl-bar-top span:last-child { font-family: var(--font-display); }
.cl-bar-track {
  height: 9px;
  border-radius: 999px;
  background: rgba(141, 107, 36, 0.16);
  overflow: hidden;
}
.is-gothic .cl-bar-track { background: rgba(255, 255, 255, 0.08); }
.cl-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
}
.is-gothic .cl-bar-fill {
  background: linear-gradient(90deg, var(--crimson), var(--crimson-bright));
}

/* Scripture Illumination & Opposing Shadow Cards */
.cl-scripture-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.cl-scripture-card {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-light);
  background: rgba(255, 255, 255, 0.58);
}
.is-gothic .cl-scripture-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(201, 162, 75, 0.25);
}
.cl-scripture-card.is-shadow-box {
  background: linear-gradient(155deg, #1b111a, #100b13);
  color: var(--obsidian-ink);
  border-color: rgba(223, 72, 98, 0.45);
}
.cl-scripture-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--gold-deep);
}
.is-shadow-box .cl-scripture-tag, .is-gothic .cl-scripture-tag { color: #f69cab; }
.cl-scripture-quote {
  margin: 0 0 8px;
  font-family: var(--font-scripture);
  font-style: italic;
  font-size: 1.24rem;
  line-height: 1.38;
}
.cl-scripture-ref {
  display: block;
  font-family: var(--font-display);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  opacity: 0.82;
  margin-bottom: 8px;
}
.cl-scripture-note { margin: 0; font-size: 0.88rem; line-height: 1.5; opacity: 0.92; }

/* Viral Friend Comparison Summary */
.cl-compare-box {
  margin-bottom: 20px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(201, 162, 75, 0.16), rgba(168, 36, 58, 0.16));
  border: 1px solid var(--gold);
}
.cl-compare-box strong { font-family: var(--font-display); }
.cl-compare-box p { margin: 4px 0 0; font-size: 0.9rem; }

/* Personalize Name + Viral Share + PDF Export Bar */
.cl-share-studio {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(17, 14, 23, 0.94);
  color: var(--obsidian-ink);
  border: 1px solid rgba(201, 162, 75, 0.38);
  margin-bottom: 16px;
}
.cl-share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.cl-name-input {
  flex: 1 1 200px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 75, 0.45);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font: 500 0.92rem/1.25 var(--font-sans);
}
.cl-studio-controls .cl-name-input {
  flex: 0 0 auto;
  width: 100%;
  height: 46px;
}
.cl-name-input::placeholder { color: #a79c8e; }
.cl-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cl-share-status {
  margin: 8px 0 0;
  font-size: 0.84rem;
  color: var(--gold-bright);
  min-height: 1.2em;
}
.cl-next-realm {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(141, 107, 36, 0.22);
}

/* Editorial Content Sections */
.cl-content-wrap { padding: 48px 0 64px; }
.cl-band-head { text-align: center; max-width: 720px; margin: 0 auto 28px; }
.cl-band-kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 6px;
}
.cl-band-head h2, .cl-faq h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  color: #fbf5e7;
}
.cl-band-head p { margin: 0; color: var(--obsidian-muted); }
.cl-band-head a { color: var(--gold-bright); }

.cl-duality-band { margin-bottom: 52px; }
.cl-duality-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.cl-realm-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cl-realm-card.is-sacred {
  background: linear-gradient(155deg, var(--parchment), var(--parchment-soft));
  color: var(--parchment-ink);
  border: 1px solid var(--gold);
}
.cl-realm-card.is-gothic {
  background: linear-gradient(155deg, #21101b, #0e0a13);
  color: var(--obsidian-ink);
  border: 1px solid rgba(223, 72, 98, 0.45);
}
.cl-card-badge {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}
.cl-realm-card h3 { margin: 0; font-family: var(--font-display); font-size: 1.35rem; }
.cl-realm-card p { margin: 0 0 8px; font-size: 0.95rem; }
.cl-realm-card .cl-btn { align-self: flex-start; margin-top: auto; }

/* Prose Article */
.cl-prose {
  max-width: 820px;
  margin: 0 auto 48px;
  color: #dfd6c6;
}
.cl-prose h2 {
  margin: 38px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.3vw, 1.78rem);
  color: var(--gold-bright);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(201, 162, 75, 0.22);
}
.cl-prose h3 {
  margin: 24px 0 8px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: #fbf5e7;
}
.cl-prose p { margin: 0 0 15px; }
.cl-prose a { color: var(--gold-bright); text-underline-offset: 3px; }
.cl-prose strong { color: #fff8ea; }
.cl-prose blockquote {
  margin: 18px 0;
  padding: 14px 20px;
  border-left: 3px solid var(--gold);
  background: rgba(201, 162, 75, 0.08);
  border-radius: 0 10px 10px 0;
  font-family: var(--font-scripture);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--gold-bright);
}
.cl-prose ul, .cl-prose ol { margin: 0 0 18px; padding-left: 22px; }
.cl-prose li { margin-bottom: 7px; }
.cl-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 24px;
  font-size: 0.92rem;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  overflow: hidden;
}
.cl-prose th, .cl-prose td {
  padding: 11px 13px;
  text-align: left;
  border-bottom: 1px solid rgba(201, 162, 75, 0.16);
}
.cl-prose th {
  background: rgba(201, 162, 75, 0.14);
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.cl-prose img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-dark);
  margin: 20px 0 10px;
}

/* Inner Article Shell */
.cl-article-wrap { padding: 30px 0 64px; max-width: 860px; }
.cl-breadcrumbs {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: var(--obsidian-muted); margin-bottom: 16px;
}
.cl-breadcrumbs a { color: var(--gold-bright); text-decoration: none; }
.cl-article-head { margin-bottom: 28px; }
.cl-article-head h1 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  color: #fcf7eb;
}
.cl-article-lead { margin: 0 0 16px; font-size: 1.05rem; color: #ddd2c0; }
.cl-epigraph-article { border-radius: 12px; display: block; }
.cl-cta-strip {
  margin-top: 36px;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(201, 162, 75, 0.14), rgba(168, 36, 58, 0.18));
  border: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cl-cta-strip strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--gold-bright); }
.cl-cta-strip p { margin: 4px 0 0; color: var(--obsidian-muted); font-size: 0.92rem; }
.cl-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* FAQ & Comments */
.cl-faq { max-width: 820px; margin: 0 auto 48px; }
.cl-faq-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.cl-faq-item {
  border-radius: var(--radius-md);
  border: 1px solid var(--line-dark);
  background: rgba(20, 17, 27, 0.78);
  padding: 14px 18px;
}
.cl-faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
  color: #fcf7eb;
  cursor: pointer;
}
.cl-faq-item summary::-webkit-details-marker { display: none; }
.cl-faq-plus { color: var(--gold-bright); font-size: 1.2rem; font-weight: 700; }
.cl-faq-item[open] .cl-faq-plus { transform: rotate(45deg); }
.cl-faq-item p { margin: 10px 0 0; color: var(--obsidian-muted); font-size: 0.94rem; }

.cl-comments-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
}
.cl-comment-form {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}
.cl-comment-form input,
.cl-comment-form textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-dark);
  background: rgba(20, 17, 27, 0.86);
  color: var(--obsidian-ink);
  font: 500 0.92rem/1.45 var(--font-sans);
}
.cl-comment-form textarea { resize: vertical; min-height: 82px; }
.cl-comment-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--gold-bright);
}
.cl-comment-list { display: grid; gap: 10px; }
.cl-comment-list[data-gf-empty]::before {
  content: "Be the first explorer to share your Virtue, Shadow, or Rarity Tier.";
  display: block;
  padding: 16px;
  border-radius: 12px;
  border: 1px dashed rgba(201, 162, 75, 0.28);
  color: var(--obsidian-muted);
  text-align: center;
  font-size: 0.9rem;
}
.cl-comment-item {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(201, 162, 75, 0.22);
  background: rgba(20, 17, 27, 0.72);
}
.cl-comment-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 0.82rem;
  color: var(--gold-bright);
}
.cl-comment-meta time { color: var(--obsidian-muted); }
.cl-comment-item p { margin: 0; font-size: 0.93rem; color: #e6dccb; }
.cl-404 { padding: 80px 0; text-align: center; max-width: 640px; }
.cl-404 h1 { font-family: var(--font-display); color: var(--gold-bright); }
.cl-404 .cl-cta-actions { justify-content: center; margin-top: 22px; }

/* Footer */
.cl-footer {
  border-top: 1px solid var(--line-dark);
  background: #08060c;
  padding: 36px 0 28px;
}
.cl-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(201, 162, 75, 0.14);
}
.cl-footer-brand { max-width: 440px; }
.cl-footer-brand p { margin: 8px 0 0; font-size: 0.86rem; color: var(--obsidian-muted); }
.cl-footer-links { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.cl-footer-links a { color: #d6cbb8; text-decoration: none; font-size: 0.88rem; }
.cl-footer-links a:hover { color: var(--gold-bright); }
.cl-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 16px;
  font-size: 0.8rem;
  color: #8c8172;
}

@media (max-width: 980px) {
  .cl-nav { display: none; }
  .cl-mobile-nav { display: block; }
  .cl-dossier-grid, .cl-scripture-pair, .cl-duality-cards { grid-template-columns: 1fr; }
}
.cl-brand-text { white-space: nowrap; }
.cl-radar-wrap svg { width: 100%; max-width: 340px; height: auto; }

/* Midpoint Reflection Card & Compliant 6s Sponsored Reveal Gate */
.cl-gate-card {
  text-align: center;
  padding: 10px 6px 4px;
}
.cl-gate-title {
  margin: 4px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.38rem, 2.6vw, 1.92rem);
}
.cl-gate-sub {
  margin: 0 auto 18px;
  max-width: 58ch;
  font-size: 0.96rem;
  opacity: 0.9;
}
.cl-blur-preview {
  position: relative;
  max-width: 340px;
  margin: 0 auto 18px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: rgba(17, 14, 23, 0.94);
  border: 1px solid rgba(201, 162, 75, 0.42);
  overflow: hidden;
}
.cl-blur-preview svg {
  width: 100%;
  max-width: 260px;
  height: auto;
  filter: blur(8px) saturate(1.1);
  opacity: 0.72;
  pointer-events: none;
}
.cl-blur-badge {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 14px;
  background: radial-gradient(circle, rgba(11, 9, 15, 0.56), rgba(11, 9, 15, 0.82));
}
.cl-blur-badge span {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: rgba(17, 14, 23, 0.92);
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cl-gate-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}
.cl-btn:disabled {
  opacity: 0.58;
  cursor: wait;
  transform: none !important;
}
.cl-mid-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 18px;
}
.cl-mid-pill {
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid var(--line-light);
  background: rgba(201, 162, 75, 0.12);
  font-size: 0.88rem;
  font-weight: 600;
}
.is-gothic .cl-mid-pill {
  border-color: rgba(223, 72, 98, 0.4);
  background: rgba(223, 72, 98, 0.14);
}

/* Museum-Styled Dual Ad Slots (Zero Overlap · Hidden on First Screen & PDF Print) */
.cl-sponsor-box {
  margin: 18px auto 6px;
  padding: 10px 14px 12px;
  border-radius: var(--radius-md);
  background: rgba(17, 14, 23, 0.94);
  border: 1px solid rgba(201, 162, 75, 0.34);
  color: var(--obsidian-ink);
  text-align: center;
}
.cl-sponsor-box[hidden] { display: none !important; }
.cl-sponsor-label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
}
.cl-sponsor-demo {
  padding: 20px 12px;
  border: 1px dashed rgba(201, 162, 75, 0.38);
  border-radius: 8px;
  background: rgba(201, 162, 75, 0.06);
  color: #e4d8c2;
  font-size: 0.84rem;
}
.cl-native-slot {
  max-width: 960px;
  margin: 26px auto 34px;
}
.cl-ad-dock {
  position: fixed;
  left: 50%;
  bottom: 6px;
  z-index: 60;
  width: min(772px, calc(100vw - 16px));
  padding: 4px 32px 4px 6px;
  border-radius: 10px;
  background: rgba(14, 11, 20, 0.96);
  border: 1px solid rgba(201, 162, 75, 0.48);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65);
  transform: translate(-50%, 140%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.12s ease;
}
.cl-ad-dock.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}
.cl-ad-dock[hidden] { display: none !important; }
.cl-ad-close {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  border: 1px solid rgba(201, 162, 75, 0.4);
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold-bright);
  font-size: 14px;
  line-height: 1;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}
.cl-ad-dock-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  width: min(var(--cl-ad-w, 728px), 100%);
  height: var(--cl-ad-h, 90px);
  border: 1px dashed rgba(201, 162, 75, 0.4);
  border-radius: 7px;
  background: rgba(201, 162, 75, 0.07);
  color: var(--gold-bright);
  font-size: 0.84rem;
  font-weight: 600;
}
.cl-ad-dock-unit { display: flex; justify-content: center; align-items: center; min-height: 50px; overflow: hidden; }
body.cl-has-dock .cl-footer { padding-bottom: 112px; }
@media (max-width: 759px) {
  .cl-ad-dock {
    width: min(352px, calc(100vw - 12px));
    padding: 3px 28px 3px 4px;
    bottom: max(6px, env(safe-area-inset-bottom, 6px));
  }
  body.cl-has-dock .cl-footer { padding-bottom: 84px; }
}
@media (max-width: 640px) {
  .cl-wrap { width: calc(100% - 22px); }
  .cl-header-inner { min-height: 54px; padding-block: 6px; gap: 6px; }
  .cl-brand-text strong { font-size: 0.9rem; letter-spacing: 0.06em; }
  .cl-brand-text small { display: none; }
  .cl-sfx-toggle { padding: 6px 9px; font-size: 0.72rem; gap: 4px; }

  /* Above-the-Fold Mobile Hero: Statement 1 + Thumb Choices Immediately Reachable */
  .cl-hero { padding: 14px 0 28px; }
  .cl-realm-switch { gap: 6px; margin-bottom: 12px; }
  .cl-realm-btn {
    flex: 1 1 0;
    justify-content: center;
    padding: 7px 10px;
    gap: 6px;
  }
  .cl-realm-btn strong { font-size: 0.76rem; }
  .cl-realm-btn small { display: none; }
  .cl-realm-vs { font-size: 0.7rem; }

  .cl-hero-head { margin-bottom: 14px; }
  .cl-kicker { font-size: 0.66rem; letter-spacing: 0.12em; margin-bottom: 4px; }
  .cl-hero-head h1 { font-size: clamp(1.58rem, 7vw, 2.05rem); line-height: 1.12; }
  .cl-hero-lead { font-size: 0.89rem; line-height: 1.48; margin: 7px auto 10px; }
  .cl-epigraph {
    padding: 6px 13px;
    font-size: 0.96rem;
    line-height: 1.3;
    border-radius: 14px;
  }
  .cl-epigraph cite { display: inline-block; margin-left: 4px; font-size: 0.68rem; }

  /* Sanctuary Quiz Card Mobile Thumb Ergonomics */
  .cl-quiz-shell { padding: 16px 13px 15px; border-radius: 16px; }
  .cl-quiz-shell::before { inset: 6px; border-radius: 11px; }
  .cl-corner { width: 16px; height: 16px; }
  .cl-corner-tl { top: 9px; left: 9px; }
  .cl-corner-tr { top: 9px; right: 9px; }
  .cl-corner-bl { bottom: 9px; left: 9px; }
  .cl-corner-br { bottom: 9px; right: 9px; }

  .cl-quiz-hud { margin-bottom: 8px; gap: 6px; }
  .cl-step-badge { font-size: 0.76rem; }
  .cl-trait-pill { font-size: 0.7rem; padding: 3px 9px; }
  .cl-progress-track { margin-bottom: 10px; }
  .cl-polarity-bar { margin-bottom: 12px; font-size: 0.66rem; gap: 7px; }

  .cl-q-text {
    font-size: 1.28rem;
    line-height: 1.28;
    min-height: 2.4em;
    margin: 2px 0 14px;
  }
  .cl-likert { grid-template-columns: 1fr; gap: 7px; margin-bottom: 12px; }
  .cl-likert-btn {
    flex-direction: row;
    justify-content: flex-start;
    min-height: 45px;
    padding: 9px 14px;
    gap: 12px;
    font-size: 0.88rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .cl-likert-btn:active { transform: scale(0.982); }
  .cl-quiz-foot { font-size: 0.76rem; gap: 6px; padding-top: 8px; }
  .cl-quiz-foot span { display: none; }

  /* Mobile Astrolabe Reveal Gate */
  .cl-astrolabe-wrap { width: min(244px, 72vw); margin-bottom: 14px; }
  .cl-gate-title { font-size: 1.28rem; }
  .cl-gate-sub { font-size: 0.88rem; margin-bottom: 12px; }
  .cl-mid-pill { padding: 7px 12px; font-size: 0.82rem; }

  /* Mobile Editorial Prose Tables — Zero Horizontal Overflow */
  .cl-prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .cl-prose th, .cl-prose td { padding: 9px 10px; font-size: 0.84rem; white-space: nowrap; }
}

/* =========================================================================
 * Interactive Cathedral VFX, Astrolabe Reveal, Rarity Foil & 4-Card Studio
 * ========================================================================= */
.cl-q-card { animation: clCardGlide 0.34s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes clCardGlide {
  from { opacity: 0; transform: translateY(11px) scale(0.992); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Shimmering Liquid Gold / Crimson Progress Bar */
.cl-progress-fill {
  position: relative;
  overflow: hidden;
}
.cl-progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 252, 236, 0.65) 50%, transparent 80%);
  transform: translateX(-100%);
  animation: clProgressGleam 2.4s ease-in-out infinite;
}
@keyframes clProgressGleam {
  0% { transform: translateX(-120%); }
  65%, 100% { transform: translateX(180%); }
}

/* Floating Sacred Rune Micro-Toast on Answer Click */
.cl-rune-toast {
  position: fixed;
  z-index: 95;
  pointer-events: none;
  padding: 5px 13px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  animation: clRuneRise 0.95s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.cl-rune-toast.is-sacred {
  background: linear-gradient(135deg, rgba(28, 22, 14, 0.94), rgba(68, 49, 17, 0.94));
  color: #f9e4a3;
  border: 1px solid rgba(239, 208, 126, 0.75);
  box-shadow: 0 8px 24px rgba(201, 162, 75, 0.42);
}
.cl-rune-toast.is-gothic {
  background: linear-gradient(135deg, rgba(32, 10, 18, 0.96), rgba(88, 18, 36, 0.94));
  color: #ffd4dc;
  border: 1px solid rgba(223, 72, 98, 0.78);
  box-shadow: 0 8px 24px rgba(223, 72, 98, 0.45);
}
@keyframes clRuneRise {
  0% { opacity: 0; transform: translate(-50%, -18%) scale(0.84); }
  20% { opacity: 1; transform: translate(-50%, -62%) scale(1.03); }
  100% { opacity: 0; transform: translate(-50%, -165%) scale(0.96); }
}

/* Cathedral Lightburst / Gothic Moonrise Reveal Flash */
.cl-reveal-flash {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  animation: clRevealBloom 1.05s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.cl-reveal-flash.is-sacred {
  background: radial-gradient(circle at 50% 42%, rgba(255, 248, 220, 0.78) 0%, rgba(239, 208, 126, 0.38) 32%, rgba(201, 162, 75, 0.08) 65%, transparent 100%);
}
.cl-reveal-flash.is-gothic {
  background: radial-gradient(circle at 50% 42%, rgba(248, 152, 172, 0.52) 0%, rgba(168, 36, 58, 0.38) 34%, rgba(24, 10, 22, 0.16) 68%, transparent 100%);
}
@keyframes clRevealBloom {
  0% { opacity: 0; transform: scale(0.75); }
  22% { opacity: 1; transform: scale(1.04); }
  100% { opacity: 0; transform: scale(1.18); }
}

/* Astrolabe Stained-Glass Rose Window Reveal Gate */
.cl-astrolabe-wrap {
  position: relative;
  width: min(312px, 100%);
  aspect-ratio: 1 / 1;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(239, 208, 126, 0.16) 0%, rgba(17, 14, 23, 0.96) 62%, rgba(10, 8, 15, 0.99) 100%);
  border: 1.5px solid rgba(201, 162, 75, 0.56);
  box-shadow: 0 0 42px rgba(201, 162, 75, 0.25), inset 0 0 36px rgba(201, 162, 75, 0.14);
  overflow: hidden;
}
.is-gothic .cl-astrolabe-wrap {
  background:
    radial-gradient(circle, rgba(223, 72, 98, 0.24) 0%, rgba(17, 10, 20, 0.96) 62%, rgba(8, 5, 11, 0.99) 100%);
  border-color: rgba(223, 72, 98, 0.62);
  box-shadow: 0 0 44px rgba(223, 72, 98, 0.28), inset 0 0 38px rgba(223, 72, 98, 0.16);
}
.cl-astrolabe-ring {
  position: absolute;
  inset: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  animation: clSpinSlow 24s linear infinite;
  pointer-events: none;
}
.cl-astrolabe-ring.is-rev {
  inset: 22px;
  width: calc(100% - 44px);
  height: calc(100% - 44px);
  animation: clSpinSlow 16s linear infinite reverse;
}
@keyframes clSpinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.cl-astrolabe-radar {
  width: 72%;
  filter: blur(7px) saturate(1.15);
  opacity: 0.72;
  pointer-events: none;
}
.cl-astrolabe-status {
  font-family: var(--font-scripture);
  font-style: italic;
  font-size: 1.12rem;
  color: var(--gold-deep);
  margin: -4px 0 14px;
  min-height: 1.5em;
}
.is-gothic .cl-astrolabe-status { color: #f6c2cb; }

/* Metallic Foil Rarity Ribbon & Hidden Persona Showcase */
.cl-rarity-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}
.cl-rarity-pill {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.cl-rarity-pill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 25%, rgba(255, 255, 255, 0.55) 50%, transparent 75%);
  transform: translateX(-120%);
  animation: clFoilSweep 3.2s ease-in-out infinite;
}
@keyframes clFoilSweep {
  0% { transform: translateX(-130%); }
  45%, 100% { transform: translateX(160%); }
}
.cl-rarity-pill.is-ur {
  background: linear-gradient(125deg, #fff6cf 0%, #f3cd69 44%, #d39a26 74%, #fff0b8 100%);
  color: #1c1104;
  border: 1.5px solid #fff8dc;
  box-shadow: 0 6px 26px rgba(239, 208, 126, 0.52), 0 0 0 1px rgba(173, 124, 24, 0.35);
}
.is-gothic .cl-rarity-pill.is-ur {
  background: linear-gradient(125deg, #5e1128 0%, #a82040 42%, #d99b32 82%, #f9df8e 100%);
  color: #fff9eb;
  border: 1.5px solid #f7dc8d;
  text-shadow: 0 1px 4px rgba(20, 4, 10, 0.65);
  box-shadow: 0 6px 28px rgba(223, 72, 98, 0.5);
}
/* Radiant Prism Wave on Card Studio Tab Switch & Sanctuary Illumination */
.cl-card-stage.is-foil-flash::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 15%, rgba(255, 250, 224, 0.68) 48%, rgba(236, 112, 144, 0.35) 56%, transparent 84%);
  animation: clStageFoil 0.68s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes clStageFoil {
  0% { transform: translateX(-110%); opacity: 1; }
  100% { transform: translateX(110%); opacity: 0; }
}
.cl-aura-canvas {
  opacity: 0.96;
}
.cl-rarity-pill.is-ssr {
  background: linear-gradient(135deg, #f5da8c 0%, #c9972e 55%, #f2d27d 100%);
  color: #1b1306;
  border: 1px solid #fff2c2;
}
.cl-rarity-pill.is-sr {
  background: linear-gradient(135deg, #2b1a34 0%, #5c2038 60%, #a8243a 100%);
  color: #ffe8ed;
  border: 1px solid rgba(244, 152, 169, 0.72);
}
.cl-rarity-pill.is-r {
  background: linear-gradient(135deg, #272030, #3f314c);
  color: #f5e6c8;
  border: 1px solid rgba(201, 162, 75, 0.55);
}
.cl-rarity-note {
  margin: 6px 0 0;
  font-size: 0.74rem;
  opacity: 0.74;
}

.cl-hidden-persona {
  position: relative;
  margin: 0 0 20px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1.5px solid var(--gold);
  background:
    radial-gradient(circle at 12% 15%, rgba(239, 208, 126, 0.2), transparent 52%),
    radial-gradient(circle at 88% 85%, rgba(168, 36, 58, 0.24), transparent 52%),
    linear-gradient(145deg, #171222 0%, #100c17 100%);
  color: var(--obsidian-ink);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.34);
}
.cl-hidden-persona.is-radiant {
  border-color: #e7c76d;
  background:
    radial-gradient(circle at 14% 12%, rgba(246, 221, 146, 0.26), transparent 54%),
    linear-gradient(145deg, #201a16 0%, #131019 100%);
}
.cl-hidden-persona.is-shadow {
  border-color: rgba(223, 72, 98, 0.72);
  background:
    radial-gradient(circle at 86% 14%, rgba(223, 72, 98, 0.28), transparent 54%),
    linear-gradient(145deg, #220e19 0%, #0e0913 100%);
}
.cl-hidden-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  margin-bottom: 6px;
}
.cl-hidden-kicker {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.is-shadow .cl-hidden-kicker { color: #f99eb0; }
.cl-hidden-latin {
  font-family: var(--font-scripture);
  font-style: italic;
  font-size: 0.98rem;
  color: #d9ccb6;
  letter-spacing: 0.04em;
}
.cl-hidden-name {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(1.24rem, 2.3vw, 1.62rem);
  color: #fff9eb;
}
.cl-hidden-desc {
  margin: 0 0 12px;
  font-size: 0.93rem;
  line-height: 1.56;
  color: #e3d9c8;
}
.cl-aura-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.cl-aura-stat {
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(201, 162, 75, 0.26);
  text-align: center;
}
.cl-aura-stat small {
  display: block;
  font-size: 0.71rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cbbda6;
}
.cl-aura-stat strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--gold-bright);
}
.cl-vibe-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.cl-vibe-tag {
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(201, 162, 75, 0.14);
  border: 1px solid rgba(201, 162, 75, 0.34);
  color: #f6e2ab;
  font-size: 0.78rem;
  font-weight: 600;
}
.is-shadow .cl-vibe-tag {
  background: rgba(223, 72, 98, 0.16);
  border-color: rgba(223, 72, 98, 0.42);
  color: #ffd3dc;
}

/* Radar & Score Bar Reveal Animations */
.cl-radar-bloom {
  transform-origin: center;
  animation: clRadarBloom 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes clRadarBloom {
  from { opacity: 0; transform: scale(0.72); }
  to { opacity: 1; transform: scale(1); }
}
.cl-bar-fill {
  animation: clBarSweep 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: left center;
}
@keyframes clBarSweep {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* 4-Template Collector's Viral Share Card Studio */
.cl-card-studio {
  margin: 22px 0 18px;
  padding: 20px;
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 50% 0%, rgba(201, 162, 75, 0.16), transparent 58%),
    linear-gradient(165deg, #161120 0%, #0d0a13 100%);
  color: var(--obsidian-ink);
  border: 1.5px solid rgba(201, 162, 75, 0.48);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.45);
}
.cl-studio-head {
  text-align: center;
  margin-bottom: 14px;
}
.cl-studio-head h3 {
  margin: 4px 0 4px;
  font-family: var(--font-display);
  font-size: 1.24rem;
  color: var(--gold-bright);
}
.cl-studio-head p {
  margin: 0;
  font-size: 0.86rem;
  color: #cfc3b0;
}
.cl-card-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
.cl-card-tab {
  padding: 9px 8px;
  border-radius: 10px;
  border: 1px solid rgba(201, 162, 75, 0.28);
  background: rgba(255, 255, 255, 0.04);
  color: #dfd5c4;
  font: 600 0.78rem/1.25 var(--font-sans);
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.cl-card-tab span { display: block; font-size: 0.95rem; margin-bottom: 2px; }
.cl-card-tab:hover { border-color: var(--gold); transform: translateY(-1px); }
.cl-card-tab.is-active {
  background: linear-gradient(135deg, rgba(239, 208, 126, 0.22), rgba(168, 36, 58, 0.18));
  border-color: var(--gold-bright);
  color: #fff6dc;
  box-shadow: 0 0 20px rgba(201, 162, 75, 0.28);
}
.cl-studio-layout {
  display: grid;
  grid-template-columns: minmax(220px, 286px) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}
.cl-card-stage {
  position: relative;
  border-radius: 14px;
  padding: 6px;
  background: linear-gradient(145deg, rgba(239, 208, 126, 0.65), rgba(141, 107, 36, 0.35), rgba(223, 72, 98, 0.52));
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.65), 0 0 28px rgba(201, 162, 75, 0.22);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease;
}
.cl-card-stage:hover {
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.75), 0 0 40px rgba(239, 208, 126, 0.34);
}
.cl-card-canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  background: #0d0a13;
}
.cl-studio-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cl-studio-note {
  margin: 0;
  font-size: 0.86rem;
  color: #d6cab7;
  line-height: 1.5;
}
@media (max-width: 720px) {
  .cl-card-studio { padding: 16px 12px; }
  .cl-studio-head h3 { font-size: 1.08rem; }
  .cl-studio-head p { font-size: 0.81rem; }
  .cl-card-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .cl-card-tab { padding: 9px 6px; min-height: 48px; touch-action: manipulation; }
  .cl-studio-layout { grid-template-columns: 1fr; gap: 16px; }
  .cl-card-stage { max-width: min(296px, 84vw); margin-inline: auto; }
  .cl-hidden-persona { padding: 14px 14px; }
  .cl-hidden-name { font-size: 1.24rem; }
  .cl-aura-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .cl-aura-stat { padding: 8px 5px; }
  .cl-aura-stat small { font-size: 0.62rem; letter-spacing: 0.04em; }
  .cl-aura-stat strong { font-size: 1.04rem; }
  .cl-action-row { flex-direction: column; gap: 8px; }
  .cl-action-row .cl-btn { width: 100%; min-height: 46px; }
  .cl-next-realm { flex-direction: column; align-items: stretch; text-align: center; }
  .cl-next-realm .cl-btn { width: 100%; min-height: 46px; }
  .cl-rarity-pill { font-size: 0.7rem; padding: 5px 12px; }
}

/* Museum-Grade Illuminated PDF Certificate Print Layout */
@media print {
  @page { size: auto; margin: 14mm; }
  body.cl-body, body[data-realm="gothic"] {
    background: #ffffff !important;
    color: #1c150c !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .cl-aura-canvas, .cl-vfx-canvas, .cl-header, .cl-footer, .cl-hero-backdrop, .cl-realm-switch,
  .cl-hero-head, .cl-content-wrap, .cl-share-studio, .cl-card-studio, .cl-next-realm,
  .cl-friend-banner, .cl-ad-dock, .cl-sponsor-box, .cl-native-slot,
  .cl-reveal-flash, .cl-rune-toast {
    display: none !important;
  }
  .cl-hero { padding: 0 !important; border: none !important; }
  .cl-wrap { width: 100% !important; max-width: none !important; margin: 0 !important; }
  .cl-quiz-shell, .cl-quiz-shell.is-gothic {
    max-width: none !important;
    box-shadow: none !important;
    border: 2px solid #8d6b24 !important;
    background: #fbf7ee !important;
    color: #1c150c !important;
    padding: 20px 24px !important;
  }
  .cl-quiz-shell.is-gothic .cl-dossier-archetype,
  .cl-quiz-shell.is-gothic .cl-scripture-tag { color: #8d2033 !important; }
  .cl-scripture-card, .cl-scripture-card.is-shadow-box {
    background: #f5eedf !important;
    color: #1c150c !important;
    border: 1px solid #b59247 !important;
  }
  .cl-hidden-persona {
    background: #f5eedf !important;
    color: #1c150c !important;
    border: 1.5px solid #8d6b24 !important;
    box-shadow: none !important;
  }
  .cl-hidden-name, .cl-hidden-desc, .cl-hidden-kicker { color: #1c150c !important; }
  .cl-radar-wrap { background: #14111b !important; color: #f6efe2 !important; }
  .cl-print-footer {
    display: flex !important;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 10px;
    border-top: 1px solid #b59247;
    font-family: var(--font-display);
    font-size: 12px;
    color: #5a4e3f;
  }
}
.cl-print-footer { display: none; }