/* ═══════════════════════════════════════════
   Twin Matrix — Onboarding v2: Soul Discovery
   Warm, meaningful interactive questionnaire
   ═══════════════════════════════════════════ */

/* ── Layout ── */
.ob-header { margin-bottom: 1.5rem; }
.ob-progress { margin-bottom: 1.5rem; }

.ob-card {
  /* Fixed height — tall enough for ALL content, NO scrollbar */
  height: 650px;
  display: flex; flex-direction: column;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}
/* Ensure interaction area fills remaining space */
.ob-card [data-type] {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}
/* CRITICAL: Grid-based types MUST override the parent flex with their own grid.
   Without !important, the [data-type] flex rule wins and forces single-column. */
.ob-card .ob-toggle-grid[data-type]  { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 0.4rem; align-content: center; }
.ob-card .ob-flip-grid[data-type]    { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 0.5rem; align-content: center; }
.ob-card .ob-scenario-grid[data-type]{ display: grid !important; gap: 0.5rem; align-content: center; }
.ob-card .ob-scenario-grid[data-type]:not(.col-5) { grid-template-columns: repeat(2, 1fr) !important; }
.ob-card .ob-scenario-grid.col-5[data-type] { grid-template-columns: repeat(5, 1fr) !important; }

/* ── Question Copy: 3-Layer ── */
.ob-section-label {
  font-family: var(--font-mono); font-size: 0.55rem;
  font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-deep); opacity: 0.7;
  margin-bottom: 0.8rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.ob-section-label::before {
  content: '';
  width: 16px; height: 1.5px;
  background: var(--green-deep); opacity: 0.4;
}
.ob-question-title {
  font-family: var(--font-serif);
  font-size: 1.3rem; font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 0.4rem; line-height: 1.25;
  letter-spacing: -0.01em;
}
.ob-question-context {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 1rem; line-height: 1.55;
  opacity: 0.85;
}
.ob-question-context em {
  font-style: normal;
  color: var(--green-deep); font-weight: 500;
}

/* ═══════════════════════════════════════════
   INTERACTION TYPE 1: Timeline (Q1 Age)
   Nodes on a horizontal line
   ═══════════════════════════════════════════ */
.ob-timeline {
  margin-top: auto; padding: 0.5rem 0;
}
.ob-timeline-track {
  position: relative;
  height: 4px; background: var(--border);
  border-radius: 2px; margin: 1.5rem 0 0.5rem;
}
.ob-timeline-fill {
  position: absolute; left: 0; top: 0; height: 100%;
  background: var(--green-deep); border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.22,1,0.36,1);
}
.ob-timeline-nodes {
  display: flex; justify-content: space-between;
  position: relative; margin-top: -10px;
}
.ob-timeline-node {
  display: flex; flex-direction: column;
  align-items: center; gap: 0.5rem;
  cursor: pointer; background: none; border: none;
  padding: 0; z-index: 1;
}
.ob-timeline-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2.5px solid var(--border);
  background: var(--bg-cream, #faf8f3);
  transition: all 0.3s ease;
}
body.dark .ob-timeline-dot { background: var(--bg-dark, #1a1a18); }
.ob-timeline-node:hover .ob-timeline-dot {
  border-color: var(--green-deep);
}
.ob-timeline-node.active .ob-timeline-dot {
  background: var(--green-deep);
  border-color: var(--green-deep);
  box-shadow: 0 0 0 3px rgba(45,90,60,.15);
}
.ob-timeline-label {
  font-family: var(--font-mono); font-size: 0.6rem;
  color: var(--text-muted); white-space: nowrap;
  transition: color 0.2s;
}
.ob-timeline-node.active .ob-timeline-label {
  color: var(--green-deep); font-weight: 600;
}

/* ═══════════════════════════════════════════
   INTERACTION TYPE 2: Glow Icons (Q2 Gender)
   Large cards with radial glow on select
   ═══════════════════════════════════════════ */
.ob-glow-icons {
  display: flex; gap: 0.6rem; justify-content: center;
  flex-wrap: wrap;
  margin-top: auto;
}
.ob-glow-btn {
  width: 90px; height: 85px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.4rem;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  position: relative;
}
.ob-glow-btn:hover { border-color: var(--green-deep); }
.ob-glow-btn.active {
  border-color: var(--green-deep);
  background: rgba(45,90,60,.18);
  box-shadow: 0 0 0 2px var(--green-deep), 0 2px 12px rgba(45,90,60,.15);
}
.ob-glow-svg { width: 28px; height: 28px; }
.ob-glow-svg path, .ob-glow-svg circle { transition: all 0.3s; }
.ob-glow-btn.active .ob-glow-svg path,
.ob-glow-btn.active .ob-glow-svg circle {
  stroke: var(--green-deep); fill: rgba(45,90,60,.08);
}
.ob-glow-label {
  font-family: var(--font-mono); font-size: 0.65rem;
  color: var(--text-muted); letter-spacing: 0.05em;
  transition: all 0.3s;
}
.ob-glow-btn.active .ob-glow-label {
  color: var(--green-deep); font-weight: 600;
}

/* ═══════════════════════════════════════════
   INTERACTION TYPE 3: Flip Cards (Q3 Occupation)
   Click to flip, stays flipped when active
   ═══════════════════════════════════════════ */
/* ── Simple card buttons (Q3 Occupation) ── */
.ob-flip-grid {
  gap: 0.5rem;
}
.ob-card-btn {
  padding: 0.6rem 0.4rem;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: transparent;
  cursor: pointer;
  text-align: center;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.2rem;
}
.ob-card-btn:hover { border-color: var(--green-deep); }
.ob-card-btn.active {
  border-color: var(--green-deep);
  background: rgba(45,90,60,.18);
  box-shadow: 0 0 0 2px var(--green-deep), 0 2px 12px rgba(45,90,60,.15);
}
/* Q3 occupation grid — icon must be on same element: .ob-svg-icon.ob-card-icon */
.ob-svg-icon.ob-card-icon { width: 28px; height: 28px; }
.ob-card-label {
  font-family: var(--font-serif); font-size: 0.7rem;
  color: var(--text-secondary);
}
.ob-card-btn.active .ob-card-label { color: var(--green-deep); font-weight: 600; }
.ob-card-sub {
  font-family: var(--font-mono); font-size: 0.45rem;
  color: var(--text-muted);
}
.ob-card-btn.active .ob-card-sub { color: var(--green-deep); opacity: 0.7; }

/* ═══════════════════════════════════════════
   INTERACTION TYPE 4: Scenario Cards (Q4, Q9, Q10)
   Cards with animated border + icon
   ═══════════════════════════════════════════ */
.ob-scenario-grid {
  gap: 0.5rem;
}
.ob-scenario-grid.col-5 {
  /* columns set by .ob-card override above */
}
.ob-scenario-btn {
  padding: 0.6rem 0.4rem;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  text-align: center;
  position: relative;
}
.ob-scenario-btn .ob-sc-icon {
  font-size: 1.1rem; margin-bottom: 0.2rem; display: block;
}
.ob-scenario-btn .ob-sc-label {
  font-family: var(--font-serif); font-size: 0.68rem;
  color: var(--text-secondary); line-height: 1.3;
  transition: color 0.25s;
}
.ob-scenario-btn .ob-sc-sub {
  font-family: var(--font-mono); font-size: 0.48rem;
  color: var(--text-muted); margin-top: 0.15rem; display: block;
  transition: color 0.25s;
}
.ob-scenario-btn:hover {
  border-color: var(--green-deep);
}
.ob-scenario-btn.active {
  border-color: var(--green-deep);
  background: rgba(45,90,60,.18);
  box-shadow: 0 0 0 2px var(--green-deep), 0 2px 12px rgba(45,90,60,.15);
}
body.dark .ob-scenario-btn.active { background: rgba(45,90,60,.25); }
.ob-scenario-btn.active .ob-sc-label { color: var(--green-deep); font-weight: 600; }
.ob-scenario-btn.active .ob-sc-sub { color: var(--green-deep); opacity: 0.7; }

/* ═══════════════════════════════════════════
   INTERACTION TYPE 5: Toggle Grid (Q5 Platforms)
   Logo grid with light/glow toggle
   ═══════════════════════════════════════════ */
.ob-toggle-grid {
  gap: 0.4rem;
}
.ob-toggle-btn {
  padding: 0.4rem 0.3rem;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  text-align: center;
  display: flex; flex-direction: column;
  align-items: center; gap: 0.3rem;
  position: relative;
}
.ob-toggle-btn .ob-tg-icon { font-size: 1rem; }
.ob-toggle-btn .ob-tg-name {
  font-family: var(--font-mono); font-size: 0.45rem;
  color: var(--text-muted); letter-spacing: 0.02em;
  transition: color 0.25s;
}
.ob-toggle-btn:hover { border-color: var(--green-deep); }
.ob-toggle-btn.active {
  border-color: var(--green-deep);
  background: rgba(45,90,60,.18);
  box-shadow: 0 0 0 2px var(--green-deep), 0 2px 12px rgba(45,90,60,.15);
}
body.dark .ob-toggle-btn.active { background: rgba(45,90,60,.15); }
.ob-toggle-btn.active .ob-tg-name { color: var(--green-deep); font-weight: 600; }
/* Active indicator dot */
.ob-toggle-btn.active::after {
  content: '';
  position: absolute; top: 5px; right: 5px;
  width: 5px; height: 5px;
  border-radius: 50%; background: var(--green-deep);
}

/* ═══════════════════════════════════════════
   INTERACTION TYPE 6: Orbit Tags (Q6 Interests)
   Floating multi-select with max cap
   ═══════════════════════════════════════════ */
.ob-orbit-wrap {
  margin-top: auto;
}
.ob-orbit-tags {
  display: flex; flex-wrap: wrap; gap: 0.35rem;
  justify-content: center;
}
.ob-orbit-tag {
  font-family: var(--font-serif); font-size: 0.72rem;
  padding: 0.4rem 0.8rem; border-radius: 30px;
  border: 1.5px solid var(--border);
  background: transparent; color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, color 0.25s, box-shadow 0.25s;
  display: flex; align-items: center; gap: 0.4rem;
  position: relative;
}
.ob-orbit-tag .ob-ot-icon { font-size: 0.95rem; }
.ob-orbit-tag:hover {
  border-color: var(--green-deep); color: var(--green-deep);
}
.ob-orbit-tag.active {
  border-color: var(--green-deep);
  background: rgba(45,90,60,.18);
  color: var(--green-deep);
  box-shadow: 0 0 0 2px var(--green-deep), 0 2px 12px rgba(45,90,60,.15);
  font-weight: 600;
}
.ob-orbit-tag.disabled {
  opacity: 0.3; pointer-events: none;
}
.ob-orbit-hint {
  font-family: var(--font-mono); font-size: 0.58rem;
  color: var(--text-muted); margin-top: 0.8rem;
  text-align: center; letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════
   INTERACTION TYPE 7: Step Gauge (Q7 Tech)
   Vertical step meter with labels
   ═══════════════════════════════════════════ */
.ob-gauge {
  margin-top: auto; display: flex;
  flex-direction: column; gap: 0.3rem;
}
.ob-gauge-step {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.4rem 0.8rem;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.ob-gauge-step:hover {
  border-color: var(--green-deep);
}
.ob-gauge-bar {
  width: 3px; height: 22px;
  border-radius: 2px; background: var(--border);
  transition: all 0.3s;
}
.ob-gauge-step.active .ob-gauge-bar {
  background: var(--green-deep);
  box-shadow: 0 0 6px rgba(45,90,60,.3);
}
.ob-gauge-text {
  flex: 1;
}
.ob-gauge-label {
  font-family: var(--font-serif); font-size: 0.75rem;
  color: var(--text-secondary); transition: color 0.2s;
}
.ob-gauge-sub {
  font-family: var(--font-mono); font-size: 0.48rem;
  color: var(--text-muted); margin-top: 0.1rem;
}
.ob-gauge-step.active {
  border-color: var(--green-deep);
  background: rgba(45,90,60,.18);
  box-shadow: 0 0 0 2px var(--green-deep), 0 2px 12px rgba(45,90,60,.15);
}
body.dark .ob-gauge-step.active { background: rgba(45,90,60,.25); }
.ob-gauge-step.active .ob-gauge-label { color: var(--green-deep); font-weight: 600; }

/* ═══════════════════════════════════════════
   INTERACTION TYPE 8: Tier Selector (Q8 Budget)
   Segmented tier with visual progression
   ═══════════════════════════════════════════ */
.ob-tiers {
  display: flex; gap: 0.35rem; margin-top: auto;
}
.ob-tier-btn {
  flex: 1;
  padding: 0.5rem 0.3rem;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  text-align: center;
  display: flex; flex-direction: column;
  align-items: center; gap: 0.35rem;
}
.ob-tier-icon { font-size: 1rem; }
.ob-tier-amount {
  font-family: var(--font-mono); font-size: 0.65rem;
  color: var(--text-secondary); font-weight: 600;
  transition: color 0.25s;
}
.ob-tier-desc {
  font-family: var(--font-mono); font-size: 0.46rem;
  color: var(--text-muted); letter-spacing: 0.03em;
}
.ob-tier-btn:hover { border-color: var(--green-deep); }
.ob-tier-btn.active {
  border-color: var(--green-deep);
  background: rgba(45,90,60,.18);
  box-shadow: 0 0 0 2px var(--green-deep), 0 2px 12px rgba(45,90,60,.15);
}
body.dark .ob-tier-btn.active { background: rgba(45,90,60,.25); }
.ob-tier-btn.active .ob-tier-amount { color: var(--green-deep); }

/* ═══════════════════════════════════════════
   Navigation — sticky bottom on mobile
   ═══════════════════════════════════════════ */
.ob-nav {
  display: flex; gap: 0.75rem;
  position: sticky; bottom: 0;
  z-index: 20;
  background: linear-gradient(to bottom, transparent 0%, var(--bg, #F5F0E8) 25%);
  padding: 1.5rem 0 1rem;
  margin-top: auto; /* push to bottom of card flexbox */
}
body.dark .ob-nav {
  background: linear-gradient(to bottom, transparent 0%, var(--bg-dark, #1a1a1a) 25%);
}
.ob-nav .app-btn { flex: 1; padding: 0.8rem; }

/* ═══════════════════════════════════════════
   Completion: DNA Helix (palette-aligned)
   ═══════════════════════════════════════════ */
/* Results card: override fixed height so all content (DNA + dims + buttons) is visible */
.ob-card.ob-card-results {
  height: auto;
  min-height: 440px;
  overflow-y: auto;
  overflow-x: hidden;
}

.ob-complete { text-align: center; padding: 1rem 0 0.5rem; }

/* DNA Helix — pure CSS 3D rotating double helix */
.ob-dna-wrap {
  width: 60px; height: 110px;
  margin: 0 auto 1rem;
  perspective: 800px;
}
.ob-dna {
  width: 100%; height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: dnaRotate 6s linear infinite;
  transform: rotateX(-10deg);
}
@keyframes dnaRotate {
  from { transform: rotateX(-10deg) rotateY(0deg); }
  to   { transform: rotateX(-10deg) rotateY(360deg); }
}

.ob-dna-node {
  position: absolute;
  left: 50%; width: 6px; height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--strand-color);
  box-shadow: 0 0 6px var(--strand-color);
  transform-style: preserve-3d;
  animation: dnaPulseNode 2s ease-in-out infinite alternate;
}

@keyframes dnaPulseNode {
  0%   { filter: brightness(0.6); transform: var(--base-transform) scale(0.85); }
  100% { filter: brightness(1.4); transform: var(--base-transform) scale(1.15); }
}

/* Bridges connecting the two strands */
.ob-dna-bridge {
  position: absolute;
  left: 50%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--strand-color), transparent);
  box-shadow: 0 0 8px var(--strand-color);
  transform-style: preserve-3d;
  animation: rgbPulseBridge 2s ease-in-out infinite alternate;
}

@keyframes rgbPulseBridge {
  0%   { opacity: 0.3; filter: brightness(0.7); }
  100% { opacity: 0.9; filter: brightness(1.3); }
}

/* ═══════════════════════════════════════════
   Computation Theater — 3-5s loading
   ═══════════════════════════════════════════ */
.ob-computing {
  text-align: center; padding: 3rem 0;
}
.ob-computing-label {
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--green-deep); margin-top: 1.5rem;
  animation: computeBlink 1s ease-in-out infinite;
}
@keyframes computeBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.ob-compute-progress {
  max-width: 300px; margin: 1rem auto 0;
  height: 3px; border-radius: 2px;
  background: rgba(45,74,53,.1);
  overflow: hidden;
}
.ob-compute-bar {
  height: 100%; border-radius: 2px;
  background: var(--green-deep);
  box-shadow: 0 0 8px rgba(45,74,53,.4);
  width: 0%;
  transition: width 0.1s linear;
}
.ob-compute-dims {
  font-family: var(--font-mono); font-size: 1.8rem;
  font-weight: 700; color: var(--green-deep);
  margin-top: 1rem;
}
.ob-compute-dims .ob-dim-total {
  font-size: 0.6rem; color: var(--text-muted);
  font-weight: 400; display: block; margin-top: 0.2rem;
  letter-spacing: 0.08em;
}
.ob-compute-hex {
  font-family: var(--font-mono); font-size: 0.45rem;
  color: var(--text-muted); opacity: 0.5;
  max-width: 320px; margin: 0.8rem auto;
  word-break: break-all; line-height: 1.5;
  animation: hexScroll 0.15s linear infinite;
  height: 2.5em; overflow: hidden;
}
@keyframes hexScroll {
  0% { opacity: 0.4; }
  50% { opacity: 0.7; }
  100% { opacity: 0.4; }
}

/* ═══════════════════════════════════════════
   Results — after computation
   ═══════════════════════════════════════════ */
.ob-complete-title {
  font-family: var(--font-serif);
  font-size: 1.35rem; font-weight: 700;
  color: var(--green-deep); margin-bottom: 0.4rem;
}
.ob-complete-desc {
  font-family: var(--font-serif);
  font-size: 0.82rem;
  color: var(--text-secondary); margin-bottom: 0.8rem;
  max-width: 420px; margin-left: auto; margin-right: auto;
  line-height: 1.5;
}

/* Activated dims with glow bars */
.ob-dims-preview {
  text-align: left; max-width: 420px;
  margin: 0 auto 0.8rem;
  background: rgba(45,74,53,.04);
  border: 1px solid var(--border);
  border-radius: 10px; padding: 0.6rem 0.8rem;
  max-height: 130px; overflow-y: auto;
}
.ob-dims-preview .ob-dim-row {
  display: flex; align-items: center;
  gap: 0.5rem; padding: 0.25rem 0;
  font-family: var(--font-mono); font-size: 0.55rem;
  opacity: 0;
  animation: dimReveal 0.4s ease forwards;
}
@keyframes dimReveal {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}
.ob-dim-id { color: var(--text-muted); min-width: 30px; text-align: right; }
.ob-dim-label { color: var(--text-secondary); flex: 1; }
.ob-dim-bar-wrap {
  width: 50px; height: 3px;
  background: var(--border); border-radius: 2px;
  overflow: hidden;
}
.ob-dim-bar {
  height: 100%; border-radius: 2px;
  background: var(--green-deep);
  width: 0%;
  transition: width 0.8s cubic-bezier(0.22,1,0.36,1);
}
.ob-dim-val {
  color: var(--green-deep); font-weight: 600; min-width: 24px; text-align: right;
  transition: all 0.2s ease;
}
.ob-dim-val.flash {
  text-shadow: 0 0 10px var(--green-deep);
  transform: scale(1.3);
  font-weight: 800;
  color: var(--text-primary);
}

/* Hex output */
.ob-hex {
  font-family: var(--font-mono); font-size: 0.48rem;
  color: var(--text-muted); word-break: break-all;
  background: rgba(45,74,53,.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.7rem; margin-bottom: 0.8rem;
  max-width: 420px; margin-left: auto; margin-right: auto;
  line-height: 1.5; text-align: center;
}
.ob-hex-label {
  font-size: 0.45rem; text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 0.3rem; display: block;
}

/* CTA button */
.ob-cta-matrix {
  display: inline-block;
  padding: 0.7rem 1.8rem;
  font-family: var(--font-mono); font-size: 0.78rem;
  font-weight: 600; letter-spacing: 0.04em;
  color: var(--cream); background: var(--green-deep);
  border: none; border-radius: 30px;
  cursor: pointer; text-decoration: none;
  box-shadow: 0 4px 16px rgba(45,74,53,.2);
  transition: box-shadow 0.25s;
}
.ob-cta-matrix:hover {
  box-shadow: 0 6px 24px rgba(45,74,53,.35);
}

/* Write to Blockchain CTA */
.ob-chain-cta {
  margin: 1rem auto 0.5rem;
  max-width: 420px; text-align: center;
}
.ob-btn-chain {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  font-family: var(--font-mono); font-size: 0.75rem;
  font-weight: 600; letter-spacing: 0.03em;
  color: var(--text-secondary);
  background: transparent;
  border: 1.5px solid var(--green-deep);
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.35s ease;
}
.ob-btn-chain svg { stroke: var(--green-deep); flex-shrink: 0; }
.ob-btn-chain:hover {
  background: rgba(45,74,53,.08);
  box-shadow: 0 0 20px rgba(45,74,53,.15);
  transform: translateY(-2px);
}
.ob-btn-chain:disabled {
  opacity: 0.6; cursor: wait;
}
.ob-chain-status {
  font-family: var(--font-mono); font-size: 0.6rem;
  margin-top: 0.6rem; min-height: 1.2em;
  transition: color 0.3s;
}
.ob-chain-status a { text-decoration: underline; }

/* ═══════════════════════════════════════════
   Skip Button
   ═══════════════════════════════════════════ */
.ob-skip-wrap {
  margin-top: 1rem; text-align: center;
}
.ob-skip-btn {
  font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: none; border: 1px solid var(--border);
  padding: 0.45rem 1.2rem;
  border-radius: 20px; cursor: pointer;
  transition: all 0.25s ease;
  opacity: 0.6;
}
.ob-skip-btn:hover {
  opacity: 1;
  color: var(--text-secondary);
  border-color: var(--text-muted);
}

/* ═══════════════════════════════════════════
   Cinematic Interstitial Overlay
   ═══════════════════════════════════════════ */
.ob-cinematic {
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  min-height: 250px;
}
.ob-loader {
  width: 48px; height: 48px;
  border: 3px solid rgba(45,74,53,0.1);
  border-left-color: var(--green-deep);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 2rem;
}
body.dark .ob-loader {
  border: 3px solid rgba(212,200,154,0.1);
  border-left-color: var(--green-deep);
}
@keyframes spin { 100% { transform: rotate(360deg); } }

.ob-interstitial h2 {
  font-family: var(--font-mono);
  font-size: 1.1rem; font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0; min-height: 1.5rem;
}

/* ═══════════════════════════════════════════
   Transitions & Entrance Animations
   ═══════════════════════════════════════════ */
.ob-card.slide-out { animation: slideOut 0.25s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards; }
.ob-card.slide-in  { animation: slideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; }
@keyframes slideOut { to { opacity: 0; transform: translateX(-40px) scale(0.98); } }
@keyframes slideIn  { from { opacity: 0; transform: translateX(40px) scale(0.98); } to { opacity: 1; transform: translateX(0) scale(1); } }

/* ── Per-Interaction Entrance Animations ── */

/* Exaggerated stagger keyframes */
@keyframes staggerIn {
  0% { opacity: 0; transform: translateY(30px) scale(0.95); filter: blur(4px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes staggerScale {
  0% { opacity: 0; transform: scale(0.6); filter: blur(4px); }
  100% { opacity: 1; transform: scale(1); filter: blur(0); }
}
@keyframes staggerSlideUp {
  0% { opacity: 0; transform: translateY(40px) scale(0.9); filter: blur(5px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes floatIn {
  0% { opacity: 0; transform: translateY(20px) rotate(-8deg) scale(0.8); filter: blur(3px); }
  100% { opacity: 1; transform: translateY(0) rotate(0) scale(1); filter: blur(0); }
}

/* Timeline nodes — bounce in left to right */
.ob-timeline-node {
  opacity: 0;
  animation: staggerIn 0.35s ease forwards;
}
.ob-timeline-node:nth-child(1) { animation-delay: 0.05s; }
.ob-timeline-node:nth-child(2) { animation-delay: 0.1s; }
.ob-timeline-node:nth-child(3) { animation-delay: 0.15s; }
.ob-timeline-node:nth-child(4) { animation-delay: 0.2s; }
.ob-timeline-node:nth-child(5) { animation-delay: 0.25s; }
.ob-timeline-node:nth-child(6) { animation-delay: 0.3s; }
.ob-timeline-track { animation: slideIn 0.4s ease forwards; }

/* Glow buttons (dual-axis gender) — scale up staggered */
.ob-glow-btn {
  opacity: 0;
  animation: staggerScale 0.4s cubic-bezier(0.22,1,0.36,1) forwards;
}
.ob-axis-options .ob-glow-btn:nth-child(1) { animation-delay: 0.08s; }
.ob-axis-options .ob-glow-btn:nth-child(2) { animation-delay: 0.16s; }
.ob-axis-options .ob-glow-btn:nth-child(3) { animation-delay: 0.24s; }
.ob-axis-options .ob-glow-btn:nth-child(4) { animation-delay: 0.32s; }

/* Flip cards — cascade stagger */
.ob-flip-card {
  opacity: 0;
  animation: staggerSlideUp 0.4s cubic-bezier(0.22,1,0.36,1) forwards;
}
.ob-flip-card:nth-child(1) { animation-delay: 0.04s; }
.ob-flip-card:nth-child(2) { animation-delay: 0.08s; }
.ob-flip-card:nth-child(3) { animation-delay: 0.12s; }
.ob-flip-card:nth-child(4) { animation-delay: 0.16s; }
.ob-flip-card:nth-child(5) { animation-delay: 0.2s; }
.ob-flip-card:nth-child(6) { animation-delay: 0.24s; }
.ob-flip-card:nth-child(7) { animation-delay: 0.28s; }
.ob-flip-card:nth-child(8) { animation-delay: 0.32s; }
.ob-flip-card:nth-child(9) { animation-delay: 0.36s; }

/* Scenario cards — fan out */
.ob-scenario-btn {
  opacity: 0;
  animation: staggerScale 0.4s cubic-bezier(0.22,1,0.36,1) forwards;
}
.ob-scenario-btn:nth-child(1) { animation-delay: 0.06s; }
.ob-scenario-btn:nth-child(2) { animation-delay: 0.12s; }
.ob-scenario-btn:nth-child(3) { animation-delay: 0.18s; }
.ob-scenario-btn:nth-child(4) { animation-delay: 0.24s; }
.ob-scenario-btn:nth-child(5) { animation-delay: 0.3s; }

/* Toggle grid — ripple in */
.ob-toggle-btn {
  opacity: 0;
  animation: staggerScale 0.35s cubic-bezier(0.22,1,0.36,1) forwards;
}
.ob-toggle-btn:nth-child(1) { animation-delay: 0.03s; }
.ob-toggle-btn:nth-child(2) { animation-delay: 0.06s; }
.ob-toggle-btn:nth-child(3) { animation-delay: 0.09s; }
.ob-toggle-btn:nth-child(4) { animation-delay: 0.12s; }
.ob-toggle-btn:nth-child(5) { animation-delay: 0.15s; }
.ob-toggle-btn:nth-child(6) { animation-delay: 0.18s; }
.ob-toggle-btn:nth-child(7) { animation-delay: 0.21s; }
.ob-toggle-btn:nth-child(8) { animation-delay: 0.24s; }

/* Orbit tags — float in with subtle rotation */
.ob-orbit-tag {
  opacity: 0;
  animation: floatIn 0.4s ease forwards;
}
.ob-orbit-tag:nth-child(1) { animation-delay: 0.05s; }
.ob-orbit-tag:nth-child(2) { animation-delay: 0.1s; }
.ob-orbit-tag:nth-child(3) { animation-delay: 0.15s; }
.ob-orbit-tag:nth-child(4) { animation-delay: 0.2s; }
.ob-orbit-tag:nth-child(5) { animation-delay: 0.25s; }
.ob-orbit-tag:nth-child(6) { animation-delay: 0.3s; }
.ob-orbit-tag:nth-child(7) { animation-delay: 0.35s; }
.ob-orbit-tag:nth-child(8) { animation-delay: 0.4s; }

/* Gauge steps — slide in from left */
.ob-gauge-step {
  opacity: 0;
  animation: staggerIn 0.4s ease forwards;
}
.ob-gauge-step:nth-child(1) { animation-delay: 0.08s; }
.ob-gauge-step:nth-child(2) { animation-delay: 0.16s; }
.ob-gauge-step:nth-child(3) { animation-delay: 0.24s; }
.ob-gauge-step:nth-child(4) { animation-delay: 0.32s; }

/* Tier buttons — grow up */
.ob-tier-btn {
  opacity: 0;
  animation: staggerSlideUp 0.45s cubic-bezier(0.22,1,0.36,1) forwards;
}
.ob-tier-btn:nth-child(1) { animation-delay: 0.06s; }
.ob-tier-btn:nth-child(2) { animation-delay: 0.14s; }
.ob-tier-btn:nth-child(3) { animation-delay: 0.22s; }
.ob-tier-btn:nth-child(4) { animation-delay: 0.3s; }

/* Skip button — delayed fade */
.ob-skip-wrap {
  opacity: 0;
  animation: staggerIn 0.3s ease 0.5s forwards;
}

/* ── Section label animation ── */
.ob-section-label {
  opacity: 0;
  animation: staggerIn 0.3s ease 0.02s forwards;
}
.ob-question-title {
  opacity: 0;
  animation: staggerIn 0.35s ease 0.06s forwards;
}
.ob-question-context {
  opacity: 0;
  animation: staggerIn 0.35s ease 0.1s forwards;
}

/* ── Accessibility: respect reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ═══════════════════════════════════════════
   SVG Icon Container
   ═══════════════════════════════════════════ */
.ob-svg-icon {
  display: inline-flex; align-items: center; justify-content: center;
}
.ob-svg-icon svg {
  width: 100%; height: 100%;
  color: var(--text-secondary);
  transition: color 0.3s, transform 0.3s;
}
/* Size variants by context */
.ob-glow-btn .ob-svg-icon { width: 36px; height: 36px; }
.ob-flip-icon { width: 32px; height: 32px; margin-bottom: 0.2rem; }
.ob-flip-icon-back svg { color: #fff; }
.ob-sc-icon { width: 36px; height: 36px; margin-bottom: 0.3rem; display: block; }
.ob-sc-icon svg { transition: transform 0.35s cubic-bezier(0.22,1,0.36,1); }
.ob-scenario-btn:hover .ob-sc-icon svg { transform: scale(1.15); }
.ob-tg-icon { width: 28px; height: 28px; }
.ob-ot-icon { width: 20px; height: 20px; }
.ob-gauge-icon { width: 28px; height: 28px; flex-shrink: 0; }
.ob-tier-icon { width: 32px; height: 32px; }
/* Active states */
.active .ob-svg-icon svg { color: var(--green-deep); }
.ob-flip-back .ob-svg-icon svg { color: rgba(255,255,255,.9); }
.ob-orbit-tag.active .ob-svg-icon svg { color: #fff; }

/* ═══════════════════════════════════════════
   INTERACTION TYPE: Dual-Axis (Q2 Gender)
   Biological + Psychological side by side
   ═══════════════════════════════════════════ */
.ob-dual-axis {
  margin-top: auto;
  display: flex; flex-direction: column; gap: 1.2rem;
}
@media (max-width: 640px) {
  .ob-dual-axis { margin-top: 0.5rem; gap: 0.8rem; }
  .ob-axis-options .ob-glow-btn { min-width: 0; }
}
.ob-axis-group { margin-bottom: 0; }
.ob-axis-label {
  font-family: var(--font-mono); font-size: 0.58rem;
  font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  padding-left: 0.2rem;
}
.ob-axis-options {
  display: flex; gap: 0.6rem; justify-content: center;
}

/* ═══════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════ */

/* Tablet & small desktop */
@media (max-width: 640px) {
  .ob-card { min-height: 440px; height: auto; overflow-y: auto; }
  .ob-question-title { font-size: 1.25rem; }
  .ob-question-context { font-size: 0.7rem; margin-bottom: 0.6rem; line-height: 1.35; max-height: 4.5em; overflow: hidden; }
}

/* Mobile */
@media (max-width: 480px) {
  .ob-axis-options { flex-wrap: wrap; gap: 0.4rem; justify-content: center; }
  .ob-axis-options .ob-glow-btn { width: 75px; height: 72px; }
  .ob-axis-options .ob-glow-btn .ob-glow-svg { width: 22px; height: 22px; }
  .ob-axis-options .ob-glow-btn .ob-glow-label { font-size: 0.58rem; }
  .ob-dual-axis { gap: 0.6rem; }
  .ob-axis-label { font-size: 0.52rem; margin-bottom: 0.3rem; }

  /* Glow buttons: 2×2 grid on small screens */
  .ob-glow-grid {
    display: flex; flex-wrap: wrap;
    justify-content: center; gap: 0.5rem;
  }
  .ob-glow-btn {
    width: calc(50% - 0.5rem); height: 100px;
    min-width: 0; /* override fixed width */
  }

  /* Platform toggle: 4→2 columns on narrow phones (must match base specificity + !important) */
  .ob-card .ob-toggle-grid[data-type] { grid-template-columns: repeat(2, 1fr) !important; gap: 0.4rem; }
  .ob-toggle-btn { padding: 0.5rem; font-size: 0.72rem; }

  /* Occupation flip cards: 3→2 columns */
  .ob-card .ob-flip-grid[data-type] { grid-template-columns: repeat(2, 1fr) !important; gap: 0.4rem; }
  .ob-flip-card { min-height: 90px; }

  /* Scenario options */
  .ob-scenario-grid { gap: 0.4rem; }
  .ob-scenario-btn { padding: 0.7rem; font-size: 0.78rem; }
  /* Energy rhythm: 5→3 columns */
  .ob-card .ob-scenario-grid.col-5[data-type] { grid-template-columns: repeat(3, 1fr) !important; }

  /* Tier budget buttons */
  .ob-tiers { flex-wrap: wrap; gap: 0.4rem; }
  .ob-tier-btn {
    min-width: calc(50% - 0.25rem); flex: unset;
    padding: 0.7rem 0.4rem; font-size: 0.75rem;
  }

  /* Gauge steps (tech level) */
  .ob-gauge-step { padding: 0.5rem 0.7rem; }
  .ob-gauge-label { font-size: 0.78rem; }
  .ob-gauge-sub { font-size: 0.6rem; }

  /* Orbit tags (interests) */
  .ob-orbit-tag { padding: 0.5rem 0.8rem; font-size: 0.75rem; }

  /* Navigation buttons */
  .ob-nav { padding: 1rem 0 0.5rem; }
  .ob-nav .app-btn { padding: 0.7rem; font-size: 0.85rem; }

  /* Timeline slider */
  .ob-timeline-track { padding: 0 0.25rem; }
  .ob-timeline-label { font-size: 0.65rem; }
}

/* Very small phones (iPhone SE / 320px) */
@media (max-width: 360px) {
  .ob-question-title { font-size: 1.1rem; }
  .ob-glow-btn { height: 85px; }
  .ob-axis-options .ob-glow-btn { width: 65px; height: 65px; }
  .ob-card .ob-toggle-grid[data-type] { gap: 0.3rem; }
  .ob-card .ob-flip-grid[data-type] { gap: 0.3rem; }
  .ob-flip-card { min-height: 80px; }
  .ob-orbit-tag { padding: 0.4rem 0.6rem; font-size: 0.7rem; }
  /* Energy rhythm: 3→2 columns on very small phones */
  .ob-card .ob-scenario-grid.col-5[data-type] { grid-template-columns: repeat(2, 1fr) !important; }
}
