/* ================================================================
   SOULBOUND -- Dark Editorial / Sacred Aesthetic
   ================================================================
   Color tokens
   --void:       #0A0A0F   deep black with purple undertone
   --gold:       #C9A96E   antique gold (use sparingly)
   --amethyst:   #7B6B8D   muted amethyst
   --ivory:      #F0EDE5   warm ivory text
   --rose:       #B8747A   soft rose interactive highlight
   --card:       #12111A   card background
   --border:     rgba(201,169,110,0.15)  gold-tinted border
   ================================================================ */

/* ────────── CUSTOM PROPERTIES ────────── */
:root {
  --void: #0A0A0F;
  --gold: #C9A96E;
  --gold-dim: rgba(201, 169, 110, 0.15);
  --gold-glow: rgba(201, 169, 110, 0.08);
  --amethyst: #7B6B8D;
  --ivory: #F0EDE5;
  --ivory-muted: #A8A29E;
  --rose: #B8747A;
  --card: #12111A;
  --card-raised: #1A1828;
  --border: rgba(201, 169, 110, 0.15);
  --border-subtle: rgba(201, 169, 110, 0.08);
  --heading-font: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --body-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --reading-width: 720px;
  --grid-width: 1200px;
  --ease-elegant: cubic-bezier(0.23, 1, 0.32, 1);
}

/* ────────── RESET ────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ────────── BASE ────────── */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--void);
  color: var(--ivory);
  font-family: var(--body-font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  position: relative;
}

/* Atmospheric gradient layers */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(100, 60, 130, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 80% 60% at 10% 80%, rgba(60, 40, 100, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 90% 30%, rgba(201, 169, 110, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Grain / noise texture overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 1;
}

/* Everything above the grain layer */
body > * {
  position: relative;
  z-index: 2;
}

/* ────────── SELECTION ────────── */
::selection {
  background: rgba(201, 169, 110, 0.25);
  color: var(--ivory);
}

/* ────────── LINKS (global) ────────── */
a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.4s ease;
}
a:hover {
  color: var(--rose);
}

/* ────────── CONTAINERS ────────── */
.container {
  width: 100%;
  max-width: var(--grid-width);
  margin: 0 auto;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

#homePage {
  width: 100%;
  max-width: var(--reading-width);
  margin: 0 auto;
  padding: 0 2rem 3rem;
  text-align: center;
  animation: fadeInUp 1s var(--ease-elegant) both;
}

/* ────────── HERO ────────── */
.hero {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4rem 0;
  position: relative;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 5rem);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  background: linear-gradient(180deg, var(--ivory) 30%, var(--amethyst) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-family: var(--heading-font);
  font-style: italic;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  color: var(--amethyst);
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}

.hero-description {
  font-size: 1rem;
  color: var(--ivory-muted);
  max-width: 420px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.hero .btn-primary {
  font-size: 1.1rem;
  padding: 1.2rem 3.5rem;
  letter-spacing: 0.12em;
  border-width: 1.5px;
  position: relative;
}

.hero .btn-primary::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  box-shadow: 0 0 30px rgba(201, 169, 110, 0.15), 0 0 60px rgba(201, 169, 110, 0.05);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero .btn-primary:hover::after {
  opacity: 1;
}

/* Floating orb behind hero */
.hero::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.06) 0%, transparent 70%);
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: orbFloat 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -55%) scale(1.15); opacity: 1; }
}

#quizContainer,
#loadingScreen,
#resultGate {
  width: 95%;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 2rem;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 0;
  text-align: center;
  animation: fadeInUp 0.8s var(--ease-elegant) both;
}

.quiz-inner {
  padding: 3rem 0;
}

.question-counter {
  font-family: var(--body-font);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ivory-muted);
  margin-bottom: 2.5rem;
}

#resultScreen {
  width: 95%;
  max-width: var(--reading-width);
  margin: 0 auto;
  padding: 0 2rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeInUp 1s var(--ease-elegant) both;
}

#resultGate {
  border: 1px dashed var(--gold-dim);
  animation: fadeInUp 0.8s var(--ease-elegant) both, gateGlow 4s ease-in-out infinite alternate;
}

/* ────────── TYPOGRAPHY ────────── */
h1, h2, h3, h4 {
  font-family: var(--heading-font);
  font-weight: 700;
  color: var(--ivory);
  letter-spacing: 0.02em;
  line-height: 1.3;
  /* Reset any gradient text from old styles */
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: unset;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1.5rem;
  text-align: center;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 1.2rem;
}

h3 {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

p {
  margin-bottom: 1rem;
  color: var(--ivory);
}

strong {
  color: var(--gold);
  font-weight: 600;
}

/* ────────── HEADER IMAGE / LOGO ────────── */
.header-image {
  width: 100%;
  max-width: 280px;
  height: auto;
  margin: 0 auto 2rem;
  display: block;
  border-radius: 0;
  opacity: 0.9;
  filter: drop-shadow(0 0 40px rgba(201, 169, 110, 0.08));
}

/* ────────── INTRO TEXT ────────── */
.intro-text {
  max-width: 520px;
  margin: 0 auto 2.5rem;
}

.intro-text p {
  font-size: 1.05rem;
  color: var(--ivory-muted);
  line-height: 1.8;
  letter-spacing: 0.01em;
}

/* ────────── BUTTONS ────────── */
button,
.animated-button {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 1rem 2rem;
  margin: 0.75rem auto;
  border-radius: 2px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--body-font);
  cursor: pointer;
  display: block;
  width: auto;
  max-width: 320px;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition:
    background 0.5s ease,
    color 0.5s ease,
    box-shadow 0.5s ease,
    transform 0.3s ease;
  /* Kill old gradient & shadow */
  box-shadow: none;
}

button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
}

button:hover,
.animated-button:hover {
  background: rgba(201, 169, 110, 0.1);
  color: var(--ivory);
  box-shadow: 0 0 30px rgba(201, 169, 110, 0.08);
  transform: translateY(-1px);
}

button:hover::before {
  opacity: 0.08;
}

button:active {
  transform: translateY(0);
}

.start-test-btn {
  margin: 2.5rem auto 3.5rem;
  font-size: 0.95rem;
  padding: 1.2rem 2.5rem;
  letter-spacing: 0.08em;
}

/* ────────── FORM ELEMENTS ────────── */
#userEmail {
  padding: 1rem 1.25rem;
  width: 100%;
  max-width: 340px;
  border-radius: 2px;
  border: 1px solid var(--border);
  margin: 0 auto 1.5rem;
  font-size: 1rem;
  background: rgba(18, 17, 26, 0.8);
  color: var(--ivory);
  font-family: var(--body-font);
  display: block;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

#userEmail:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(201, 169, 110, 0.1);
}

#userEmail::placeholder {
  color: rgba(240, 237, 229, 0.35);
}

/* ────────── QUESTIONS & ANSWERS (Quiz) ────────── */
#questionTitle {
  font-family: var(--heading-font);
  color: var(--ivory);
  letter-spacing: 0.02em;
}

#questionText,
.question-text {
  font-family: var(--heading-font);
  font-size: clamp(1.3rem, 3.5vw, 1.7rem);
  line-height: 1.6;
  white-space: pre-wrap;
  margin-bottom: 3rem;
  color: var(--ivory);
  background: none;
  padding: 0;
  border-radius: 0;
  border: none;
}

.scenario-context {
  font-family: var(--heading-font);
  font-style: italic;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  line-height: 1.6;
  color: var(--ivory);
  padding: 0;
  background: none;
  border: none;
  margin-bottom: 3rem;
}

.btn-next {
  margin-top: 1rem;
  font-size: 0.85rem;
  padding: 0.8rem 2.5rem;
}

#answerOptions {
  margin: 2rem auto;
  max-width: 560px;
}

#answerOptions fieldset {
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#answerOptions label {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  cursor: pointer;
  color: var(--ivory-muted);
  background: rgba(18, 17, 26, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  font-weight: 400;
  line-height: 1.6;
  transition:
    background 0.4s ease,
    border-color 0.4s ease,
    color 0.4s ease,
    box-shadow 0.4s ease;
}

#answerOptions label:hover {
  background: rgba(201, 169, 110, 0.04);
  border-color: var(--gold-dim);
  color: var(--ivory);
}

/* Custom radio indicators */
#answerOptions input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--gold-dim);
  border-radius: 50%;
  margin-right: 1rem;
  flex-shrink: 0;
  position: relative;
  transition: all 0.4s ease;
  background: transparent;
  cursor: pointer;
}

#answerOptions input[type="radio"]::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--gold);
  transform: scale(0);
  transition: transform 0.3s var(--ease-elegant);
}

#answerOptions input[type="radio"]:checked {
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(201, 169, 110, 0.2);
}

#answerOptions input[type="radio"]:checked::after {
  transform: scale(1);
}

#answerOptions label:has(input[type="radio"]:checked) {
  background: rgba(201, 169, 110, 0.06);
  border-color: rgba(201, 169, 110, 0.3);
  color: var(--ivory);
  box-shadow: 0 0 20px rgba(201, 169, 110, 0.06);
}

#answerOptions input[type="radio"]:checked + span {
  color: var(--ivory);
  font-weight: 600;
}

/* ────────── PROGRESS BAR ────────── */
#progressBar {
  width: 100%;
  background: rgba(18, 17, 26, 0.8);
  border-radius: 1px;
  height: 3px;
  margin-top: 2.5rem;
  overflow: hidden;
  border: none;
}

#progressFill {
  height: 100%;
  width: 0%;
  background: var(--gold);
  transition: width 0.8s var(--ease-elegant);
  border-radius: 1px;
}

/* ────────── LOADING SCREEN ────────── */
#loadingScreen {
  border: none;
  background: transparent;
  padding: 0;
  min-height: 100vh;
}

.loading-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.loading-sigil {
  width: 60px;
  height: 60px;
  border: 1px solid rgba(201, 169, 110, 0.3);
  border-radius: 50%;
  animation: sigilPulse 2.5s ease-in-out infinite;
  box-shadow: 0 0 40px rgba(201, 169, 110, 0.1);
  position: relative;
}

.loading-sigil::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(201, 169, 110, 0.15);
  border-radius: 50%;
  animation: sigilPulse 2.5s ease-in-out infinite 0.5s;
}

.loading-text {
  font-family: var(--heading-font);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ivory-muted);
  animation: breathe 3s ease-in-out infinite;
}

/* ────────── RESULT SCREEN ────────── */
.result-header {
  padding: 6rem 0 2rem;
  text-align: center;
}

.result-sigil {
  font-size: 3rem;
  display: block;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 20px rgba(201, 169, 110, 0.2));
}

#resultTitle, .result-title {
  font-family: var(--heading-font);
  font-size: clamp(2.5rem, 7vw, 4rem);
  color: var(--ivory);
  margin-bottom: 0.75rem;
  text-align: center;
  letter-spacing: -0.01em;
}

.tagline,
#resultTagline, .result-tagline {
  font-family: var(--heading-font);
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  color: var(--amethyst);
  margin-bottom: 0;
  text-align: center;
}

#resultDescription {
  width: 100%;
  max-width: var(--reading-width);
  margin-bottom: 2.5rem;
  padding: 2.5rem;
  background: rgba(201, 169, 110, 0.03);
  border-left: 2px solid var(--gold-dim);
  border-radius: 0;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--ivory);
  backdrop-filter: none;
  box-shadow: none;
}

#resultInsights {
  width: 100%;
  max-width: var(--reading-width);
  margin-top: 1rem;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}

#resultInsights h3 {
  font-family: var(--heading-font);
  margin-top: 3rem;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.02em;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

#resultInsights h3:first-child {
  margin-top: 0;
}

#resultInsights p {
  margin-bottom: 1.5rem;
  line-height: 1.85;
  font-size: 1.05rem;
  color: var(--ivory);
}

/* Gold bullet points instead of default */
#resultInsights ul {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0 2rem;
}

#resultInsights li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.7;
  color: var(--ivory);
}

#resultInsights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

/* ────────── THE ONE LINE THAT HITS ────────── */
.one-line-hit {
  font-family: var(--heading-font);
  font-style: italic;
  font-size: clamp(1.3rem, 3.5vw, 1.8rem);
  line-height: 1.5;
  color: var(--ivory);
  text-align: center;
  max-width: 540px;
  margin: 0 auto;
  padding: 4rem 2rem 5rem;
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ────────── MICRO MOMENTS ────────── */
.micro-moments {
  width: 100%;
  max-width: var(--reading-width);
  margin: 2rem 0 3rem;
}

.micro-moments h3 {
  font-family: var(--heading-font);
  color: var(--gold);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.micro-moment-item {
  background: var(--card);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  padding: 1.5rem 2rem;
  margin-bottom: 0.75rem;
  font-style: italic;
  color: var(--ivory-muted);
  font-size: 1rem;
  line-height: 1.7;
  transition: border-color 0.4s ease, background 0.4s ease;
}

.micro-moment-item:hover {
  border-color: var(--gold-dim);
  background: var(--card-raised);
}

/* ────────── RELATIONSHIP DYNAMICS ────────── */
.relationship-dynamics {
  width: 100%;
  max-width: var(--reading-width);
  margin: 3rem 0;
}

.relationship-dynamics h3 {
  font-family: var(--heading-font);
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.relationship-tab {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ivory-muted);
  padding: 0.6rem 1.5rem;
  margin: 0 0.25rem 1rem 0;
  border-radius: 2px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--body-font);
  cursor: pointer;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  width: auto;
  max-width: none;
  transition: all 0.4s ease;
}

.relationship-tab:hover {
  background: rgba(201, 169, 110, 0.06);
  color: var(--ivory);
  transform: none;
  box-shadow: none;
}

.relationship-tab.active,
.relationship-tab:focus {
  background: rgba(201, 169, 110, 0.1);
  border-color: var(--gold);
  color: var(--gold);
}

.relationship-content {
  padding: 2rem 0;
  line-height: 1.85;
  color: var(--ivory);
  font-size: 1.05rem;
  animation: fadeIn 0.5s ease;
}

/* ────────── DIMENSION BARS (Percentile Display) ────────── */
.dimension-bars {
  width: 100%;
  max-width: var(--reading-width);
  margin: 2rem 0 3rem;
}

.dimension-bar {
  margin-bottom: 1.5rem;
}

.dimension-labels {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
  font-family: var(--body-font);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ivory-muted);
}
.dimension-labels .active {
  color: var(--ivory);
  font-weight: 600;
}

.dimension-track {
  width: 100%;
  height: 4px;
  background: rgba(201, 169, 110, 0.08);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.dimension-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
  transition: width 1.2s ease;
}

.dimension-marker {
  position: absolute;
  top: -3px;
  width: 2px;
  height: 10px;
  background: var(--gold);
  border-radius: 1px;
  transform: translateX(-1px);
  box-shadow: 0 0 6px rgba(201, 169, 110, 0.4);
}

.dimension-percent {
  font-family: var(--body-font);
  font-size: 0.75rem;
  color: var(--ivory-muted);
  margin-top: 0.3rem;
  letter-spacing: 0.05em;
}

/* ────────── VARIANT BOX ────────── */
.variant-box {
  width: 100%;
  max-width: var(--reading-width);
  margin-top: 3rem;
  padding: 2.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 2px;
  text-align: center;
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

.variant-box:hover {
  border-color: rgba(201, 169, 110, 0.3);
  box-shadow: 0 0 40px rgba(201, 169, 110, 0.05);
  transform: none;
}

.variant-box h3 {
  font-family: var(--heading-font);
  color: var(--ivory);
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  margin-bottom: 1rem;
}

.variant-box p {
  font-size: 1rem;
  color: var(--ivory-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* ────────── RESULT BANNER ────────── */
.result-banner {
  width: 100%;
  max-width: var(--reading-width);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 0;
}

.banner-link {
  font-size: 0.85rem;
  color: var(--ivory-muted);
  letter-spacing: 0.02em;
}

.banner-link:hover {
  color: var(--gold);
}

.btn-share {
  font-size: 0.75rem;
  padding: 0.5rem 1.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ivory-muted);
  cursor: pointer;
  max-width: none;
  width: auto;
  display: inline-block;
  margin: 0;
  transition: all 0.4s ease;
}

.btn-share:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: none;
}

.test-banner {
  display: none; /* deprecated */
}

.banner-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--reading-width);
  margin: 0 auto;
  gap: 1rem;
}

.banner-text {
  color: var(--ivory-muted);
  font-size: 0.95rem;
  font-weight: 400;
}

.banner-cta {
  background: transparent;
  color: var(--gold);
  padding: 0.6rem 1.25rem;
  border-radius: 2px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.4s ease;
  border: 1px solid var(--border);
  backdrop-filter: none;
}

.banner-cta:hover {
  background: rgba(201, 169, 110, 0.08);
  color: var(--ivory);
  transform: none;
  box-shadow: none;
}

/* ────────── STANDALONE HEADER (Result Page) ────────── */
.standalone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--reading-width);
  padding: 1.5rem 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.header-logo {
  height: 50px;
  width: auto;
  opacity: 0.85;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.take-test-cta {
  color: var(--ivory-muted);
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.3s ease;
}

.take-test-cta:hover {
  color: var(--gold);
}

.share-cta {
  font-size: 0.85rem;
  padding: 0.6rem 1.25rem;
  margin: 0;
  letter-spacing: 0.04em;
}

/* ────────── NAVIGATION ────────── */
.nav-placeholder {
  /* Injected by JS */
}

.main-nav {
  background: rgba(10, 10, 15, 0.9);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.nav-container {
  max-width: var(--grid-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 2rem;
}

.nav-logo {
  height: 40px;
  width: auto;
  flex-shrink: 0;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.nav-logo:hover {
  opacity: 1;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-shrink: 0;
}

.nav-link {
  color: var(--ivory-muted);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--gold);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-btn {
  background: none;
  border: none;
  color: var(--ivory-muted);
  font-weight: 400;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-radius: 2px;
  font-family: var(--body-font);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  transition: color 0.3s ease;
  position: relative;
  width: auto;
  max-width: none;
  display: inline-flex;
  align-items: center;
  margin: 0;
  text-transform: none;
  box-shadow: none;
}

.dropdown-btn:hover,
.dropdown-btn:focus {
  color: var(--gold);
  background: transparent;
  outline: none;
  transform: none;
  box-shadow: none;
}

.dropdown-btn::before {
  display: none; /* Remove button shine effect */
}

.dropdown-content {
  position: absolute;
  top: 100%;
  right: 0;
  background: rgba(18, 17, 26, 0.97);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.5rem 0;
  min-width: 240px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-content a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--ivory-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.dropdown-content a:hover {
  background: rgba(201, 169, 110, 0.06);
  color: var(--gold);
}

/* ────────── PERSONALITY CARDS GRID ────────── */
.personality-grid {
  margin-top: 6rem;
  padding-top: 4rem;
  width: 100%;
  max-width: var(--grid-width);
  margin-left: auto;
  margin-right: auto;
  border-top: 1px solid var(--border);
}

.personality-grid h2 {
  margin-bottom: 3rem;
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  text-align: center;
  color: var(--ivory-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-family: var(--body-font);
  font-weight: 400;
}

.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
}

.personality-card {
  background: var(--card);
  border: 1px solid var(--border-subtle);
  border-radius: 0;
  padding: 2rem 2.5rem;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.5s ease,
    box-shadow 0.5s ease,
    background 0.5s ease;
}

/* Gold accent line on hover */
.personality-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.6s var(--ease-elegant);
}

.personality-card:hover {
  border-color: rgba(201, 169, 110, 0.2);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
  background: var(--card-raised);
}

.personality-card:hover::before {
  width: 100%;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.card-sigil {
  font-size: 1.8rem;
  line-height: 1;
  flex-shrink: 0;
}

.card-title {
  font-family: var(--heading-font);
  color: var(--ivory);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.02em;
  background: none;
  -webkit-text-fill-color: unset;
}

.card-tagline {
  color: var(--amethyst);
  font-size: 0.9rem;
  font-style: italic;
  margin-bottom: 0.75rem;
  font-family: var(--heading-font);
}

.card-preview {
  color: var(--ivory-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ────────── BLOG ────────── */
.blog-container {
  width: 95%;
  max-width: var(--reading-width);
  margin: 3rem auto;
  padding: 0;
}

.blog-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 3rem 2rem;
  background: var(--card);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
}

.blog-header h1 {
  font-family: var(--heading-font);
  color: var(--ivory);
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.75rem;
}

.blog-header p {
  font-size: 1.1rem;
  color: var(--ivory-muted);
  margin: 0;
}

.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.blog-post {
  background: var(--card);
  border: 1px solid var(--border-subtle);
  border-radius: 0;
  padding: 2.5rem;
  transition: border-color 0.4s ease, background 0.4s ease;
  margin-bottom: 0;
}

.blog-post:hover {
  border-color: var(--gold-dim);
  background: var(--card-raised);
  transform: none;
  box-shadow: none;
}

.blog-post header {
  margin-bottom: 2rem;
  text-align: center;
}

.blog-post header h1 {
  font-family: var(--heading-font);
  color: var(--ivory);
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  margin-bottom: 0.75rem;
  background: none;
  -webkit-text-fill-color: unset;
}

.blog-post header p {
  color: var(--amethyst);
  font-size: 1rem;
  font-style: italic;
  font-family: var(--heading-font);
  margin: 0;
}

.blog-post .content {
  color: var(--ivory);
  line-height: 1.85;
  font-size: 1.05rem;
}

.blog-post .content h2 {
  color: var(--gold);
  font-family: var(--heading-font);
  font-size: 1.5rem;
  margin: 3rem 0 1.2rem;
  font-weight: 700;
  background: none;
  -webkit-text-fill-color: unset;
}

.blog-post .content h3 {
  color: var(--ivory);
  font-family: var(--heading-font);
  font-size: 1.25rem;
  margin: 2rem 0 1rem;
  font-weight: 600;
  background: none;
  -webkit-text-fill-color: unset;
}

.blog-post .content p {
  margin-bottom: 1.5rem;
}

.blog-post .content strong {
  color: var(--gold);
  font-weight: 600;
}

.blog-post .content ul {
  list-style: none;
  padding-left: 0;
  margin: 1.5rem 0;
}

.blog-post .content li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--ivory);
}

.blog-post .content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.blog-post .content a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.blog-post .content a:hover {
  color: var(--rose);
}

.blog-post h2 a {
  color: var(--ivory);
  text-decoration: none;
  background: none;
  -webkit-text-fill-color: unset;
  transition: color 0.3s ease;
}

.blog-post h2 a:hover {
  color: var(--gold);
  -webkit-text-fill-color: unset;
}

.blog-post > p {
  color: var(--amethyst);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  font-weight: 400;
  font-style: italic;
}

.post-excerpt {
  color: var(--ivory-muted);
  line-height: 1.7;
}

.post-excerpt p {
  margin-bottom: 1rem;
}

.read-more {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: var(--rose);
}

/* ────────── PODCAST ────────── */
.podcast-section {
  margin: 2rem 0;
  padding: 2.5rem;
  background: var(--card);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  text-align: center;
}

.podcast-container h3 {
  font-family: var(--heading-font);
  margin-bottom: 0.5rem;
  color: var(--gold);
  font-size: 1.2rem;
}

.podcast-container p {
  margin-bottom: 1.5rem;
  color: var(--ivory-muted);
}

.podcast-container audio {
  border-radius: 4px;
  outline: none;
}

.podcast-episode {
  border-left: 2px solid var(--gold-dim);
}

.podcast-episode.coming-soon {
  border-left-color: rgba(201, 169, 110, 0.08);
  opacity: 0.7;
}

.podcast-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.podcast-sigil {
  font-size: 2rem;
}

.podcast-tagline {
  color: var(--amethyst);
  font-style: italic;
  font-size: 0.9rem;
  font-family: var(--heading-font);
  margin: 0;
}

.podcast-player-container {
  margin: 1.5rem 0;
}

.episode-player {
  width: 100%;
  max-width: 500px;
  height: 50px;
  border-radius: 4px;
  background: rgba(10, 10, 15, 0.5);
  outline: none;
}

.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(201, 169, 110, 0.06);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.podcast-info {
  text-align: left;
}

.podcast-info h2,
.podcast-info h3 {
  color: var(--gold);
  margin-bottom: 1rem;
}

.podcast-info ul {
  list-style: none;
  padding: 0;
}

.podcast-info li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
  color: var(--ivory-muted);
}

.podcast-info li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

/* ────────── HERO SHARE IMAGE ────────── */
.main-share-image-hero {
  width: calc(100% + 4rem);
  margin: 0 -2rem 3rem;
  background: var(--card);
  border-radius: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-image-container {
  padding: 3rem 2rem 2rem;
  background: rgba(201, 169, 110, 0.02);
}

.hero-image-container .share-main-container {
  max-width: 400px;
  margin: 0 auto;
}

.hero-share-img {
  max-width: 100%;
  border-radius: 2px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.hero-share-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border-subtle);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ivory-muted);
  padding: 0.75rem 1rem;
  border-radius: 2px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  max-width: none;
  text-transform: none;
  letter-spacing: 0.02em;
}

.share-btn:hover {
  border-color: var(--gold-dim);
  color: var(--gold);
  background: rgba(201, 169, 110, 0.04);
  transform: none;
  box-shadow: none;
}

/* ────────── FOOTER ────────── */
.site-footer {
  background: rgba(10, 10, 15, 0.95);
  border-top: 1px solid var(--border-subtle);
  margin-top: 6rem;
  padding: 3rem 0 1rem;
  width: 100%;
}

.footer-content {
  max-width: var(--grid-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  padding: 0 2rem;
}

.footer-section h4 {
  font-family: var(--heading-font);
  color: var(--gold);
  margin-bottom: 1rem;
  font-size: 1rem;
  letter-spacing: 0.03em;
  background: none;
  -webkit-text-fill-color: unset;
}

.footer-section p {
  color: var(--ivory-muted);
  line-height: 1.6;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.footer-section a {
  color: var(--ivory-muted);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--gold);
}

.footer-bottom {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: 2rem;
}

.footer-bottom p {
  color: rgba(168, 163, 158, 0.5);
  margin: 0;
  font-size: 0.85rem;
}

/* ────────── TOAST NOTIFICATIONS ────────── */
.toast,
.notification-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(18, 17, 26, 0.95);
  border: 1px solid var(--border);
  color: var(--ivory);
  padding: 1rem 2rem;
  border-radius: 2px;
  font-size: 0.95rem;
  z-index: 10000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  transition: all 0.5s var(--ease-elegant);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.toast.show,
.notification-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ────────── UTILITY CLASSES ────────── */
.hidden {
  display: none !important;
}

.locked {
  display: none;
}

.fade-in {
  animation: fadeInUp 0.8s var(--ease-elegant) both;
}

.resultButtons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* ────────── ANIMATIONS ────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes sigilPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(201, 169, 110, 0.1);
    border-color: rgba(201, 169, 110, 0.3);
  }
  50% {
    transform: scale(1.15);
    box-shadow: 0 0 40px rgba(201, 169, 110, 0.15);
    border-color: rgba(201, 169, 110, 0.5);
  }
}

@keyframes sigilFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes gateGlow {
  from {
    box-shadow: 0 0 20px rgba(201, 169, 110, 0.05);
    border-color: rgba(201, 169, 110, 0.15);
  }
  to {
    box-shadow: 0 0 40px rgba(201, 169, 110, 0.1);
    border-color: rgba(201, 169, 110, 0.3);
  }
}

@keyframes loadingPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

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

/* ────────── ACCESSIBILITY ────────── */
button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
}

/* ────────── RESPONSIVE ────────── */
@media (max-width: 768px) {
  #homePage {
    padding: 2.5rem 1.5rem 2rem;
  }

  #quizContainer,
  #loadingScreen,
  #resultGate {
    margin: 1.5rem auto;
    padding: 2rem 1.5rem;
    width: calc(100% - 2rem);
  }

  #resultScreen {
    padding: 0 1.5rem 3rem;
  }

  .test-banner {
    width: calc(100% + 3rem);
    margin: 0 -1.5rem 2rem;
    padding: 1rem 1.5rem;
  }

  .banner-content {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .main-share-image-hero {
    width: calc(100% + 3rem);
    margin: 0 -1.5rem 2rem;
  }

  .hero-image-container {
    padding: 2rem 1rem 1rem;
  }

  .hero-share-img {
    max-width: 300px;
  }

  .hero-share-actions {
    grid-template-columns: repeat(2, 1fr);
    padding: 1.5rem 1rem;
    gap: 0.75rem;
  }

  .share-btn {
    padding: 0.75rem 0.5rem;
    font-size: 0.85rem;
  }

  .nav-container {
    padding: 0.75rem 1rem;
  }

  .nav-menu {
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .dropdown-content {
    position: fixed;
    top: auto;
    right: 1rem;
    left: 1rem;
    transform: none;
    min-width: auto;
    max-height: 50vh;
    overflow-y: auto;
    z-index: 1001;
  }

  .dropdown:hover .dropdown-content,
  .dropdown:focus-within .dropdown-content {
    transform: none;
  }

  .dropdown-btn {
    padding: 0.75rem;
    font-size: 0.9rem;
    min-height: 44px;
  }

  .dropdown-content a {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--border-subtle);
  }

  .dropdown-content a:last-child {
    border-bottom: none;
  }

  .cards-container {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .personality-grid {
    margin-top: 3rem;
  }

  .personality-card {
    padding: 1.5rem;
  }

  .header-image {
    max-width: 220px;
    margin-bottom: 1.5rem;
  }

  #resultDescription,
  #resultInsights {
    padding: 1.5rem;
  }

  button {
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
    margin: 0.75rem auto;
  }

  .resultButtons {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .resultButtons button {
    width: 100%;
    max-width: 300px;
  }

  .standalone-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding: 1.5rem 0;
  }

  .header-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .header-logo {
    height: 45px;
  }

  #userEmail {
    width: 100%;
  }

  .variant-box {
    padding: 2rem 1.5rem;
    margin-top: 2rem;
  }

  #answerOptions {
    max-width: 100%;
  }

  #answerOptions label {
    padding: 1rem;
    font-size: 1rem;
  }

  .one-line-hit {
    font-size: clamp(1.3rem, 4vw, 1.6rem);
    padding: 2rem 1rem;
    margin: 2rem auto;
  }

  .relationship-tab {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .dimension-label {
    font-size: 0.85rem;
  }

  .micro-moment-item {
    padding: 1.25rem 1.5rem;
  }

  /* Mobile dropdown focus support */
  .dropdown-btn:focus + .dropdown-content,
  .dropdown-btn:active + .dropdown-content,
  .dropdown:focus-within .dropdown-content {
    opacity: 1;
    visibility: visible;
  }
}

@media (max-width: 480px) {
  #homePage {
    padding: 2rem 1rem 1.5rem;
  }

  #quizContainer,
  #loadingScreen,
  #resultScreen,
  #resultGate {
    margin: 1rem auto;
    padding: 1.5rem 1rem;
    width: calc(100% - 1rem);
  }

  #resultScreen {
    padding: 0 1rem 2.5rem;
  }

  .test-banner {
    width: calc(100% + 2rem);
    margin: 0 -1rem 1.5rem;
    padding: 0.75rem 1rem;
  }

  .banner-text {
    font-size: 0.85rem;
  }

  .main-share-image-hero {
    width: calc(100% + 2rem);
    margin: 0 -1rem 1.5rem;
  }

  h1 {
    font-size: clamp(1.6rem, 6vw, 2rem);
  }

  .start-test-btn {
    margin: 2rem auto 2.5rem;
    padding: 1rem 2rem;
  }
}

/* ────────── PRINT ────────── */
@media print {
  body {
    background: white;
    color: #1a1a1a;
  }

  body::before,
  body::after {
    display: none;
  }

  .main-nav,
  .nav-placeholder,
  .site-footer,
  button,
  .animated-button,
  .test-banner,
  .banner-cta,
  .share-cta,
  .share-btn {
    display: none !important;
  }

  #resultScreen {
    padding: 0;
  }

  .one-line-hit {
    color: #1a1a1a;
  }
}

/* ────────── MISSING CLASS PATCHES ────────── */
/* Classes referenced in index.html and script.js */

.btn-primary {
  display: inline-block;
  padding: 0.85rem 2.4rem;
  font-family: var(--body-font);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--gold);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.4s ease, color 0.4s ease;
}
.btn-primary:hover {
  background: var(--gold);
  color: var(--void);
}

.btn-share {
  padding: 0.5rem 1.4rem;
  font-family: var(--body-font);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ivory-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.btn-share:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-next {
  margin-top: 1.5rem;
}

.quiz-inner {
  max-width: var(--reading-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  text-align: center;
}

.question-counter {
  font-family: var(--body-font);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ivory-muted);
  margin-bottom: 2rem;
}

.question-text {
  font-family: var(--heading-font);
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--ivory);
  margin-bottom: 2rem;
}

.scenario-context {
  font-family: var(--body-font);
  font-size: 0.95rem;
  color: var(--ivory-muted);
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.answer-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto 1.5rem;
  text-align: left;
}

.likert-option,
.scenario-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.likert-option:hover,
.scenario-option:hover {
  border-color: var(--gold-dim);
  background: var(--card-raised);
}

.likert-option input[type="radio"],
.scenario-option input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--gold-dim);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
  transition: border-color 0.3s ease;
}
.likert-option input[type="radio"]:checked,
.scenario-option input[type="radio"]:checked {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: 0 0 8px rgba(201, 169, 110, 0.3);
}
.likert-option input[type="radio"]:checked::after,
.scenario-option input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px; right: 3px; bottom: 3px;
  background: var(--void);
  border-radius: 50%;
}

.likert-label,
.scenario-text {
  font-family: var(--body-font);
  font-size: 0.9rem;
  color: var(--ivory);
  line-height: 1.5;
}

.progress-bar {
  width: 100%;
  height: 3px;
  background: var(--border-subtle);
  margin-top: 2rem;
  border-radius: 1px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--gold);
  transition: width 0.4s ease;
  border-radius: 1px;
}

.loading-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 2rem;
}

.loading-sigil {
  width: 48px;
  height: 48px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  animation: pulse-sigil 2s ease-in-out infinite;
}
@keyframes pulse-sigil {
  0%, 100% { transform: scale(1); opacity: 0.6; box-shadow: 0 0 0 0 rgba(201,169,110,0.3); }
  50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 24px 4px rgba(201,169,110,0.15); }
}

.loading-text {
  font-family: var(--heading-font);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ivory-muted);
}

.result-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}
.banner-link {
  font-size: 0.8rem;
  color: var(--ivory-muted);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.3s;
}
.banner-link:hover { color: var(--gold); }

.result-header {
  text-align: center;
  margin-bottom: 3rem;
}

.result-sigil {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
}

.result-title {
  font-family: var(--heading-font);
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--ivory);
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.result-tagline {
  font-family: var(--body-font);
  font-size: 1.05rem;
  color: var(--ivory-muted);
  font-style: italic;
}

.result-description {
  font-family: var(--body-font);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ivory);
  margin-bottom: 3rem;
}

.result-insights {
  margin-bottom: 3rem;
}

.insight-block {
  margin-bottom: 2rem;
}

.insight-list {
  font-family: var(--body-font);
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--ivory);
}

.section-heading {
  font-family: var(--heading-font);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--ivory);
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.result-guidance {
  margin-bottom: 3rem;
}
.result-guidance div {
  font-family: var(--body-font);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ivory);
}

.hero {
  text-align: center;
  padding: 4rem 1.5rem 3rem;
}
.hero-subtitle {
  font-family: var(--heading-font);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--ivory-muted);
  margin-bottom: 1rem;
}
.hero-description {
  font-family: var(--body-font);
  font-size: 0.95rem;
  color: var(--ivory-muted);
  max-width: 420px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* Responsive patches */
@media (max-width: 600px) {
  .result-title { font-size: 1.8rem; }
  .result-banner { flex-direction: column; gap: 0.75rem; text-align: center; }
  .quiz-inner { padding: 2rem 1rem; }
  .question-text { font-size: 1.1rem; }
  .hero-subtitle { font-size: 1.1rem; }
}
