:root {
  --bg: #f5fbf5;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --ink: #123227;
  --muted: #5f766c;
  --accent: #169b62;
  --accent-deep: #0d7046;
  --accent-warm: #c59a35;
  --line: rgba(22, 155, 98, 0.12);
  --line-strong: rgba(18, 50, 39, 0.12);
  --shadow: 0 24px 60px rgba(18, 50, 39, 0.12);
  --shadow-soft: 0 14px 32px rgba(18, 50, 39, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Poppins", sans-serif;
  color: var(--ink);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  background:
    radial-gradient(circle at top left, rgba(22, 155, 98, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(197, 154, 53, 0.18), transparent 26%),
    linear-gradient(180deg, #fcfffb 0%, #f5fbf5 100%);
}

button,
a {
  font: inherit;
  touch-action: manipulation;
}

.hidden {
  display: none !important;
}

.app-shell {
  width: min(100%, 460px);
  margin: 0 auto;
  padding: 14px 14px 34px;
}

.hero,
.question-card,
.result-card,
.cta-panel,
.reward-strip,
.quiz-header-card,
.quiz-footer-bar,
.status-bar div {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.hero-grid {
  display: none;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "DM Serif Display", serif;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.35rem, 10vw, 3.4rem);
  color: #103327;
  letter-spacing: -0.05em;
}

.hero-copy,
.question-body,
.micro-ad,
.cta-copy,
.trust-note,
.reward-strip p,
.hero-info-card p,
.hero-rules-card p,
.result-copy,
.unlock-overlay p {
  color: var(--muted);
}

.page-hero,
.quiz,
.result {
  display: grid;
  gap: 14px;
}

.hero-title-block {
  padding: 14px 6px 2px;
  text-align: center;
}

.hero-kicker {
  margin: 0;
  color: #137555;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-copy {
  margin: 10px auto 0;
  max-width: 22ch;
  font-size: 0.98rem;
  line-height: 1.62;
}

.hero-info-card,
.hero-rules-card {
  padding: 18px;
  border-radius: 24px;
}

.hero-showcase-card {
  display: grid;
  gap: 14px;
}

.hero-copy-stack {
  display: grid;
}

.hero-info-card h2 {
  color: #123227;
  font-size: 1.34rem;
}

.hero-info-card p {
  margin: 10px 0 0;
  line-height: 1.62;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.hero-pills span {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(22, 155, 98, 0.08);
  border: 1px solid rgba(22, 155, 98, 0.12);
  font-size: 0.82rem;
  font-weight: 700;
  color: #116d4d;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(22, 155, 98, 0.05);
  border: 1px solid rgba(22, 155, 98, 0.08);
}

.hero-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 0;
  min-width: 0;
}

.hero-stat + .hero-stat {
  padding-left: 12px;
  border-left: 1px solid rgba(22, 155, 98, 0.1);
}

.hero-stat strong {
  display: inline;
  font-size: 1rem;
  color: #123227;
}

.hero-stat span {
  display: inline;
  margin-top: 0;
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 420px) {
  .hero-stats {
    justify-content: space-between;
    gap: 8px;
    padding: 10px;
  }

  .hero-stat {
    gap: 4px;
  }

  .hero-stat + .hero-stat {
    padding-left: 8px;
  }

  .hero-stat strong {
    font-size: 0.94rem;
  }

  .hero-stat span {
    font-size: 0.68rem;
  }
}
.hero-stat strong,
.status-bar strong,
.quiz-meta-row,
.question-kicker,
.question-id,
.share-progress-pill,
.archetype-code,
.result-code-chip,
.preview-status-row,
.preview-footer,
.preview-metric strong {
  font-family: "JetBrains Mono", monospace;
}

.mode-btn {
  min-width: 118px;
}

.hero-start-btn {
  margin-top: 14px;
}

.hero-preview-panel {
  position: relative;
}

.preview-device {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 16px;
  background:
    radial-gradient(circle at top right, rgba(197, 154, 53, 0.24), transparent 28%),
    linear-gradient(180deg, #0d3a2c 0%, #12503d 100%);
  color: #fff;
  box-shadow: 0 24px 44px rgba(17, 30, 66, 0.24);
}

.preview-status-row,
.preview-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-status-row {
  color: rgba(255, 255, 255, 0.72);
}

.preview-card {
  margin-top: 14px;
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.9));
  color: #0f1832;
}

.preview-type {
  margin: 0;
  color: #137555;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.preview-card h3 {
  margin-top: 10px;
  font-size: 1.36rem;
  line-height: 1.32;
  color: #0d1834;
}

.preview-metrics {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.preview-metric span {
  color: #64708a;
  font-size: 0.78rem;
}

.preview-metric strong {
  display: block;
  margin: 4px 0 8px;
  font-size: 0.98rem;
  color: #123227;
}

.preview-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(22, 155, 98, 0.12);
  overflow: hidden;
}

.preview-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #169b62, #c59a35);
}

.preview-note {
  margin-top: 14px;
  color: #5e6d8d;
  font-size: 0.84rem;
  line-height: 1.6;
}

.preview-footer {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.74);
}

.hero-rules-card {
  padding: 12px 14px;
  background: rgba(14, 71, 52, 0.92);
  border-color: rgba(16, 97, 68, 0.82);
  box-shadow: 0 14px 36px rgba(14, 71, 52, 0.18);
}

.hero-rules-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  line-height: 1.5;
}

.primary-btn,
.secondary-btn,
.install-btn,
.link-btn,
.option-btn {
  border: 0;
  border-radius: 18px;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.primary-btn,
.install-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 54px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #169b62 0%, #0d7046 100%);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 18px 32px rgba(22, 155, 98, 0.24);
}

.install-btn {
  position: relative;
  display: grid;
  gap: 12px;
  justify-content: stretch;
  align-items: stretch;
  min-height: 0;
  padding: 18px;
  margin-top: 4px;
  text-decoration: none;
  color: #ffffff;
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 28%),
    linear-gradient(135deg, #f59e0b 0%, #f97316 54%, #d9485f 100%);
  box-shadow:
    0 22px 34px rgba(245, 158, 11, 0.24),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.install-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 18%, rgba(255, 255, 255, 0.24) 38%, transparent 58%);
  transform: translateX(-120%);
  animation: rewardSweep 3.4s ease-in-out infinite;
  pointer-events: none;
}

.install-badge,
.install-title,
.install-copy,
.install-meta,
.install-action {
  position: relative;
  z-index: 1;
}

.install-badge {
  justify-self: start;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff8de;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.install-title {
  font-family: "DM Serif Display", serif;
  font-size: 1.38rem;
  line-height: 1.32;
  color: #fffdf8;
}

.install-copy {
  font-size: 0.92rem;
  line-height: 1.56;
  color: rgba(255, 249, 237, 0.9);
}

.install-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.install-amount {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.2);
  font-family: "JetBrains Mono", monospace;
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
}

.install-note {
  color: rgba(255, 248, 229, 0.88);
  font-size: 0.82rem;
  font-weight: 700;
}

.install-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 14px 12px 18px;
  border-radius: 18px;
  background: rgba(14, 23, 42, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.install-action-text {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
}

.install-action-arrow {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 900;
}

.secondary-btn {
  min-height: 52px;
  padding: 14px 18px;
  background: #edf8f2;
  color: #0d7046;
  font-weight: 700;
  border-radius: 999px;
}

.link-btn {
  width: 100%;
  min-height: 44px;
  background: transparent;
  color: #0d7046;
  font-weight: 700;
}

.primary-btn:hover,
.secondary-btn:hover,
.install-btn:hover,
.link-btn:hover,
.option-btn:hover {
  transform: translateY(-1px);
}

.primary-btn:focus-visible,
.secondary-btn:focus-visible,
.install-btn:focus-visible,
.link-btn:focus-visible,
.option-btn:focus-visible {
  outline: 3px solid rgba(245, 158, 11, 0.92);
  outline-offset: 3px;
}

.quiz-header-card {
  position: sticky;
  top: 8px;
  z-index: 20;
  padding: 10px 12px;
  background:
    radial-gradient(circle at top right, rgba(197, 154, 53, 0.22), transparent 32%),
    linear-gradient(180deg, #0f3f31 0%, #145c45 100%);
  border-color: rgba(13, 87, 58, 0.88);
  box-shadow: 0 16px 28px rgba(15, 79, 55, 0.16);
  border-radius: 22px;
  backdrop-filter: blur(18px);
}

.quiz-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.78rem;
  font-weight: 700;
}

.progress-track {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(22, 155, 98, 0.08);
  overflow: hidden;
}

.progress-track-soft {
  margin-top: 6px;
  background: rgba(255, 255, 255, 0.14);
}

.progress-bar {
  height: 100%;
  width: 14.3%;
  border-radius: inherit;
  background: linear-gradient(90deg, #169b62, #c59a35);
  transition: width 0.25s ease;
}

.quiz-orbit {
  display: none;
}

.quiz-orbit-core {
  display: none;
}

.question-card,
.result-card,
.cta-panel {
  padding: 22px 18px;
}

.question-card h2 {
  font-size: 1.72rem;
  color: #123227;
  line-height: 1.35;
}

.question-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.question-kicker {
  margin: 0;
  color: #0d7046;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.question-id {
  margin: 0;
  color: #74867f;
  font-weight: 800;
  font-size: 0.92rem;
}

.question-body {
  margin: 12px 0 22px;
  font-size: 1rem;
  line-height: 1.72;
}

.options {
  display: grid;
  gap: 12px;
}

.option-btn {
  width: 100%;
  padding: 18px 18px 20px;
  text-align: left;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 247, 242, 0.92));
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(22, 155, 98, 0.1);
}

.option-btn strong {
  display: block;
  margin-bottom: 6px;
  color: #123227;
  font-size: 1rem;
}

.option-btn span {
  color: var(--muted);
  line-height: 1.5;
}

.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  padding: 4px 2px;
}

.status-bar div {
  flex: 1;
  padding: 0 10px;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  text-align: center;
}

.status-bar div + div {
  border-left: 1px solid rgba(22, 155, 98, 0.12);
}

.status-label {
  margin: 0 0 2px;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.status-bar strong {
  font-size: 1rem;
}

.status-bar-soft {
  margin-top: 0;
}

.quiz-footer-bar {
  padding: 14px 16px 18px;
}

.micro-ad {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.58;
}

.result-card {
  text-align: center;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.18), transparent 28%),
    radial-gradient(circle at top left, rgba(22, 155, 98, 0.16), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(246, 251, 247, 0.98) 100%);
  --result-primary: #169b62;
  --result-secondary: #ffd36f;
  --result-accent: #0d7046;
  --result-shadow: rgba(22, 155, 98, 0.22);
  --result-ink: #123227;
}

.result-card[data-result="budget_ninja"] {
  --result-primary: #169b62;
  --result-secondary: #ffd36f;
  --result-accent: #0d7046;
  --result-shadow: rgba(22, 155, 98, 0.22);
  --result-ink: #123227;
}

.result-card[data-result="family_first"] {
  --result-primary: #0f9f68;
  --result-secondary: #9cebc5;
  --result-accent: #0b6b45;
  --result-shadow: rgba(15, 159, 104, 0.22);
  --result-ink: #05261a;
}

.result-card[data-result="hustle_captain"] {
  --result-primary: #177e54;
  --result-secondary: #9fe0b9;
  --result-accent: #11583d;
  --result-shadow: rgba(23, 126, 84, 0.22);
  --result-ink: #0d2f21;
}

.result-card[data-result="comeback_planner"] {
  --result-primary: #7c3aed;
  --result-secondary: #cfb5ff;
  --result-accent: #5d29b6;
  --result-shadow: rgba(124, 58, 237, 0.22);
  --result-ink: #261046;
}

.result-card[data-result="vibe_spender"] {
  --result-primary: #e94079;
  --result-secondary: #ffc0d6;
  --result-accent: #af1e57;
  --result-shadow: rgba(233, 64, 121, 0.22);
  --result-ink: #451125;
}

.result-card.locked {
  --result-primary: #727c8f;
  --result-secondary: #d6dbe7;
  --result-accent: #4f596a;
  --result-shadow: rgba(76, 86, 104, 0.2);
  --result-ink: #1c2433;
  padding-bottom: 168px;
}

.result-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.result-badge,
.cta-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(22, 155, 98, 0.08);
  color: var(--accent-deep);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.share-progress-pill {
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(23, 32, 51, 0.07);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--result-ink);
  letter-spacing: 0.03em;
}

.archetype-stage {
  position: relative;
  min-height: 470px;
  margin: 18px 0 22px;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.1) 32%, transparent 58%),
    radial-gradient(circle at top, rgba(255, 247, 229, 0.82) 0%, transparent 42%),
    linear-gradient(180deg, rgba(255, 244, 225, 0.92) 0%, rgba(255, 255, 255, 0.86) 100%);
}

.stage-backdrop-word,
.stage-poster-top,
.stage-banner {
  position: absolute;
  z-index: 1;
}

.stage-backdrop-word {
  left: 22px;
  top: 20px;
  color: rgba(255, 255, 255, 0.5);
  font-family: "DM Serif Display", serif;
  font-size: 4.9rem;
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 1;
}

.stage-poster-top {
  left: 18px;
  right: 18px;
  top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.stage-faction-pill,
.stage-type-pill {
  margin: 0;
  padding: 9px 14px;
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stage-faction-pill {
  color: var(--result-accent);
  background: rgba(255, 250, 242, 0.94);
  box-shadow: 0 12px 24px rgba(23, 32, 51, 0.08);
}

.stage-type-pill {
  color: #ffffff;
  background: rgba(84, 66, 45, 0.76);
}

.stage-ring,
.stage-spark {
  position: absolute;
  pointer-events: none;
}

.stage-ring {
  left: 50%;
  top: 50%;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: spin 18s linear infinite;
}

.ring-a {
  width: 210px;
  height: 210px;
}

.ring-b {
  width: 280px;
  height: 280px;
  opacity: 0.56;
  animation-duration: 24s;
  animation-direction: reverse;
}

.stage-spark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.8);
  animation: glow 2.4s ease-in-out infinite;
}

.spark-a {
  left: 74px;
  top: 70px;
}

.spark-b {
  right: 76px;
  top: 94px;
  animation-delay: 0.8s;
}

.archetype-figure {
  position: absolute;
  left: 50%;
  top: 92px;
  width: 264px;
  height: 286px;
  transform: translateX(-50%);
  filter: drop-shadow(0 24px 36px var(--result-shadow));
  z-index: 2;
}

.figure-halo,
.figure-crown,
.figure-head,
.figure-shoulder,
.figure-body,
.figure-core,
.figure-emblem {
  position: absolute;
}

.figure-halo {
  left: 50%;
  top: 2px;
  width: 208px;
  height: 208px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.82) 0%, transparent 68%);
}

.figure-crown {
  left: 50%;
  top: 18px;
  width: 120px;
  height: 24px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.85) 22%, transparent 100%);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.7);
}

.figure-head {
  left: 50%;
  top: 24px;
  width: 122px;
  height: 126px;
  transform: translateX(-50%);
}

.figure-hair,
.figure-face,
.figure-beard,
.figure-glasses,
.figure-scarf,
.figure-arm,
.figure-prop,
.figure-base,
.face-brow,
.face-eye,
.face-nose {
  position: absolute;
}

.figure-hair {
  left: 16px;
  top: 0;
  width: 88px;
  height: 42px;
  border-radius: 24px 28px 14px 18px;
  background: #4d3629;
}

.figure-face {
  left: 24px;
  top: 22px;
  width: 74px;
  height: 86px;
  border-radius: 26px 26px 22px 22px;
  background: linear-gradient(180deg, #f6d8b5 0%, #e9bc8b 100%);
  box-shadow: inset 0 -6px 0 rgba(204, 145, 92, 0.18);
}

.face-brow {
  top: 24px;
  width: 16px;
  height: 4px;
  border-radius: 999px;
  background: #5b4130;
}

.brow-left {
  left: 15px;
  transform: rotate(-10deg);
}

.brow-right {
  right: 15px;
  transform: rotate(10deg);
}

.face-eye {
  top: 34px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1d2435;
}

.eye-left {
  left: 20px;
}

.eye-right {
  right: 20px;
}

.face-nose {
  left: 50%;
  top: 40px;
  width: 8px;
  height: 20px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(167, 110, 70, 0.38);
}

.figure-beard {
  left: 32px;
  bottom: 8px;
  width: 60px;
  height: 28px;
  border-radius: 0 0 24px 24px;
  background: #845f49;
}

.figure-glasses {
  left: 18px;
  top: 36px;
  width: 88px;
  height: 28px;
  border: 4px solid rgba(38, 46, 65, 0.68);
  border-left-width: 14px;
  border-right-width: 14px;
  border-radius: 14px;
  opacity: 0;
}

.figure-shoulder {
  top: 148px;
  width: 62px;
  height: 104px;
  background: linear-gradient(180deg, var(--result-primary) 0%, var(--result-accent) 100%);
}

.shoulder-left {
  left: 22px;
  border-radius: 26px 14px 28px 22px;
  transform: rotate(16deg);
}

.shoulder-right {
  right: 22px;
  border-radius: 14px 26px 22px 28px;
  transform: rotate(-16deg);
}

.figure-body {
  left: 50%;
  bottom: 24px;
  width: 186px;
  height: 160px;
  transform: translateX(-50%);
  border-radius: 34px 34px 22px 22px;
  background: linear-gradient(180deg, var(--result-primary) 0%, var(--result-accent) 100%);
  clip-path: polygon(50% 0%, 78% 16%, 88% 100%, 12% 100%, 22% 16%);
}

.figure-core {
  left: 50%;
  bottom: 74px;
  width: 94px;
  height: 94px;
  transform: translateX(-50%);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 233, 210, 0.96) 100%);
  box-shadow:
    0 0 0 10px rgba(255, 255, 255, 0.14),
    0 0 38px rgba(255, 255, 255, 0.76);
}

.figure-emblem {
  left: 50%;
  bottom: 84px;
  width: 66px;
  height: 66px;
  transform: translateX(-50%);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #f3e3c5 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px rgba(16, 26, 53, 0.18);
}

.figure-emblem span {
  color: var(--result-primary);
  font-family: "DM Serif Display", serif;
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
}

.figure-scarf {
  left: 50%;
  top: 132px;
  width: 110px;
  height: 28px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 248, 238, 0.86);
  opacity: 0.88;
}

.figure-arm {
  top: 178px;
  width: 44px;
  height: 112px;
  border-radius: 22px;
  background: linear-gradient(180deg, var(--result-primary) 0%, var(--result-accent) 100%);
}

.arm-left {
  left: 48px;
  transform: rotate(8deg);
}

.arm-right {
  right: 48px;
  transform: rotate(-8deg);
}

.figure-prop {
  left: 50%;
  bottom: 44px;
  width: 88px;
  height: 54px;
  transform: translateX(34px);
  border-radius: 16px;
  background: #efe4cd;
  box-shadow: 0 10px 20px rgba(25, 32, 52, 0.18);
}

.figure-base {
  left: 50%;
  bottom: 8px;
  width: 172px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(72, 49, 31, 0.16);
  filter: blur(1px);
}

.result-card[data-result="budget_ninja"] .figure-emblem {
  transform: translateX(-50%) rotate(45deg);
}

.result-card[data-result="budget_ninja"] .figure-emblem span {
  transform: rotate(-45deg);
}

.result-card[data-result="budget_ninja"] .figure-hair {
  border-radius: 18px 22px 10px 16px;
  background: #2e2d3a;
}

.result-card[data-result="budget_ninja"] .figure-prop {
  width: 96px;
  height: 58px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f5ead3 0%, #dec4a1 100%);
}

.result-card[data-result="family_first"] .figure-emblem {
  border-radius: 30px 30px 26px 26px;
}

.result-card[data-result="family_first"] .figure-scarf {
  background: linear-gradient(90deg, #fff2d7 0%, #d9f1df 100%);
}

.result-card[data-result="family_first"] .figure-beard {
  width: 52px;
  height: 24px;
  background: #6e5a4a;
}

.result-card[data-result="family_first"] .figure-prop {
  width: 84px;
  height: 66px;
  border-radius: 18px 18px 22px 22px;
  background: linear-gradient(180deg, #f4d9ab 0%, #b98547 100%);
}

.result-card[data-result="hustle_captain"] .figure-emblem {
  clip-path: polygon(25% 0%, 100% 0%, 72% 43%, 100% 43%, 0% 100%, 38% 52%, 6% 52%);
  border-radius: 0;
}

.result-card[data-result="hustle_captain"] .figure-glasses {
  opacity: 1;
}

.result-card[data-result="hustle_captain"] .figure-hair {
  height: 38px;
  background: #2b2f45;
}

.result-card[data-result="hustle_captain"] .figure-prop {
  width: 76px;
  height: 54px;
  border-radius: 12px;
  background: linear-gradient(180deg, #146545 0%, #169b62 100%);
}

.result-card[data-result="comeback_planner"] .figure-emblem {
  clip-path: polygon(50% 0%, 86% 14%, 100% 50%, 86% 86%, 50% 100%, 14% 86%, 0% 50%, 14% 14%);
  border-radius: 0;
}

.result-card[data-result="comeback_planner"] .figure-glasses {
  opacity: 1;
  border-color: rgba(73, 47, 115, 0.62);
}

.result-card[data-result="comeback_planner"] .figure-hair {
  background: #5d4a79;
  border-radius: 24px 24px 10px 18px;
}

.result-card[data-result="comeback_planner"] .figure-beard {
  width: 46px;
  height: 18px;
  background: #7f688e;
}

.result-card[data-result="comeback_planner"] .figure-prop {
  width: 92px;
  height: 52px;
  border-radius: 10px;
  background: linear-gradient(180deg, #f4e7d0 0%, #d0b48c 100%);
}

.result-card[data-result="vibe_spender"] .figure-emblem {
  border-radius: 40px 40px 40px 14px;
  transform: translateX(-50%) rotate(18deg);
}

.result-card[data-result="vibe_spender"] .figure-hair {
  left: 12px;
  width: 96px;
  height: 46px;
  border-radius: 32px 36px 12px 20px;
  background: #7a3b3d;
}

.result-card[data-result="vibe_spender"] .figure-scarf {
  background: linear-gradient(90deg, #ffd8d0 0%, #ffe9c9 100%);
}

.result-card[data-result="vibe_spender"] .figure-prop {
  width: 58px;
  height: 70px;
  border-radius: 20px 20px 26px 26px;
  background: linear-gradient(180deg, #ffe8cb 0%, #d98c6a 100%);
}

.stage-banner {
  left: 22px;
  right: 22px;
  bottom: 54px;
  padding: 16px 18px 18px;
  border-radius: 24px;
  background: rgba(255, 251, 246, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 32px rgba(18, 34, 74, 0.14);
  z-index: 5;
}

.stage-banner-kicker {
  margin: 0;
  color: var(--result-accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stage-banner h3 {
  margin-top: 8px;
  color: var(--result-ink);
  font-size: 2rem;
}

.stage-banner-motto {
  margin: 8px 0 0;
  color: #5d4b35;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.56;
}

.archetype-code {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 16px;
  margin: 0;
  color: var(--result-ink);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.84rem;
  z-index: 5;
}

.result-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.result-tagline {
  margin: 2px auto 0;
  max-width: 22ch;
  font-size: 0.96rem;
  color: #5b4d3c;
  font-weight: 700;
  line-height: 1.5;
}

.result-copy {
  display: none;
}

.result-code-chip {
  display: inline-flex;
  margin: 2px auto 0;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(108, 81, 48, 0.1);
  color: #6b4f2a;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trait-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 8px 0 4px;
}

.trait-pill {
  padding: 12px 10px;
  border-radius: 18px;
  background: rgba(255, 248, 238, 0.94);
  box-shadow: inset 0 0 0 1px rgba(140, 108, 74, 0.14);
  font-size: 0.92rem;
  font-weight: 700;
  color: #5a4731;
}

.result-content h2,
.dossier-grid,
.insight-columns,
.score-ring,
.result-metrics {
  display: none;
}

.dossier-grid,
.insight-columns {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.dossier-grid,
.insight-columns,
.cta-actions {
  grid-template-columns: 1fr 1fr;
}

.dossier-card,
.insight-card {
  padding: 14px 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
  text-align: left;
}

.dossier-label,
.insight-label {
  margin: 0 0 8px;
  color: var(--result-accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dossier-quote {
  margin: 0;
  color: var(--result-ink);
  line-height: 1.58;
  font-weight: 600;
}

.insight-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.insight-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(23, 32, 51, 0.05);
  color: var(--result-ink);
  line-height: 1.42;
  font-size: 0.9rem;
  font-weight: 600;
}

.insight-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--result-primary);
  flex: 0 0 auto;
}

.score-ring {
  display: grid;
  place-items: center;
  width: 136px;
  height: 136px;
  margin: 24px auto 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.95) 52%, transparent 53%),
    conic-gradient(var(--result-primary) 0deg, var(--result-secondary) 220deg, rgba(23, 32, 51, 0.08) 220deg);
  box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.46);
}

.score-ring span {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 2.35rem;
  line-height: 1;
}

.score-ring small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.82rem;
}

.unlock-overlay {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 18px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 30px rgba(23, 32, 51, 0.12);
  z-index: 3;
}

.unlock-kicker {
  margin: 0 0 8px;
  color: var(--result-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.unlock-overlay h3 {
  font-size: 1.3rem;
  line-height: 1.35;
}

.unlock-overlay p {
  margin: 10px 0 0;
  line-height: 1.56;
}

.share-meter {
  width: 100%;
  height: 10px;
  margin-top: 14px;
  border-radius: 999px;
  background: rgba(23, 32, 51, 0.08);
  overflow: hidden;
}

.share-meter-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--result-primary), var(--result-accent));
  transition: width 0.25s ease;
}

.share-meter-copy {
  font-weight: 700;
}

.result-card.locked .archetype-stage {
  min-height: 332px;
  margin: 14px 0 12px;
  filter: grayscale(0.78) saturate(0.42);
}

.result-card.locked .stage-backdrop-word {
  font-size: 3.8rem;
}

.result-card.locked .stage-poster-top {
  top: 14px;
}

.result-card.locked .archetype-figure {
  top: 78px;
  width: 212px;
  height: 228px;
}

.result-card.locked .figure-head {
  width: 106px;
  height: 110px;
}

.result-card.locked .figure-shoulder {
  width: 50px;
  height: 88px;
}

.result-card.locked .figure-arm {
  width: 36px;
  height: 88px;
}

.result-card.locked .figure-body {
  width: 158px;
  height: 138px;
}

.result-card.locked .figure-core {
  bottom: 58px;
  width: 76px;
  height: 76px;
}

.result-card.locked .figure-emblem {
  bottom: 68px;
  width: 54px;
  height: 54px;
}

.result-card.locked .figure-emblem span {
  font-size: 1.42rem;
}

.result-card.locked .figure-prop {
  width: 68px;
  height: 44px;
  bottom: 34px;
}

.result-card.locked .stage-banner {
  left: 18px;
  right: 18px;
  bottom: 42px;
  padding: 14px 16px;
  border-radius: 20px;
}

.result-card.locked .stage-banner h3 {
  font-size: 1.34rem;
}

.result-card.locked .stage-banner-motto {
  font-size: 0.84rem;
}

.result-card.locked .archetype-code {
  bottom: 12px;
  font-size: 0.76rem;
}

.result-card.locked .result-tagline {
  margin-top: 10px;
  max-width: 20ch;
  font-size: 0.96rem;
}

.result-card.locked .result-copy {
  margin-top: 10px;
  max-width: 22ch;
  font-size: 0.92rem;
}

.result-card.locked .trait-grid {
  margin: 14px 0 0;
}

.result-card.locked .dossier-grid,
.result-card.locked .insight-columns,
.result-card.locked .score-ring,
.result-card.locked .result-metrics {
  display: none;
}

.result-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
}

.result-metrics div {
  padding: 12px 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
}

.result-metrics span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.result-metrics strong {
  display: block;
  margin-top: 4px;
  font-size: 1.02rem;
  font-family: "JetBrains Mono", monospace;
}

.cta-panel {
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.16), transparent 30%),
    linear-gradient(180deg, #0d1734 0%, #14244d 100%);
  border-color: rgba(18, 34, 74, 0.92);
  color: #ffffff;
}

.cta-panel .cta-label {
  background: rgba(255, 255, 255, 0.1);
  color: #ffd36f;
}

.cta-panel h3 {
  margin-top: 12px;
  font-size: 1.62rem;
  color: #ffffff;
}

.cta-panel .cta-copy,
.cta-panel .trust-note {
  color: rgba(255, 255, 255, 0.82);
}

.cta-actions {
  display: grid;
  gap: 12px;
  margin: 18px 0 14px;
}

.trust-note {
  margin: 14px 0 0;
  font-size: 0.88rem;
  line-height: 1.5;
}

@keyframes rewardSweep {
  0%,
  12% {
    transform: translateX(-120%);
  }

  38%,
  100% {
    transform: translateX(140%);
  }
}

.reward-strip {
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(237, 243, 255, 0.92));
}

.reward-title {
  margin: 0 0 8px;
  color: var(--accent-warm);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
}

.result.locked-view {
  gap: 12px;
}

.result.locked-view .cta-panel {
  padding: 18px 16px;
}

.result.locked-view .cta-panel h3 {
  margin-top: 10px;
  font-size: 1.34rem;
}

.result.locked-view .cta-copy {
  margin-top: 10px;
  font-size: 0.92rem;
}

.result.locked-view .cta-actions {
  margin: 14px 0 0;
  grid-template-columns: 1fr;
}

.result.locked-view .reward-strip,
.result.locked-view .trust-note {
  display: none;
}

@keyframes spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes glow {
  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

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

@media (max-width: 420px) {
  .app-shell {
    padding-inline: 12px;
  }

  .hero-showcase-card,
  .preview-card {
    padding-inline: 16px;
  }

  .hero-stats,
  .status-bar,
  .result-metrics,
  .cta-actions,
  .dossier-grid,
  .insight-columns {
    grid-template-columns: 1fr;
  }

  .result-topline {
    flex-direction: column;
    align-items: flex-start;
  }

  .question-card h2 {
    font-size: 1.58rem;
  }

  .preview-card h3 {
    font-size: 1.22rem;
  }
}
