﻿:root {
  --ink: #181716;
  --ink-soft: rgba(24, 23, 22, 0.68);
  --ink-faint: rgba(24, 23, 22, 0.12);
  --rice: #fffaf0;
  --paper: #f7efe2;
  --gold: #9c7b4f;
  --gold-strong: #7d5f35;
  --danger: #a33b2a;
  --shadow: 0 22px 70px rgba(24, 23, 22, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(circle at 12% 16%, rgba(198, 162, 108, 0.22), transparent 28rem),
    radial-gradient(circle at 90% 5%, rgba(139, 107, 63, 0.16), transparent 26rem),
    linear-gradient(135deg, #fbf4e8 0%, #f7efe2 46%, #efe0c7 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.36;
  background-image:
    linear-gradient(rgba(24, 23, 22, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 23, 22, 0.028) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, #000, transparent 78%);
}

button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible {
  outline: 3px solid rgba(156, 123, 79, 0.35);
  outline-offset: 3px;
}

.shell {
  width: min(1120px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 42px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(24, 23, 22, 0.10);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.76), rgba(247,239,226,0.92));
  box-shadow: var(--shadow);
  padding: clamp(26px, 5vw, 56px);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(156,123,79,.42), transparent);
}

.kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  letter-spacing: .34em;
  text-transform: uppercase;
}

h1, h2, h3 { margin: 0; font-weight: 520; letter-spacing: -0.04em; }
h1 { max-width: 820px; font-size: clamp(48px, 8vw, 92px); line-height: .98; }
h2 { font-size: clamp(30px, 5vw, 48px); line-height: 1.08; }
h3 { font-size: 24px; }
p { line-height: 1.75; }
.lead { max-width: 680px; color: var(--ink-soft); font-size: 16px; }

.badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0; }
.badge {
  border: 1px solid rgba(24, 23, 22, 0.12);
  border-radius: 999px;
  background: rgba(255,255,255,.66);
  padding: 9px 14px;
  color: rgba(24,23,22,.68);
  font-size: 14px;
}

.entry-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: 28px;
  align-items: start;
}
.entry-hero {
  padding-top: 6px;
}
.entry-heading h1 {
  max-width: 9ch;
}
.entry-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 18px;
}
.entry-metrics article {
  border: 1px solid rgba(233,223,207,.10);
  border-radius: 20px;
  background: rgba(255,255,255,.04);
  padding: 16px;
}
.entry-metrics b {
  display: block;
  font-size: 30px;
  line-height: 1;
  color: var(--gold-strong);
}
.entry-metrics span {
  display: block;
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 13px;
}
.entry-copy {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}
.entry-copy-item {
  border: 1px solid rgba(233,223,207,.08);
  border-radius: 18px;
  background: rgba(255,255,255,.03);
  padding: 14px 16px;
}
.entry-copy-item b {
  display: block;
  margin-bottom: 4px;
  color: var(--gold-strong);
}
.entry-copy-item span {
  color: var(--ink-soft);
  font-size: 14px;
}
.entry-aside {
  display: grid;
  gap: 16px;
}
.entry-notes {
  display: grid;
  gap: 12px;
}
.resume-card {
  margin-top: 28px;
  border: 1px solid rgba(24, 23, 22, 0.10);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(247,239,226,.96));
  padding: 22px;
  box-shadow: 0 18px 56px rgba(24, 23, 22, 0.10);
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 15px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(24,23,22,.08);
}

.small { margin: 0; color: rgba(24,23,22,.58); font-size: 13px; }
.form-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start; }
.input {
  width: 100%;
  height: 56px;
  border: 1px solid rgba(24,23,22,.15);
  border-radius: 18px;
  background: rgba(255,255,255,.96);
  padding: 0 16px;
  color: var(--ink);
  outline: none;
}
.input::placeholder { color: rgba(24,23,22,.30); }
.btn {
  min-height: 56px;
  border: 0;
  border-radius: 18px;
  padding: 0 24px;
  color: var(--rice);
  background: linear-gradient(180deg, #312c27, #151311);
  box-shadow: 0 14px 28px rgba(24,23,22,.16);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(24,23,22,.22); }
.btn.secondary { color: var(--ink); background: rgba(255,255,255,.72); border: 1px solid rgba(24,23,22,.12); box-shadow: none; }
.btn:disabled { cursor: wait; opacity: .62; transform: none; }
.btn.is-loading { box-shadow: none; }
.error { margin: 12px 0 0; color: var(--danger); font-size: 14px; }

.options { display: grid; gap: 12px; margin-top: 28px; }
.option {
  width: 100%;
  border: 1px solid rgba(24,23,22,.12);
  border-radius: 22px;
  background: rgba(255,255,255,.76);
  padding: 18px;
  text-align: left;
  color: var(--ink);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.option:hover { transform: translateY(-2px); border-color: rgba(156,123,79,.45); background: #fff; }
.option strong { display: block; font-size: 18px; margin-bottom: 6px; }
.option span { color: rgba(24,23,22,.60); font-size: 14px; }

.progress-top {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  border: 1px solid rgba(24,23,22,.10);
  border-radius: 20px;
  background: rgba(255,255,255,.46);
  padding: 14px 16px;
}
.progress-bar { height: 9px; border-radius: 99px; background: rgba(24,23,22,.10); overflow: hidden; margin: 16px 0 24px; }
.progress-bar span { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--gold), #c6a26c); }
.quiz-meta {
  display: inline-flex;
  margin-bottom: 16px;
  border: 1px solid rgba(24,23,22,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.60);
  padding: 9px 14px;
  color: rgba(24,23,22,.65);
  font-size: 14px;
}
.question { font-size: clamp(25px, 4vw, 38px); line-height: 1.18; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.quiz-hint { margin-top: 18px; }

.result-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 22px; align-items: stretch; margin-top: 24px; }
.seal {
  min-height: 280px;
  border-radius: 28px;
  border: 1px solid rgba(156,123,79,.25);
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, rgba(156,123,79,.30), transparent 38%),
    linear-gradient(145deg, rgba(255,255,255,.72), rgba(239,224,199,.88));
  color: var(--gold-strong);
  text-align: center;
}
.seal b { display: block; font-size: 64px; line-height: 1; letter-spacing: -.08em; }
.traits { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.trait { border-radius: 14px; background: rgba(156,123,79,.13); color: var(--gold-strong); padding: 8px 10px; font-size: 13px; }
.result-subtitle { margin: 12px 0 0; color: rgba(24,23,22,.62); }
.analysis-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 22px 0; }
.analysis-grid section, .algorithm-note, .copyline {
  border: 1px solid rgba(24,23,22,.09);
  border-radius: 20px;
  background: rgba(255,255,255,.58);
  padding: 16px;
}
.analysis-grid h3 { margin-bottom: 10px; font-size: 18px; }
.analysis-grid ul { margin: 0; padding-left: 20px; color: rgba(24,23,22,.68); line-height: 1.8; }
.algorithm-note { display: grid; gap: 6px; margin-top: 18px; color: rgba(24,23,22,.66); }
.algorithm-note b { color: var(--gold-strong); }
.copyline { color: rgba(24,23,22,.72); }
.dimensions { display: grid; gap: 10px; }
.dimension {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(24,23,22,.08);
  border-radius: 18px;
  background: rgba(255,255,255,.58);
  padding: 12px 72px 15px 14px;
}
.dimension b { display: block; color: var(--gold-strong); text-transform: uppercase; }
.dimension span { display: block; margin-top: 3px; color: rgba(24,23,22,.62); font-size: 13px; line-height: 1.45; }
.dimension strong { position: absolute; right: 14px; top: 14px; }
.dimension i {
  position: absolute;
  inset: auto auto 0 0;
  height: 4px;
  width: var(--w);
  background: linear-gradient(90deg, var(--gold), #c6a26c);
}
.seal em { display: block; margin-top: 8px; color: rgba(125,95,53,.70); font-style: normal; }


.resume-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
}

.rank-bars {
  display: grid;
  gap: 10px;
  margin: 22px 0 4px;
}
.rank-row {
  position: relative;
  overflow: hidden;
  min-height: 42px;
  border: 1px solid rgba(24,23,22,.08);
  border-radius: 15px;
  background: rgba(255,255,255,.58);
  padding: 10px 52px 10px 13px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.rank-row i {
  position: absolute;
  inset: auto auto 0 0;
  height: 4px;
  width: var(--w);
  background: linear-gradient(90deg, var(--gold), #c6a26c);
}
.rank-row span { position: relative; z-index: 1; color: rgba(24,23,22,.72); }
.rank-row b { position: absolute; right: 14px; top: 10px; z-index: 1; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 22px 0; }
.stat { border: 1px solid rgba(24,23,22,.10); border-radius: 18px; background: rgba(255,255,255,.70); padding: 14px; }
.stat span { color: rgba(24,23,22,.50); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.stat b { display: block; margin-top: 8px; font-size: 28px; }
.admin-section-title { margin: 26px 0 12px; font-size: 20px; letter-spacing: -0.02em; }
.admin-health-card, .admin-generate-card, .admin-danger-card { margin: 18px 0; border: 1px solid rgba(24,23,22,.10); border-radius: 22px; background: rgba(255,255,255,.66); padding: 16px; }
.admin-health-card { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.admin-health-card span { display: block; margin-bottom: 6px; color: rgba(24,23,22,.50); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.admin-health-card b, .admin-health-card code { color: var(--gold-strong); font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; overflow-wrap: anywhere; }
.admin-generate-card label, .admin-danger-card label { display: block; margin-bottom: 10px; color: var(--gold-strong); font-weight: 600; }
.admin-danger-card { border-color: rgba(163,59,42,.22); background: rgba(255,244,239,.66); }
.btn.danger { color: var(--danger); border-color: rgba(163,59,42,.30); }
.mini-btn {
  min-height: 34px;
  border: 1px solid rgba(24,23,22,.14);
  border-radius: 12px;
  background: rgba(255,255,255,.76);
  color: var(--ink);
  padding: 0 12px;
  box-shadow: none;
}
.mini-btn:disabled { cursor: wait; opacity: .62; }

.table-wrap { max-height: 52vh; overflow: auto; border-radius: 20px; border: 1px solid rgba(24,23,22,.10); }
table { width: 100%; border-collapse: collapse; background: rgba(255,255,255,.70); font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; }
th, td { padding: 12px 14px; border-bottom: 1px solid rgba(24,23,22,.08); text-align: left; }
th { position: sticky; top: 0; background: #f7efe2; color: rgba(24,23,22,.62); font-weight: 600; }

.toast-host {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 40px));
  pointer-events: none;
}
.toast {
  border: 1px solid rgba(24,23,22,.12);
  border-radius: 18px;
  background: rgba(255,250,240,.96);
  box-shadow: 0 18px 46px rgba(24,23,22,.16);
  padding: 13px 15px;
  color: var(--ink);
  font-size: 14px;
}
.toast.error { border-color: rgba(163,59,42,.28); color: var(--danger); }

@media (max-width: 720px) {
  .shell { padding: 20px 14px; }
  .form-row, .result-grid, .stats, .resume-card, .analysis-grid { grid-template-columns: 1fr; }
  .card-head, .progress-top { flex-direction: column; }
  h1 { font-size: 47px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

@media (max-width: 900px) {
  .entry-layout {
    grid-template-columns: 1fr;
  }
  .entry-metrics {
    grid-template-columns: 1fr;
  }
  .entry-heading h1 {
    max-width: 100%;
  }
}

:root {
  --ink: #111827;
  --ink-soft: rgba(17, 24, 39, 0.66);
  --ink-faint: rgba(17, 24, 39, 0.1);
  --rice: #f8fafc;
  --paper: #eef2f7;
  --gold: #5b6ef0;
  --gold-strong: #243b8f;
  --danger: #b42318;
  --shadow: 0 28px 90px rgba(15, 23, 42, 0.10);
}

body {
  min-height: 100dvh;
  background:
    radial-gradient(circle at 14% 12%, rgba(91, 110, 240, 0.14), transparent 26rem),
    radial-gradient(circle at 88% 18%, rgba(148, 163, 184, 0.20), transparent 20rem),
    linear-gradient(135deg, #f7f9fc 0%, #eef3f8 55%, #e6ebf2 100%);
}

body::before {
  opacity: 0.52;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.025) 1px, transparent 1px);
  background-size: 46px 46px;
}

.shell {
  min-height: 100dvh;
  padding: 40px 20px;
}

.panel {
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(241, 245, 249, 0.98));
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 26px 90px rgba(15, 23, 42, 0.08);
}

.kicker {
  color: rgba(91, 110, 240, 0.95);
}

h1 {
  max-width: 9.4ch;
  letter-spacing: -0.06em;
}

h2 {
  letter-spacing: -0.04em;
}

.badge {
  border-color: rgba(91, 110, 240, 0.18);
  background: rgba(255, 255, 255, 0.84);
  color: rgba(17, 24, 39, 0.70);
}

.entry-layout {
  gap: 0;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  overflow: hidden;
}

.entry-hero {
  padding: 28px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.98));
  color: #f8fafc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.entry-hero .kicker {
  color: rgba(167, 188, 255, 0.92);
}

.entry-hero .lead,
.entry-hero .entry-copy-item span,
.entry-hero .entry-metrics span {
  color: rgba(226, 232, 240, 0.84);
}

.entry-hero h1 {
  max-width: 7.4ch;
  color: #fff;
}

.entry-metrics article,
.entry-copy-item {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

.entry-metrics b,
.entry-copy-item b {
  color: rgba(167, 188, 255, 0.96);
}

.entry-aside {
  padding: 28px;
  background: rgba(255, 255, 255, 0.42);
}

.gate-card {
  padding: 24px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 20px 54px rgba(15, 23, 42, 0.06);
}

.resume-card {
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 245, 249, 0.96));
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
}

.options {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.option {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(15, 23, 42, 0.10);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.option:hover {
  border-color: rgba(91, 110, 240, 0.40);
  background: #fff;
}

.progress-top {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
  border-color: rgba(15, 23, 42, 0.08);
}

.quiz-meta {
  border-color: rgba(91, 110, 240, 0.18);
  background: rgba(255, 255, 255, 0.72);
  color: rgba(17, 24, 39, 0.70);
}

.progress-bar span,
.dimension i,
.rank-row i,
.btn,
.seal,
.trait {
  background-image: none;
}

.btn {
  border-radius: 16px;
  background: linear-gradient(180deg, #1f2937, #111827);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.82);
}

.result-grid {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
}

.result-card {
  display: block;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.05);
  padding: 28px;
}

.seal {
  border-radius: 26px;
  border-color: rgba(31, 41, 55, 0.20);
  background:
    radial-gradient(circle at 30% 18%, rgba(121, 146, 255, 0.35), transparent 35%),
    linear-gradient(145deg, rgba(17, 24, 39, 0.98), rgba(30, 41, 59, 0.98));
  color: #f8fafc;
  min-height: 0;
  padding: 24px;
  position: sticky;
  top: 24px;
  align-self: start;
}

.seal span,
.seal em {
  color: rgba(226, 232, 240, 0.72);
}

.result-subtitle {
  color: rgba(17, 24, 39, 0.56);
}

.traits {
  gap: 8px;
}

.trait {
  border-radius: 12px;
  background: rgba(91, 110, 240, 0.10);
  color: var(--gold-strong);
}

.analysis-grid section,
.algorithm-note,
.copyline,
.dimension,
.rank-row,
.stat,
.admin-health-card,
.admin-generate-card,
.admin-danger-card,
.table-wrap,
table {
  border-color: rgba(15, 23, 42, 0.08);
}

.analysis-grid section,
.algorithm-note,
.copyline {
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.92);
}

.analysis-grid section {
  border-left: 3px solid rgba(91, 110, 240, 0.52);
}

.algorithm-note b,
.dimension b,
.entry-metrics b,
.entry-copy-item b,
.admin-generate-card label,
.admin-danger-card label {
  color: var(--gold-strong);
}

.dimension,
.rank-row,
.stat,
.admin-health-card,
.admin-generate-card,
.admin-danger-card,
.table-wrap,
table {
  background: rgba(255, 255, 255, 0.86);
}

.table-wrap,
table {
  border-radius: 18px;
}

.mindstage-report,
.assessment-shell {
  max-width: 1120px;
  margin: 0 auto;
}

.mindstage-hero,
.assessment-hero {
  padding: 8px 0 18px;
}

.mindstage-family-card,
.mindstage-choice,
.mindstage-card,
.assessment-card {
  border-radius: 20px;
  border-color: rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.mindstage-pill {
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
}

.mindstage-result-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.mindstage-result-note {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.92);
  padding: 14px 16px;
}

.mindstage-result-note b {
  display: block;
  margin-bottom: 6px;
  color: var(--gold-strong);
}

.mindstage-result-note span {
  color: rgba(17, 24, 39, 0.68);
  line-height: 1.65;
}

@media (max-width: 900px) {
  .entry-layout {
    gap: 16px;
  }
  .entry-hero,
  .entry-aside {
    padding: 22px;
  }
  .result-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .shell {
    padding: 16px 12px;
  }
  .panel {
    border-radius: 22px;
    padding: 22px;
  }
  h1 {
    font-size: clamp(38px, 11vw, 52px);
  }
  .entry-hero h1 {
    max-width: 100%;
  }
  .entry-layout {
    grid-template-columns: 1fr;
  }
  .entry-hero,
  .entry-aside,
  .result-card,
  .gate-card {
    padding: 18px;
  }
}

/* 24 人物入口和结果揭示使用同一套黑、白、银灰视觉。 */
.entry-page {
  min-height: 100dvh;
  background: #05070a;
  color: #f8fafc;
}

.entry-page .assessment-hero {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  padding: 0;
  color: #fff;
  background: #05070a;
}

.entry-page .assessment-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: clamp(180px, 26vh, 300px);
  background: linear-gradient(180deg, transparent 0%, rgba(5, 10, 16, .46) 34%, #07101a 100%);
  pointer-events: none;
}

.assessment-hero-media,
.assessment-hero-media::after,
.assessment-hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.assessment-hero-media {
  z-index: -2;
  overflow: hidden;
  background:
    url("./history-hero-poster.jpg") center / cover no-repeat,
    radial-gradient(circle at 22% 24%, rgba(255, 255, 255, .25), transparent 1px),
    radial-gradient(circle at 76% 34%, rgba(255, 255, 255, .18), transparent 1px),
    radial-gradient(circle at 56% 72%, rgba(148, 163, 184, .28), transparent 1px),
    radial-gradient(circle at 50% 35%, #273342 0, #0b1118 42%, #030507 100%);
  background-size: 72px 72px, 126px 126px, 164px 164px, auto;
}

.assessment-hero-media video {
  object-fit: cover;
}

.assessment-hero-media::after {
  content: "";
  background: rgba(0, 0, 0, .52);
}

.assessment-hero-media.video-unavailable video { display: none; }

.assessment-nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1240px, calc(100% - 64px));
  margin: 0 auto;
  padding: 24px 0;
}

.assessment-wordmark,
.assessment-nav nav a {
  color: #fff;
  text-decoration: none;
}

.assessment-wordmark { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 38px; border: 1px solid rgba(217, 230, 244, .42); border-radius: 10px; background: linear-gradient(145deg, rgba(25, 37, 52, .62), rgba(5, 8, 13, .72)); padding: 8px 14px 8px 12px; color: rgba(255, 255, 255, .92); font-weight: 650; font-size: 16px; letter-spacing: .01em; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 -1px 0 rgba(255, 255, 255, .04), 0 8px 24px rgba(0, 0, 0, .26), 0 0 14px rgba(190, 216, 255, .06); transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease; }
.assessment-wordmark::before { content: ""; width: 10px; height: 10px; border: 1px solid rgba(217, 230, 244, .84); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 12%, #b9c9d9 15% 36%, #33465b 68%, #0b111b 100%); box-shadow: 0 0 10px rgba(190, 216, 255, .46); }
.assessment-wordmark::after { content: ""; position: absolute; left: 10px; width: 15px; height: 5px; border: 1px solid rgba(217, 230, 244, .48); border-radius: 50%; transform: rotate(-18deg); pointer-events: none; }
.assessment-wordmark:hover { border-color: rgba(255, 255, 255, .78); background: linear-gradient(145deg, rgba(40, 55, 74, .76), rgba(7, 11, 18, .84)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 0 22px rgba(190, 216, 255, .18); transform: translateY(-1px); }
.assessment-nav nav { display: flex; gap: 26px; }
.assessment-nav nav a { color: rgba(255, 255, 255, .76); font-size: 14px; }
.assessment-nav nav a:hover { color: #fff; }

.hero-nav-cta,
.hero-primary-cta {
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 999px;
  background: #fff;
  color: #080b0f;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.hero-nav-cta { padding: 10px 18px; font-size: 14px; }
.hero-primary-cta { padding: 14px 28px; font-size: 16px; background: linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(198, 210, 224, .94)); box-shadow: inset 0 1px 0 #fff, 0 10px 28px rgba(0, 0, 0, .28), 0 0 20px rgba(190, 216, 255, .10); transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.hero-primary-cta:hover { background: #fff; box-shadow: inset 0 1px 0 #fff, 0 12px 34px rgba(0, 0, 0, .34), 0 0 26px rgba(190, 216, 255, .24); transform: translateY(-2px); }

.hero-home-lanyard { position: relative; display: inline-flex; align-items: flex-start; justify-content: center; width: 62px; height: 82px; color: rgba(255, 255, 255, .92); text-decoration: none; touch-action: none; cursor: grab; transform: rotate(var(--lanyard-angle, 0rad)); transform-origin: 50% 0; will-change: transform; }
.hero-lanyard-cord { position: absolute; top: 0; left: 50%; width: 1px; height: 24px; background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(217, 230, 244, .72)); box-shadow: 0 0 9px rgba(190, 216, 255, .32); }
.hero-lanyard-cord::after { content: ""; position: absolute; left: -4px; bottom: -5px; width: 8px; height: 8px; border: 1px solid rgba(217, 230, 244, .58); border-radius: 50%; background: #070b11; box-shadow: 0 0 10px rgba(190, 216, 255, .22); }
.hero-home-tag { position: absolute; top: 24px; display: grid; place-items: center; width: 52px; height: 48px; overflow: hidden; border: 1px solid rgba(217, 230, 244, .48); border-radius: 10px 10px 16px 16px; background: linear-gradient(145deg, rgba(30, 42, 57, .82), rgba(5, 8, 13, .94)); backdrop-filter: blur(10px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 -1px 0 rgba(255, 255, 255, .04), 0 10px 28px rgba(0, 0, 0, .42), 0 0 18px rgba(190, 216, 255, .10); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.hero-home-tag::before { content: ""; position: absolute; top: -7px; left: 50%; width: 12px; height: 12px; border: 1px solid rgba(217, 230, 244, .58); border-radius: 50%; background: #070b11; box-shadow: 0 0 10px rgba(190, 216, 255, .18); transform: translateX(-50%); }
.hero-home-tag::after { content: ""; position: absolute; inset: 0 12% auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .52), transparent); }
.hero-home-tag svg { width: 27px; height: 27px; overflow: visible; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.45; filter: drop-shadow(0 0 7px rgba(217, 230, 244, .34)); }
.hero-home-tag .planet-crater { fill: rgba(217, 230, 244, .55); stroke: none; }
.hero-home-lanyard:hover .hero-home-tag { transform: translateY(-2px) rotate(-2deg); border-color: rgba(255, 255, 255, .82); background: linear-gradient(145deg, rgba(41, 56, 75, .92), rgba(7, 11, 18, .98)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), 0 12px 34px rgba(0, 0, 0, .46), 0 0 24px rgba(190, 216, 255, .28); }
.hero-home-lanyard.is-dragging { cursor: grabbing; }
.hero-home-lanyard.is-dragging .hero-home-tag { transform: translateY(1px); border-color: rgba(255, 255, 255, .92); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), 0 14px 36px rgba(0, 0, 0, .50), 0 0 28px rgba(190, 216, 255, .34); }
.hero-home-lanyard::after { content: attr(data-label); position: absolute; top: 78px; left: 50%; width: max-content; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; background: rgba(5, 8, 13, .82); padding: 5px 9px; color: rgba(255, 255, 255, .78); font-size: 11px; line-height: 1; opacity: 0; pointer-events: none; transform: translate(-50%, -4px); transition: opacity .18s ease, transform .18s ease; backdrop-filter: blur(8px); }
.hero-home-lanyard:hover::after,
.hero-home-lanyard:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .hero-home-lanyard { transform: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.assessment-hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: calc(100dvh - 77px);
  max-width: 760px;
  margin: 0 auto;
  padding: 88px 24px 128px;
  text-align: center;
}

.hero-eyebrow { margin: 0 0 22px; color: rgba(217, 230, 244, .72); font-size: 12px; letter-spacing: .2em; text-shadow: 0 0 14px rgba(190, 216, 255, .18); }
.hero-badge { position: relative; display: inline-flex; align-items: center; gap: 9px; margin-bottom: 24px; overflow: hidden; border: 1px solid rgba(217, 230, 244, .42); border-radius: 10px; background: linear-gradient(145deg, rgba(24, 37, 52, .62), rgba(5, 8, 13, .60)); padding: 8px 14px; color: rgba(255, 255, 255, .88); font-size: 13px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 8px 24px rgba(0, 0, 0, .18); }
.hero-badge::before { content: ""; position: absolute; inset: 0 16% auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); }
.hero-badge span { width: 6px; height: 6px; border: 1px solid rgba(255, 255, 255, .84); border-radius: 50%; background: #d9e6f4; box-shadow: 0 0 10px rgba(190, 216, 255, .56); }
.assessment-hero-copy h1 { max-width: 12ch; margin: 0; color: #fff; font-size: clamp(48px, 5vw, 78px); line-height: 1.08; font-weight: 560; letter-spacing: 0; background: linear-gradient(145deg, #fff 28%, rgba(255, 255, 255, .55) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.assessment-hero-copy h1 span { display: block; margin-bottom: 4px; font-size: .52em; line-height: 1.15; font-weight: 300; }
.assessment-hero-copy h1 strong { display: block; line-height: 1.04; font-weight: 720; }
.assessment-hero-copy > p:not(.hero-eyebrow) { max-width: 520px; margin: 24px 0 30px; color: rgba(255, 255, 255, .76); font-size: 16px; line-height: 1.8; text-wrap: balance; }
.hero-scroll-hint { position: absolute; z-index: 1; right: 32px; bottom: 28px; margin: 0; color: rgba(255, 255, 255, .56); font-size: 12px; writing-mode: vertical-rl; }

.entry-access-shell,
.entry-details { background: #05070a; color: #f8fafc; }
.entry-access-shell { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(circle at 50% 0%, rgba(58, 83, 112, .18), transparent 34%), linear-gradient(180deg, #07101a, #05070a 56%); }
.entry-access-shell::before { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .42; background-image: radial-gradient(circle at 12% 24%, rgba(255, 255, 255, .42) 0 1px, transparent 1.5px), radial-gradient(circle at 82% 18%, rgba(190, 216, 255, .38) 0 1px, transparent 1.5px), radial-gradient(circle at 64% 68%, rgba(255, 255, 255, .24) 0 1px, transparent 1.5px); background-size: 180px 160px, 240px 190px, 210px 220px; pointer-events: none; }
.entry-access-shell { padding: 96px 24px 72px; }
.entry-access-panel { width: min(780px, 100%); margin: 0 auto; }
.entry-access-panel h2 { max-width: none; color: #fff; }
.entry-access-panel .kicker,
.entry-details .kicker { color: rgba(255, 255, 255, .58); }
.entry-access-panel .lead,
.entry-details p:last-child { color: rgba(255, 255, 255, .68); }
.entry-access-panel .gate-card { position: relative; margin-top: 26px; overflow: hidden; border: 1px solid rgba(217, 230, 244, .28); border-radius: 12px; background: linear-gradient(145deg, rgba(28, 42, 58, .58), rgba(5, 8, 13, .72)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 18px 46px rgba(0, 0, 0, .26), 0 0 24px rgba(190, 216, 255, .05); }
.entry-access-panel .gate-card::before { content: ""; position: absolute; inset: 0 12% auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .52), transparent); pointer-events: none; }
.access-reminders { display: grid; gap: 10px; margin-top: 18px; }
.access-reminders p { margin: 0; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; background: rgba(255, 255, 255, .035); padding: 10px 14px; color: rgba(255, 255, 255, .62); font-size: 13px; line-height: 1.55; }
.entry-access-panel .input { border-color: rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .08); color: #fff; }
.entry-access-panel .input::placeholder { color: rgba(255, 255, 255, .38); }
.entry-access-panel .btn { border: 1px solid rgba(255, 255, 255, .88); background: linear-gradient(145deg, #fff, #c9d3df); color: #080b0f; box-shadow: inset 0 1px 0 #fff, 0 8px 22px rgba(0, 0, 0, .24); }
.entry-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px; padding: 58px max(24px, calc((100% - 1120px) / 2)) 62px; border-top: 1px solid rgba(255, 255, 255, .10); border-bottom: 1px solid rgba(255, 255, 255, .10); }
.entry-details article { min-width: 0; }
.entry-details article .kicker { margin-bottom: 14px; color: rgba(255, 255, 255, .54); }
.entry-details article h3 { max-width: 17em; color: #fff; font-size: 18px; line-height: 1.42; font-weight: 520; letter-spacing: 0; text-wrap: balance; }
.entry-details article > p:last-child { max-width: 30em; margin: 14px 0 0; color: rgba(255, 255, 255, .58); font-size: 13px; line-height: 1.75; }

.site-footer { border-top: 1px solid rgba(255, 255, 255, .10); background: #05070a; color: #f8fafc; }
.site-footer-inner { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(280px, 1.5fr) minmax(240px, 1fr); align-items: center; gap: 24px; width: min(1120px, calc(100% - 48px)); min-height: 92px; margin: 0 auto; }
.site-footer-brand { display: grid; gap: 3px; }
.site-footer-brand b { font-size: 15px; }
.site-footer-brand span,
.site-footer p,
.site-footer a,
.site-footer button { color: rgba(255, 255, 255, .58); font-size: 13px; }
.site-footer p { margin: 0; text-align: center; }
.site-footer nav { display: flex; justify-content: flex-end; align-items: center; gap: 18px; }
.site-footer a { text-decoration: none; }
.site-footer button { border: 0; background: transparent; padding: 0; }
.site-footer a:hover,
.site-footer button:hover { color: #fff; }
.site-footer a:focus-visible,
.site-footer button:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

.result-reveal { position: relative; min-height: 204px; margin: 22px 0 26px; overflow: hidden; border: 1px solid rgba(15, 23, 42, .12); border-radius: 24px; background: #05070a; color: #fff; }
.result-reveal-copy { position: relative; z-index: 1; display: grid; align-content: center; min-height: 204px; padding: 28px 32px; pointer-events: none; }
.result-reveal-copy .kicker { color: rgba(255, 255, 255, .62); }
.result-reveal-copy h3 { font-size: clamp(38px, 6vw, 62px); color: #fff; }
.result-reveal-copy p { max-width: 570px; margin: 12px 0 18px; color: rgba(255, 255, 255, .72); }
.result-reveal-copy .btn { justify-self: start; min-height: 44px; padding: 0 16px; color: #fff; border-color: rgba(255, 255, 255, .4); background: rgba(0, 0, 0, .35); pointer-events: auto; }
#revealCanvas { position: absolute; z-index: 2; inset: 0; touch-action: none; cursor: crosshair; transition: opacity 180ms ease-out; }
.result-reveal.is-revealed #revealCanvas { opacity: 0; pointer-events: none; }

.assessment-nav a:focus-visible,
.assessment-nav button:focus-visible,
.hero-primary-cta:focus-visible,
#revealCanvas:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

@media (max-width: 900px) {
  .entry-details { grid-template-columns: 1fr; gap: 0; }
  .entry-details article { padding: 24px 0; border-top: 1px solid rgba(255, 255, 255, .10); }
  .entry-details article:first-child { border-top: 0; }
  .site-footer-inner { grid-template-columns: 1fr; gap: 16px; width: min(100% - 32px, 1120px); padding: 28px 0; }
  .site-footer p { text-align: left; }
  .site-footer nav { justify-content: flex-start; flex-wrap: wrap; }
}

@media (max-width: 720px) {
  .assessment-nav { width: min(100% - 32px, 1240px); padding: 18px 0; }
  .assessment-nav nav { display: none; }
  .assessment-wordmark { min-height: 36px; padding: 7px 13px; font-size: 15px; }
  .hero-nav-cta { padding: 9px 14px; }
  .hero-home-lanyard { width: 52px; height: 70px; scale: .88; transform-origin: right top; }
  .assessment-hero-copy { min-height: calc(100dvh - 63px); padding: 72px 22px 96px; }
  .assessment-hero-copy h1 { font-size: clamp(42px, 12vw, 56px); }
  .assessment-hero-copy > p:not(.hero-eyebrow) { font-size: 15px; }
  .hero-scroll-hint { display: none; }
  .entry-access-shell { padding: 52px 16px 36px; }
  .entry-access-panel h2 { font-size: 30px; line-height: 1.2; }
  .entry-access-panel .lead { font-size: 15px; line-height: 1.7; }
  .entry-access-panel .gate-card { margin-top: 20px; }
  .entry-details { padding: 18px 20px 28px; }
  .entry-details article { padding: 22px 0; }
  .entry-details article .kicker { margin-bottom: 10px; font-size: 11px; }
  .entry-details article h3 { font-size: 20px; line-height: 1.38; }
  .entry-details article > p:last-child { max-width: none; margin-top: 10px; font-size: 14px; line-height: 1.7; }
  .result-reveal { min-height: 234px; border-radius: 20px; }
  .result-reveal-copy { min-height: 234px; padding: 24px; }
  .site-footer-inner { gap: 14px; padding: 24px 0; }
  .site-footer-brand b { font-size: 16px; }
  .site-footer-brand span,
  .site-footer p,
  .site-footer a,
  .site-footer button { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .assessment-hero-media video { display: none; }
  #revealCanvas { transition: none; }
}

/* Unified assessment flow */
body.theme-dark { color: #f8fafc; background: #05070a; }
body.theme-dark::before { opacity: .18; }
.theme-dark .shell { width: min(1180px, 100%); align-items: flex-start; }
.theme-dark .panel { border-color: rgba(255, 255, 255, .10); background: rgba(5, 7, 10, .94); box-shadow: 0 28px 90px rgba(0, 0, 0, .30); }
.theme-dark .panel::before { background: rgba(255, 255, 255, .10); }
.theme-dark .kicker { color: rgba(255, 255, 255, .55); }
.theme-dark h1,
.theme-dark h2,
.theme-dark h3 { color: #fff; }
.theme-dark .lead,
.theme-dark .small { color: rgba(255, 255, 255, .62); }
.theme-dark .badge,
.theme-dark .quiz-meta { border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .75); }
.flow-panel { min-height: calc(100dvh - 80px); background: linear-gradient(180deg, rgba(10, 21, 34, .90), rgba(5, 11, 18, .95) 72%, #07101a), url("./history-hero-poster.jpg") center top / cover no-repeat; }
.flow-panel .options { margin-top: 34px; }
.flow-panel .option { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 16px; min-height: 96px; overflow: hidden; border-color: rgba(217, 230, 244, .42); background: linear-gradient(145deg, rgba(42, 61, 82, .58), rgba(10, 19, 30, .64)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 -1px 0 rgba(255, 255, 255, .05), 0 0 0 3px rgba(190, 216, 255, .018), 0 10px 30px rgba(0, 0, 0, .18); color: #fff; }
.flow-panel .option::after { content: ""; position: absolute; inset: 0 14% auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .34), transparent); pointer-events: none; }
.flow-panel .option:hover { border-color: rgba(255, 255, 255, .68); background: linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .065)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), 0 0 0 3px rgba(255, 255, 255, .025), 0 12px 34px rgba(0, 0, 0, .24); }
.flow-panel .option > strong { display: grid; place-items: center; width: 44px; height: 44px; margin: 0; border: 1px solid rgba(255, 255, 255, .26); border-radius: 50%; font-size: 16px; }
.flow-panel .option > span { color: rgba(231, 238, 246, .78); font-size: 15px; line-height: 1.55; }
.flow-panel .option > span b { display: block; margin-bottom: 4px; color: #fff; font-size: 18px; font-weight: 600; }
.flow-panel .algorithm-note { border-color: rgba(217, 230, 244, .25); background: linear-gradient(145deg, rgba(34, 51, 69, .48), rgba(7, 14, 22, .56)); color: rgba(231, 238, 246, .72); }
.flow-panel .algorithm-note b { color: #fff; }
.preference-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.preference-panel { position: relative; overflow: hidden; isolation: isolate; }
.preference-panel::after { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg, rgba(5, 10, 16, .02), rgba(5, 12, 21, .36) 62%, rgba(5, 12, 21, .72)); pointer-events: none; }
.preference-content { position: relative; z-index: 2; padding-top: 68px; }
.quiz-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quiz-panel .progress-top { margin-bottom: 14px; border: 0; border-radius: 0; border-bottom: 1px solid rgba(255, 255, 255, .12); background: transparent; padding: 0 0 18px; }
.quiz-panel { position: relative; overflow: hidden; isolation: isolate; }
.quiz-content { position: relative; z-index: 2; }
.light-rays-layer { position: absolute; z-index: 0; inset: 0; overflow: hidden; pointer-events: none; }
.light-rays-canvas { display: block; width: 100%; height: 100%; opacity: .72; mix-blend-mode: screen; }
.light-rays-layer.light-rays-fallback { background: repeating-linear-gradient(112deg, transparent 0 8%, rgba(190, 216, 255, .055) 9%, transparent 12% 20%); mask-image: linear-gradient(#000, transparent 78%); -webkit-mask-image: linear-gradient(#000, transparent 78%); }
.quiz-panel::after { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg, rgba(6, 14, 23, .03), rgba(5, 12, 21, .38) 68%, rgba(5, 12, 21, .72)); pointer-events: none; }
.quiz-panel .progress-top > div { max-width: 720px; }
.quiz-panel .progress-top .small { margin-top: 8px; font-size: 15px; line-height: 1.65; }
.shiny-text { display: inline-block; color: #b5b5b5; background-image: linear-gradient(120deg, #8f949c 0%, #8f949c 36%, #ffffff 50%, #8f949c 64%, #8f949c 100%); background-size: 220% auto; background-position: 150% center; background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: shiny-text-sweep 2.8s linear infinite; }
.quiz-panel .progress-top .shiny-text { display: block; width: fit-content; }
.shiny-text-soft { background-image: linear-gradient(120deg, #8f949c 0%, #8f949c 40%, #e9edf2 50%, #8f949c 60%, #8f949c 100%); animation-duration: 3.4s; }
@keyframes shiny-text-sweep { 0% { background-position: 150% center; } 72%, 100% { background-position: -50% center; } }
.quiz-panel .progress-top .badge { position: relative; display: inline-flex; flex: 0 0 auto; align-self: flex-start; align-items: center; justify-content: center; gap: 8px; min-width: 112px; min-height: 34px; overflow: hidden; border-color: rgba(255, 255, 255, .72); border-radius: 999px; background: linear-gradient(180deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .025) 48%, rgba(0, 0, 0, .34)); padding: 7px 15px; color: rgba(255, 255, 255, .92); text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -1px 0 rgba(255, 255, 255, .08), 0 0 0 3px rgba(255, 255, 255, .025), 0 8px 24px rgba(0, 0, 0, .30); }
.quiz-panel .progress-top .badge::before { content: "✦"; color: rgba(255, 255, 255, .66); font-size: 11px; text-shadow: 8px -4px 0 rgba(255, 255, 255, .24); }
.quiz-panel .progress-top .badge::after { content: ""; position: absolute; inset: 1px 10px auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .62), transparent); }
.quiz-panel .progress-bar { height: 4px; margin: 0 0 38px; background: rgba(217, 230, 244, .18); }
.quiz-panel .progress-bar span { background: linear-gradient(90deg, #9fb6ce, #fff); box-shadow: 0 0 12px rgba(190, 216, 255, .42); }
.quiz-panel .question { max-width: none; color: #fff; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.28; text-wrap: pretty; }
.quiz-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.quiz-actions .btn.secondary,
.result-panel .btn.secondary { color: #fff; border-color: rgba(255, 255, 255, .20); background: rgba(255, 255, 255, .06); }
.quiz-hint { margin: 0; }

/* Result generation transition */
.result-generation-panel { position: relative; display: grid; align-content: center; overflow: hidden; isolation: isolate; background: linear-gradient(135deg, rgba(10, 22, 36, .72), rgba(5, 12, 21, .90)), url("./history-hero-poster.jpg") center / cover no-repeat; }
.result-generation-rays { opacity: .78; }
.result-convergence { position: absolute; z-index: 1; inset: 0; overflow: hidden; pointer-events: none; }
.archive-fragment { position: absolute; left: var(--x); top: var(--y); width: 26px; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .82), transparent); box-shadow: 0 0 12px rgba(190, 216, 255, .62); opacity: 0; transform: translate(-50%, -50%) rotate(calc((var(--x) - var(--y)) * 1deg)); animation: archive-converge 2.1s cubic-bezier(.22,.7,.2,1) var(--delay) infinite; }
.archive-fragment:nth-child(3n) { width: 4px; height: 4px; border-radius: 50%; background: #fff; }
@keyframes archive-converge { 0% { left: var(--x); top: var(--y); opacity: 0; } 14% { opacity: .82; } 76% { opacity: .48; } 100% { left: 50%; top: 50%; opacity: 0; transform: translate(-50%, -50%) scale(.2); } }
.result-generation { position: relative; z-index: 1; display: grid; min-height: 620px; align-content: center; padding: 30px 56px; }
.result-generation-watermark { position: absolute; z-index: -1; right: 20px; top: 50%; color: rgba(255, 255, 255, .035); font-size: clamp(320px, 38vw, 520px); font-weight: 700; line-height: .72; transform: translateY(-50%); user-select: none; }
.result-generation-copy { max-width: 820px; }
.result-generation-copy h1 { max-width: none; margin: 18px 0 22px; color: #fff; font-size: clamp(48px, 6vw, 78px); line-height: 1.08; }
.result-generation-copy .lead { min-height: 32px; color: rgba(255, 255, 255, .68); font-size: 18px; }
.result-generation-progress { width: min(760px, 100%); margin-top: 54px; }
.result-generation-progress-head { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 14px; color: rgba(255, 255, 255, .48); font-size: 13px; }
.result-generation-progress-head b { color: rgba(255, 255, 255, .86); font-variant-numeric: tabular-nums; }
.result-generation-bar { height: 4px; overflow: hidden; background: rgba(255, 255, 255, .12); }
.result-generation-bar span { display: block; width: var(--w, 0%); height: 100%; background: #fff; box-shadow: 0 0 14px rgba(255, 255, 255, .48); transition: width 80ms linear; }
.result-generation-skip { justify-self: start; min-height: 42px; margin-top: 30px; padding: 0 18px; border-radius: 999px; }
.result-generation-skip[hidden] { display: none; }

/* Assessment entrance and 16 mind-stage share the fixed dark product language. */
.assessment-select-panel,
.mindstage-panel { display: grid; align-content: center; color: #fff; }
.assessment-select-panel .assessment-hero,
.mindstage-panel .mindstage-hero { padding: 0; }
.assessment-select-panel .assessment-hero { max-width: 760px; }
.assessment-select-panel .assessment-hero h1,
.mindstage-panel .mindstage-hero h1 { max-width: none; color: #fff; font-size: clamp(46px, 6vw, 76px); line-height: 1.08; }
.assessment-select-panel .assessment-hero .lead,
.mindstage-panel .mindstage-hero .lead { max-width: 720px; color: rgba(255, 255, 255, .62); font-size: 17px; line-height: 1.75; }
.assessment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 52px; }
.assessment-card { position: relative; display: grid; min-height: 270px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .14); border-radius: 8px; background: rgba(255, 255, 255, .045); padding: 30px; color: #fff; text-align: left; box-shadow: none; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.assessment-card:hover { border-color: rgba(255, 255, 255, .42); background: rgba(255, 255, 255, .09); transform: translateY(-3px); }
.assessment-card .assessment-index { position: absolute; top: 26px; right: 28px; color: rgba(255, 255, 255, .32); font-size: 14px; }
.assessment-card .kicker { align-self: start; }
.assessment-card strong { align-self: end; font-size: clamp(32px, 4vw, 52px); font-weight: 600; }
.assessment-card > p:not(.kicker) { max-width: 420px; margin: 12px 0 28px; color: rgba(255, 255, 255, .60); font-size: 16px; line-height: 1.7; }
.assessment-enter { align-self: end; color: rgba(255, 255, 255, .88); font-weight: 600; }
.assessment-enter::after { content: " →"; }

.mindstage-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; }
.mindstage-back { flex: 0 0 auto; min-height: 46px; padding: 0 18px; }
.mindstage-panel .btn { color: #05070a; background: #f8fafc; box-shadow: none; }
.mindstage-panel .btn.secondary { color: #fff; border-color: rgba(255, 255, 255, .20); background: rgba(255, 255, 255, .06); }
.mindstage-family-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 44px; }
.mindstage-family-card { position: relative; display: grid; min-height: 190px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 8px; background: rgba(255, 255, 255, .045); padding: 26px; color: #fff; text-align: left; box-shadow: none; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.mindstage-family-card:hover { border-color: rgba(255, 255, 255, .42); background: rgba(255, 255, 255, .09); transform: translateY(-2px); }
.mindstage-family-index { position: absolute; top: 24px; right: 26px; color: rgba(255, 255, 255, .30); font-size: 13px; }
.mindstage-family-card strong { align-self: end; font-size: 28px; }
.mindstage-family-card > span:not(.mindstage-family-index) { margin-top: 8px; color: rgba(255, 255, 255, .82); font-size: 16px; }
.mindstage-family-card p { margin: 10px 0 0; color: rgba(255, 255, 255, .56); line-height: 1.65; }
.mindstage-pill { display: grid; flex: 0 0 auto; place-items: center; min-width: 76px; min-height: 52px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; background: rgba(255, 255, 255, .06); color: #fff; padding: 0 16px; font-variant-numeric: tabular-nums; }
.mindstage-question { max-width: 900px; font-size: clamp(34px, 4.5vw, 60px) !important; line-height: 1.2 !important; text-wrap: pretty; }
.mindstage-bar { height: 4px; overflow: hidden; margin: 34px 0 46px; background: rgba(255, 255, 255, .12); }
.mindstage-bar span { display: block; width: var(--w); height: 100%; background: #fff; }
.mindstage-choice-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.mindstage-choice { display: grid; align-content: center; justify-items: start; min-height: 118px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 8px; background: rgba(255, 255, 255, .045); padding: 18px; color: #fff; text-align: left; box-shadow: none; }
.mindstage-choice:hover { border-color: rgba(255, 255, 255, .42); background: rgba(255, 255, 255, .09); }
.mindstage-choice span { color: rgba(255, 255, 255, .36); font-size: 13px; }
.mindstage-choice strong { margin-top: 12px; font-size: 16px; }
.mindstage-dim-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 44px; }
.mindstage-dim-card { border: 1px solid rgba(255, 255, 255, .14); border-radius: 8px; background: rgba(255, 255, 255, .045); padding: 20px; }
.mindstage-dim-head { display: flex; justify-content: space-between; gap: 12px; color: #fff; }
.mindstage-dim-head span { color: rgba(255, 255, 255, .60); }
.mindstage-dim-bar { height: 3px; overflow: hidden; margin: 18px 0; background: rgba(255, 255, 255, .12); }
.mindstage-dim-bar i { display: block; width: var(--w); height: 100%; background: #fff; }
.mindstage-dim-card p { margin: 0; color: rgba(255, 255, 255, .54); font-size: 13px; line-height: 1.65; }
.mindstage-result-meta { margin-top: 30px; }
.mindstage-result-note { border-color: rgba(255, 255, 255, .14); border-radius: 8px; background: rgba(255, 255, 255, .045); }
.mindstage-result-note b { color: #fff; }
.mindstage-result-note span { color: rgba(255, 255, 255, .60); }

/* Result report */
.result-panel { background: linear-gradient(180deg, #081421, #050a11 68%, #07101a); }
.result-content[hidden] { display: none; }
.result-content:not([hidden]) { animation: result-content-in 360ms ease-out both; }
@keyframes result-content-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.result-panel > h2 { margin-bottom: 6px; }
.result-panel .result-grid { grid-template-columns: minmax(0, 1fr) 260px; gap: 42px; margin-top: 42px; }
.result-panel .result-card { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.result-panel .result-card > h1 { color: #fff; }
.result-panel .result-subtitle,
.result-panel .result-card > .lead { color: rgba(255, 255, 255, .64); }
.result-panel .trait { border: 1px solid rgba(255, 255, 255, .16); background: transparent; color: rgba(255, 255, 255, .82); }
.result-panel .analysis-grid { border-top: 1px solid rgba(255, 255, 255, .12); border-bottom: 1px solid rgba(255, 255, 255, .12); }
.result-panel .analysis-grid section { padding: 22px 0; border: 0; border-top: 1px solid rgba(217, 230, 244, .14); border-radius: 0; background: transparent; }
.result-panel .analysis-grid section:nth-child(-n+2) { border-top: 0; }
.result-panel .analysis-grid h3 { color: #fff; }
.result-panel .analysis-grid ul { color: rgba(231, 238, 246, .72); }
.result-panel .algorithm-note,
.result-panel .copyline { border-color: rgba(255, 255, 255, .12); border-radius: 16px; background: rgba(255, 255, 255, .04); color: rgba(255, 255, 255, .68); }
.result-panel .copyline { white-space: pre-line; line-height: 1.85; }
.result-panel .algorithm-note b,
.result-panel .dimension b { color: #fff; }
.result-panel .dimension,
.result-panel .rank-row { border-color: rgba(255, 255, 255, .11); background: rgba(255, 255, 255, .035); }
.result-panel .dimension span,
.result-panel .rank-row span { color: rgba(255, 255, 255, .62); }
.result-panel .dimension i,
.result-panel .rank-row i { background: #fff; }
.result-panel .seal { position: sticky; top: 24px; border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .055); color: #fff; box-shadow: none; }
.result-reveal { border-color: rgba(255, 255, 255, .14); background: #080c12; }
.result-reveal-copy { z-index: 1; background: linear-gradient(rgba(5, 7, 10, .32), rgba(5, 7, 10, .72)), url("./history-hero-poster.jpg") center / cover no-repeat; }
#revealCanvas { z-index: 2; }
.reveal-skip { position: absolute; z-index: 3; right: 18px; bottom: 18px; min-height: 42px; border: 1px solid rgba(255, 255, 255, .32); border-radius: 999px; background: rgba(5, 7, 10, .72); color: #fff; padding: 0 16px; }
.reveal-skip:disabled { opacity: 0; pointer-events: none; }

/* Result report uses the same silver glow border language as answer choices. */
.result-panel .result-reveal,
.result-panel .seal,
.result-panel .analysis-grid section,
.result-panel .algorithm-note,
.result-panel .copyline,
.result-panel .dimension,
.result-panel .rank-row,
.result-panel .trait,
.result-panel .actions .btn { border-color: rgba(255, 255, 255, .34); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 -1px 0 rgba(255, 255, 255, .035), 0 0 0 3px rgba(255, 255, 255, .012), 0 10px 30px rgba(0, 0, 0, .16); transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease; }
.result-panel .result-reveal,
.result-panel .seal,
.result-panel .analysis-grid section,
.result-panel .algorithm-note,
.result-panel .copyline,
.result-panel .dimension,
.result-panel .rank-row { position: relative; overflow: hidden; background: linear-gradient(180deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .028)); }
.result-panel .analysis-grid { display: grid; gap: 12px; border: 0; }
.result-panel .analysis-grid section,
.result-panel .analysis-grid section:nth-child(-n+2),
.result-panel .analysis-grid section:nth-child(2) { border: 1px solid rgba(255, 255, 255, .34); border-radius: 8px; padding: 20px; }
.result-panel .algorithm-note,
.result-panel .copyline,
.result-panel .dimension,
.result-panel .rank-row { border-radius: 8px; }
.result-panel .seal { border-radius: 8px; }
.result-panel .trait { background: rgba(255, 255, 255, .045); }
.result-panel .actions .btn { border: 1px solid rgba(255, 255, 255, .34); }
.result-panel .result-reveal::after,
.result-panel .seal::after,
.result-panel .analysis-grid section::after,
.result-panel .algorithm-note::after,
.result-panel .copyline::after,
.result-panel .dimension::after,
.result-panel .rank-row::after { content: ""; position: absolute; inset: 0 14% auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .34), transparent); pointer-events: none; }
@media (hover: hover) {
  .result-panel .result-reveal:hover,
  .result-panel .seal:hover,
  .result-panel .analysis-grid section:hover,
  .result-panel .algorithm-note:hover,
  .result-panel .copyline:hover,
  .result-panel .dimension:hover,
  .result-panel .rank-row:hover,
  .result-panel .trait:hover,
  .result-panel .actions .btn:hover { border-color: rgba(255, 255, 255, .70); background-color: rgba(255, 255, 255, .085); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), 0 0 0 3px rgba(255, 255, 255, .025), 0 0 24px rgba(190, 216, 255, .12), 0 14px 34px rgba(0, 0, 0, .24); transform: translateY(-2px); }
}

/* Admin workbench */
.admin-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.admin-heading .actions { justify-content: flex-end; }
.admin-workbench { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.admin-security-card,
.generated-codes-card { margin: 18px 0; border: 1px solid rgba(15, 23, 42, .08); border-radius: 18px; background: rgba(255, 255, 255, .86); padding: 16px; }
.admin-security-card label { display: block; margin-bottom: 7px; color: var(--gold-strong); font-weight: 600; }
.generated-code-list { display: grid; gap: 8px; }
.generated-code-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.generated-code-row code { overflow: hidden; text-overflow: ellipsis; }
.admin-danger-card { margin-top: 34px; }
.table-wrap { margin-bottom: 24px; }
td code { white-space: nowrap; }

@keyframes poster-drift {
  from { transform: scale(1.04) translate3d(-1.2%, -.6%, 0); }
  to { transform: scale(1.10) translate3d(1.2%, .8%, 0); }
}
.assessment-hero-media.video-fallback-motion { animation: poster-drift 14s ease-in-out infinite alternate; }

@media (max-width: 900px) {
  .assessment-grid,
  .mindstage-family-grid { grid-template-columns: 1fr; }
  .mindstage-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mindstage-choice:last-child { grid-column: 1 / -1; }
  .mindstage-dim-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .preference-options { grid-template-columns: 1fr; }
  .result-panel .result-grid { grid-template-columns: 1fr; }
  .result-panel .seal { position: static; }
  .admin-heading { align-items: flex-start; flex-direction: column; }
  .admin-heading .actions { justify-content: flex-start; }
  .admin-workbench { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .theme-dark .shell { padding: 0; }
  .theme-dark .panel { min-height: 100dvh; border: 0; border-radius: 0; padding: 24px 18px 34px; }
  .flow-panel .options { margin-top: 24px; }
  .assessment-select-panel,
  .mindstage-panel { align-content: start; }
  .preference-content { padding-top: 34px; }
  .result-generation { min-height: calc(100dvh - 58px); padding: 42px 0; }
  .result-generation-watermark { right: -30px; top: 24%; font-size: 250px; }
  .result-generation-copy h1 { margin-top: 14px; font-size: 43px; line-height: 1.12; }
  .result-generation-copy .lead { font-size: 15px; }
  .result-generation-progress { margin-top: 42px; }
  .assessment-select-panel .assessment-hero h1,
  .mindstage-panel .mindstage-hero h1 { font-size: 42px; }
  .assessment-grid { margin-top: 32px; }
  .assessment-card { min-height: 220px; padding: 22px; }
  .mindstage-hero-top { display: grid; gap: 20px; }
  .mindstage-back { justify-self: start; }
  .mindstage-family-grid { margin-top: 30px; }
  .mindstage-family-card { min-height: 170px; padding: 22px; }
  .mindstage-question { font-size: 32px !important; }
  .mindstage-bar { margin: 26px 0 30px; }
  .mindstage-choice-grid { grid-template-columns: 1fr; }
  .mindstage-choice:last-child { grid-column: auto; }
  .mindstage-choice { min-height: 72px; grid-template-columns: 28px 1fr; align-items: center; align-content: center; }
  .mindstage-choice strong { margin-top: 0; }
  .mindstage-dim-grid { grid-template-columns: 1fr; margin-top: 30px; }
  .mindstage-result-meta { grid-template-columns: 1fr; }
  .quiz-options { grid-template-columns: 1fr; gap: 10px; }
  .flow-panel .option { min-height: 76px; padding: 14px; }
  .quiz-panel .progress-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 14px; }
  .quiz-panel .progress-top .badge { min-width: 96px; min-height: 32px; padding: 6px 12px; font-size: 13px; }
  .quiz-panel .progress-top .small { font-size: 13px; }
  .quiz-panel .progress-bar { margin-bottom: 28px; }
  .quiz-panel .question { font-size: 26px; line-height: 1.38; text-wrap: pretty; }
  .quiz-actions { align-items: flex-start; flex-direction: column-reverse; }
  .result-panel .analysis-grid { grid-template-columns: 1fr; }
  .result-panel .analysis-grid section:nth-child(2) { border-top: 1px solid rgba(255, 255, 255, .10); }
  .result-panel .result-grid { gap: 24px; margin-top: 28px; }
  .result-reveal-copy { padding: 22px; }
  .result-reveal-copy h3 { font-size: 40px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-heading .actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .admin-heading .actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .assessment-hero-media.video-fallback-motion { animation: none; }
  .result-content:not([hidden]) { animation: none; }
  .shiny-text { animation: none; background-position: 50% center; }
  .result-generation-bar span { transition: none; }
  .light-rays-canvas { display: none; }
  .light-rays-layer { background: repeating-linear-gradient(112deg, transparent 0 10%, rgba(190, 216, 255, .045) 11%, transparent 14% 22%); }
  .archive-fragment { animation: none; display: none; }
}

