/* ─────────────────────────────────────────────────────────────────────────
   Mask / Core / Cost — v2.0 stylesheet
   Aesthetic: dark void + neon glass, triadic accent (cyan · violet · magenta)
   ───────────────────────────────────────────────────────────────────────── */

:root {
  /* Base — deep void palette */
  --bg-0: #05050b;
  --bg-1: #0a0a16;
  --bg-2: #11112a;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-strong: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* Neon triad */
  --cyan: #00e5ff;
  --violet: #a26bff;
  --magenta: #ff3ea5;
  --cyan-dim: rgba(0, 229, 255, 0.55);
  --violet-dim: rgba(162, 107, 255, 0.55);
  --magenta-dim: rgba(255, 62, 165, 0.55);

  /* Typography color */
  --text: #e9ebf5;
  --text-soft: #9aa0b8;
  --text-faint: #60657d;

  /* Glow mixes */
  --glow-cyan: 0 0 24px rgba(0, 229, 255, 0.35), 0 0 60px rgba(0, 229, 255, 0.18);
  --glow-violet: 0 0 24px rgba(162, 107, 255, 0.35), 0 0 60px rgba(162, 107, 255, 0.18);
  --glow-magenta: 0 0 24px rgba(255, 62, 165, 0.35), 0 0 60px rgba(255, 62, 165, 0.18);
  --glow-soft: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 20px 60px rgba(0, 0, 0, 0.5);

  /* Geometry */
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --max-width: 980px;

  /* Typography */
  --font-display: "Syne", ui-serif, Georgia, serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 60% at 20% -10%, rgba(162, 107, 255, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 50% at 110% 10%, rgba(0, 229, 255, 0.12), transparent 60%),
    radial-gradient(ellipse 70% 70% at 50% 110%, rgba(255, 62, 165, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 60%, var(--bg-2) 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  overflow-x: hidden;
  position: relative;
}

/* Particle canvas sits as fixed background */
#particle-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* Subtle grain overlay for texture */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

main,
section,
article,
header,
footer {
  display: block;
  position: relative;
  z-index: 2;
}

/* ──────────────────── Layout shell ──────────────────── */

.site-shell {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
  padding: 3rem 0 3rem;
}

.site-header {
  padding: 1.5rem 0 2rem;
  text-align: left;
  position: relative;
}

.brand-mark {
  display: flex;
  gap: 6px;
  margin-bottom: 1.1rem;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: block;
}

.brand-dot--cyan {
  background: var(--cyan);
  box-shadow: var(--glow-cyan);
}

.brand-dot--violet {
  background: var(--violet);
  box-shadow: var(--glow-violet);
}

.brand-dot--magenta {
  background: var(--magenta);
  box-shadow: var(--glow-magenta);
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Hero title with staggered neon reveal */
.hero-title {
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  margin: 0.5rem 0 1rem;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.1em;
}

.hero-word {
  display: inline-block;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: heroFadeIn 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-word--mask {
  background-image: linear-gradient(180deg, #fff 0%, var(--cyan) 100%);
  text-shadow: 0 0 30px rgba(0, 229, 255, 0.35);
  animation-delay: 0ms;
}

.hero-word--core {
  background-image: linear-gradient(180deg, #fff 0%, var(--violet) 100%);
  text-shadow: 0 0 30px rgba(162, 107, 255, 0.35);
  animation-delay: 140ms;
}

.hero-word--cost {
  background-image: linear-gradient(180deg, #fff 0%, var(--magenta) 100%);
  text-shadow: 0 0 30px rgba(255, 62, 165, 0.35);
  animation-delay: 280ms;
}

.hero-slash {
  display: inline-block;
  color: var(--text-faint);
  font-weight: 500;
  font-size: 0.7em;
  transform: translateY(-0.08em);
  opacity: 0.5;
  animation: heroFadeIn 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-slash:nth-of-type(1) {
  animation-delay: 70ms;
}

.hero-slash:nth-of-type(2) {
  animation-delay: 210ms;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.subtitle {
  max-width: 48rem;
  margin: 0.5rem 0 0;
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  color: var(--text-soft);
  line-height: 1.6;
  font-weight: 300;
  animation: heroFadeIn 800ms cubic-bezier(0.22, 1, 0.36, 1) 420ms both;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--text);
}

h3 {
  font-size: 1.05rem;
  color: var(--text);
  font-weight: 600;
}

/* ──────────────────── Glass panels ──────────────────── */

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: var(--glow-soft);
  position: relative;
  overflow: hidden;
  animation: panelIn 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Gradient border trick */
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(0, 229, 255, 0.3) 0%,
    rgba(162, 107, 255, 0.15) 40%,
    rgba(255, 62, 165, 0.25) 100%
  );
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  pointer-events: none;
  opacity: 0.6;
}

.panel + .panel {
  margin-top: 1.5rem;
}

.panel-inner {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
  z-index: 1;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.995);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ──────────────────── Typography ──────────────────── */

.intro-panel p,
.results-panel p,
.info-card li,
.result-summary p,
.result-notes li {
  color: var(--text-soft);
}

.intro-panel p + p,
.disclaimer-block p {
  margin-top: 0.85rem;
}

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

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 150ms ease;
}

a:hover {
  color: #fff;
  text-shadow: var(--glow-cyan);
}

/* ──────────────────── Info cards ──────────────────── */

.info-grid,
.results-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.info-card {
  padding: 1.25rem 1.3rem 1.4rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  position: relative;
  transition: border-color 200ms ease, transform 200ms ease;
}

.info-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.info-card-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.info-card-index {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-faint);
  letter-spacing: 0.1em;
}

.info-card--positive .info-card-index {
  color: var(--cyan);
}

.info-card--negative .info-card-index {
  color: var(--magenta);
}

.info-card ul,
.result-notes {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  list-style: none;
  position: relative;
}

.info-card li,
.result-notes li {
  position: relative;
  padding-left: 0.35rem;
}

.info-card li::before,
.result-notes li::before {
  content: "";
  position: absolute;
  left: -0.9rem;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--text-faint);
}

.info-card--positive li::before {
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan-dim);
}

.info-card--negative li::before {
  background: var(--magenta);
  box-shadow: 0 0 6px var(--magenta-dim);
}

.info-card li + li,
.result-notes li + li {
  margin-top: 0.5rem;
}

/* ──────────────────── Consent & disclaimer ──────────────────── */

.consent-box,
.disclaimer-block {
  margin-top: 1.5rem;
  padding: 1.2rem 1.3rem 1.3rem;
  background: rgba(0, 229, 255, 0.04);
  border: 1px solid rgba(0, 229, 255, 0.15);
  border-left: 2px solid var(--cyan);
  border-radius: var(--radius-md);
}

/* Honesty lead — deliberately less decorative than the consent box.
   Hard to visually skip, no celebratory glow, serious colorway. */
.honesty-lead {
  margin: 1.5rem 0 1.75rem;
  padding: 1.25rem 1.4rem 1.35rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--text-soft);
  border-radius: var(--radius-md);
}

.honesty-lead p {
  margin: 0 0 0.75rem;
  color: var(--text);
  font-size: 0.95rem;
}

.honesty-lead p:last-child {
  margin-bottom: 0;
}

.honesty-lead em {
  font-style: italic;
  color: var(--text-soft);
}

.honesty-lead--compact {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem 1rem;
}

.honesty-lead--compact p {
  font-size: 0.88rem;
}

.bias-warning {
  margin: 1rem 0 1.25rem;
  padding: 0.9rem 1.1rem;
  background: rgba(255, 200, 80, 0.06);
  border: 1px solid rgba(255, 200, 80, 0.25);
  border-left: 3px solid #ffc850;
  border-radius: var(--radius-sm);
}

.bias-warning p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
}

.disclaimer-block {
  background: rgba(162, 107, 255, 0.04);
  border-color: rgba(162, 107, 255, 0.15);
  border-left-color: var(--violet);
}

.crisis-block {
  margin-top: 1.5rem;
  padding: 1.4rem 1.4rem 1.5rem;
  background: rgba(255, 62, 165, 0.06);
  border: 1px solid rgba(255, 62, 165, 0.22);
  border-left: 3px solid var(--magenta);
  border-radius: var(--radius-md);
  box-shadow: 0 0 40px rgba(255, 62, 165, 0.08);
}

.crisis-block h3 {
  color: var(--magenta);
  margin-bottom: 0.6rem;
  letter-spacing: 0;
}

.crisis-block ul {
  margin: 0.9rem 0;
  padding-left: 1.3rem;
  list-style: none;
}

.crisis-block li {
  position: relative;
  margin-bottom: 0.4rem;
}

.crisis-block li::before {
  content: "→";
  position: absolute;
  left: -1.2rem;
  color: var(--magenta);
  font-family: var(--font-mono);
}

/* ──────────────────── Resume banner ──────────────────── */

.resume-banner {
  margin-top: 1.5rem;
  padding: 1rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: var(--radius-md);
  flex-wrap: wrap;
}

.resume-title {
  margin: 0;
  font-weight: 600;
  color: var(--text);
}

.resume-meta {
  margin: 0.15rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-faint);
}

.resume-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.intro-actions {
  margin-top: 1.75rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ──────────────────── Buttons ──────────────────── */

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.9rem 1.4rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition:
    transform 160ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease,
    color 200ms ease;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn:hover {
  transform: translateY(-1.5px);
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg-0), 0 0 0 4px var(--cyan), var(--glow-cyan);
}

.btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--violet) 100%);
  color: var(--bg-0);
  font-weight: 600;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 8px 24px rgba(0, 229, 255, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.15),
    0 12px 40px rgba(0, 229, 255, 0.4),
    0 0 40px rgba(162, 107, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Subtle shimmer sweep on primary hover */
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 60%
  );
  transform: translateX(-100%);
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
  z-index: -1;
  pointer-events: none;
}

.btn-primary:hover::after {
  transform: translateX(100%);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-strong);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.btn-arrow {
  font-family: var(--font-mono);
  transition: transform 200ms ease;
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

.btn:hover .btn-arrow:first-child {
  transform: translateX(-3px);
}

/* ──────────────────── Progress ──────────────────── */

.progress-wrap {
  margin-bottom: 1.75rem;
}

.progress-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.8rem;
}

.question-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-soft);
  letter-spacing: 0.08em;
}

.progress-text {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-faint);
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.progress-track {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--cyan) 0%,
    var(--violet) 50%,
    var(--magenta) 100%
  );
  background-size: 200% 100%;
  box-shadow: 0 0 10px var(--cyan-dim), 0 0 20px var(--violet-dim);
  transition: width 400ms cubic-bezier(0.22, 1, 0.36, 1);
  animation: progressShine 4s ease-in-out infinite;
}

@keyframes progressShine {
  0%, 100% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 0%;
  }
}

.module-markers {
  display: flex;
  gap: 2px;
  margin-top: 0.5rem;
  height: 3px;
}

.module-marker {
  flex: 1 1 auto;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  transition: background 200ms ease;
}

.module-marker[data-active="true"] {
  background: rgba(0, 229, 255, 0.2);
}

.module-marker-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  width: 0%;
  transition: width 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* ──────────────────── Question card ──────────────────── */

.question-card {
  padding: clamp(1.25rem, 2.5vw, 2rem);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  animation: questionIn 380ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes questionIn {
  from {
    opacity: 0;
    transform: translateY(8px);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.question-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.question-type-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.3rem 0.65rem;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 999px;
  color: var(--cyan);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.question-type-badge[data-type="cost"] {
  background: rgba(255, 62, 165, 0.08);
  border-color: rgba(255, 62, 165, 0.2);
  color: var(--magenta);
}

.question-type-badge[data-type="internal"] {
  background: rgba(162, 107, 255, 0.08);
  border-color: rgba(162, 107, 255, 0.2);
  color: var(--violet);
}

.question-type-badge[data-type="developmental"],
.question-type-badge[data-type="ruleout"] {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
  color: var(--text-soft);
}

.why-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  color: var(--text-soft);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 150ms ease;
}

.why-btn:hover {
  color: var(--cyan);
  border-color: var(--cyan-dim);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.2);
}

.why-panel {
  margin-top: 0.75rem;
  padding: 0.9rem 1rem;
  background: rgba(0, 229, 255, 0.04);
  border: 1px solid rgba(0, 229, 255, 0.15);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-soft);
  font-family: var(--font-mono);
  line-height: 1.5;
  animation: whyIn 220ms ease-out both;
}

@keyframes whyIn {
  from {
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
  }
  to {
    opacity: 1;
    max-height: 12rem;
  }
}

.question-text {
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.25;
  max-width: 44rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.answer-options {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.answer-btn {
  appearance: none;
  width: 100%;
  text-align: left;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  transition:
    border-color 200ms ease,
    background-color 200ms ease,
    transform 200ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 200ms ease;
  position: relative;
  overflow: hidden;
}

.answer-btn:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.045);
  transform: translateY(-1px);
}

.answer-btn:focus-visible {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px var(--cyan), 0 0 20px rgba(0, 229, 255, 0.2);
}

.answer-btn-index {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  transition: all 200ms ease;
}

.answer-btn-label {
  flex: 1 1 auto;
}

.answer-btn.selected {
  border-color: var(--cyan);
  background: linear-gradient(
    90deg,
    rgba(0, 229, 255, 0.12) 0%,
    rgba(162, 107, 255, 0.08) 100%
  );
  box-shadow: 0 0 0 1px var(--cyan-dim), 0 0 24px rgba(0, 229, 255, 0.2);
}

.answer-btn.selected .answer-btn-index {
  background: var(--cyan);
  color: var(--bg-0);
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
}

/* Pulse ring on selection */
.answer-btn.selected::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid var(--cyan);
  animation: pulseRing 1.4s ease-out 1;
  pointer-events: none;
}

@keyframes pulseRing {
  0% {
    opacity: 0.8;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.04);
  }
}

.answer-btn.selected[data-value="null"] {
  border-color: var(--violet);
  background: rgba(162, 107, 255, 0.08);
  box-shadow: 0 0 0 1px var(--violet-dim), 0 0 24px rgba(162, 107, 255, 0.2);
}

.answer-btn.selected[data-value="null"] .answer-btn-index {
  background: var(--violet);
  color: var(--bg-0);
  border-color: var(--violet);
  box-shadow: var(--glow-violet);
}

.keyboard-hint {
  margin: 1.5rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-faint);
  letter-spacing: 0.08em;
}

kbd {
  display: inline-block;
  padding: 0.15rem 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-soft);
}

.nav-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

/* ──────────────────── Review screen ──────────────────── */

.review-instructions {
  margin: 0.5rem 0 1.5rem;
  color: var(--text-soft);
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 0.3rem;
}

.review-list::-webkit-scrollbar {
  width: 6px;
}

.review-list::-webkit-scrollbar-track {
  background: transparent;
}

.review-list::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 999px;
}

.review-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 150ms ease;
  text-align: left;
  width: 100%;
  font-family: var(--font-body);
  color: var(--text);
}

.review-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
}

.review-item-index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-faint);
}

.review-item-text {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.4;
}

.review-item-answer {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--cyan);
  white-space: nowrap;
}

.review-item-answer[data-unanswered="true"] {
  color: var(--magenta);
  border-color: var(--magenta-dim);
}

.review-item-answer[data-unsure="true"] {
  color: var(--violet);
  border-color: var(--violet-dim);
}

/* ──────────────────── Synthesizing loader ──────────────────── */

.synthesizing-inner {
  min-height: 40vh;
  display: grid;
  place-items: center;
  gap: 2rem;
}

.synth-orbit {
  position: relative;
  width: 160px;
  height: 160px;
}

.synth-core {
  position: absolute;
  inset: 50% 50% 0 0;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: var(--glow-cyan);
  animation: corePulse 1.2s ease-in-out infinite;
}

@keyframes corePulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: var(--glow-cyan);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: var(--glow-violet);
  }
}

.synth-ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
}

.synth-ring--1 {
  border-top-color: var(--cyan);
  animation: ringSpin 2.2s linear infinite;
}

.synth-ring--2 {
  border-right-color: var(--violet);
  inset: 15px;
  animation: ringSpin 3s linear infinite reverse;
}

.synth-ring--3 {
  border-bottom-color: var(--magenta);
  inset: 32px;
  animation: ringSpin 4s linear infinite;
}

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

.synth-status {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-soft);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
}

/* ──────────────────── Results ──────────────────── */

.section-title {
  margin-top: 2rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
}

.section-sub {
  margin: 0.25rem 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-faint);
  letter-spacing: 0.05em;
}

.result-hero {
  margin-top: 1rem;
  padding: 1.5rem 1.5rem 1.6rem;
  background:
    radial-gradient(ellipse 80% 70% at 50% 0%, rgba(0, 229, 255, 0.08), transparent 70%),
    radial-gradient(ellipse 60% 60% at 100% 100%, rgba(255, 62, 165, 0.08), transparent 70%),
    rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}

.result-profile {
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
}

.result-summary {
  margin-top: 1rem;
}

.result-summary p {
  margin: 0.4rem 0;
  font-size: 0.95rem;
}

.result-summary strong {
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Radar */
.radar-wrap {
  margin-top: 1rem;
}

.radar-mount {
  margin: 0 auto;
  max-width: 560px;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  position: relative;
}

.radar-mount svg {
  width: 100%;
  height: 100%;
  display: block;
}

.radar-tip {
  position: absolute;
  pointer-events: none;
  padding: 0.6rem 0.85rem;
  background: rgba(5, 5, 11, 0.92);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(12px);
  font-size: 0.85rem;
  color: var(--text);
  max-width: 240px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 120ms ease;
  z-index: 5;
}

.radar-tip[data-visible="true"] {
  opacity: 1;
}

.radar-tip-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.radar-tip-score {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.3rem;
  font-variant-numeric: tabular-nums;
}

.radar-tip-desc {
  font-size: 0.8rem;
  color: var(--text-soft);
  line-height: 1.45;
}

/* Result cards */
.result-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.result-card {
  padding: 1.1rem 1.1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  position: relative;
  overflow: hidden;
  transition: border-color 200ms ease, transform 200ms ease;
  animation: cardIn 500ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.result-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-card h3 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-faint);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.score-band {
  font-size: 1.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.score-band[data-band="Elevated"] {
  color: var(--magenta);
  text-shadow: var(--glow-magenta);
}

.score-band[data-band="Moderate"] {
  color: var(--violet);
  text-shadow: var(--glow-violet);
}

.score-band[data-band="Mild"] {
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
}

.score-band[data-band="Low"] {
  color: var(--text-faint);
}

.score-bar {
  margin-top: 0.8rem;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.score-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--magenta));
  border-radius: inherit;
  width: 0%;
  transition: width 900ms cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 8px var(--cyan-dim);
}

.score-value {
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
}

/* Export row */
.export-row {
  margin-top: 1.75rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding: 1rem 0;
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding: 1.5rem 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-faint);
  letter-spacing: 0.1em;
}

/* ──────────────────── Utilities ──────────────────── */

[hidden] {
  display: none !important;
}

/* ──────────────────── Responsive ──────────────────── */

@media (max-width: 820px) {
  .info-grid,
  .results-detail-grid {
    grid-template-columns: 1fr;
  }

  .result-cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .site-shell {
    width: min(100% - 1rem, var(--max-width));
    padding: 1.5rem 0 2rem;
  }

  .panel-inner {
    padding: 1.25rem;
  }

  .result-cards {
    grid-template-columns: 1fr;
  }

  .nav-row {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-row .btn {
    justify-content: center;
  }

  .keyboard-hint {
    display: none;
  }

  .intro-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ──────────────────── Motion reduction ──────────────────── */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .progress-bar {
    animation: none !important;
  }

  #particle-canvas {
    display: none !important;
  }
}

/* Print-friendly (for Save PDF) */
@media print {
  body {
    background: #fff;
    color: #000;
  }

  #particle-canvas,
  .grain,
  .export-row,
  .intro-actions,
  .nav-row,
  .keyboard-hint,
  .site-footer {
    display: none !important;
  }

  .panel {
    background: #fff;
    border: 1px solid #ccc;
    box-shadow: none;
    backdrop-filter: none;
    page-break-inside: avoid;
  }

  .panel::before {
    display: none;
  }

  .score-band,
  .result-profile,
  .hero-word {
    color: #000 !important;
    background: none !important;
    text-shadow: none !important;
    -webkit-text-fill-color: #000;
  }
}
