:root {
  --paper: #f2eee4;
  --paper-deep: #e8e1d3;
  --ink: #171a1c;
  --ink-soft: #34383b;
  --muted: #6f706a;
  --line: rgba(23, 26, 28, 0.16);
  --line-strong: rgba(23, 26, 28, 0.72);
  --lime: #ddff72;
  --lime-deep: #c6ed53;
  --coral: #ff7958;
  --blue: #b9cdfb;
  --white: #fffdf8;
  --shadow: 0 18px 55px rgba(33, 33, 26, 0.1);
  --display: "Avenir Next", "Futura", "PingFang SC", "Microsoft YaHei", sans-serif;
  --body: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 280px;
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  min-width: 280px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 86% 9%, rgba(255, 121, 88, 0.15), transparent 21rem),
    radial-gradient(circle at 8% 28%, rgba(221, 255, 114, 0.25), transparent 20rem),
    var(--paper);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.ambient-grid {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: 0.33;
  background-image:
    linear-gradient(rgba(23, 26, 28, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 26, 28, 0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

.page-width {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.screen {
  position: relative;
  min-height: 100vh;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid var(--line);
}

.brand,
.brand-button {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.brand-button {
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  background: var(--ink);
  border-radius: 12px;
  transform: rotate(-4deg);
}

.brand-mark i:nth-child(1) {
  background: var(--lime);
  border-radius: 0 0 100% 0;
}

.brand-mark i:nth-child(2) {
  background: var(--coral);
  border-radius: 0 0 0 100%;
}

.brand-mark i:nth-child(3) {
  background: var(--blue);
  border-radius: 0 100% 0 0;
}

.brand-mark i:nth-child(4) {
  background: var(--white);
  border-radius: 100% 0 0 0;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

.brand-copy strong {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-copy small {
  color: var(--muted);
  font-family: var(--display);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.local-note,
.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  color: var(--muted);
  background: rgba(255, 253, 248, 0.62);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  white-space: nowrap;
}

.local-note i {
  width: 7px;
  height: 7px;
  background: var(--lime-deep);
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.hero {
  display: grid;
  min-height: calc(100svh - 84px);
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: clamp(30px, 7vw, 90px);
  align-items: center;
  padding-block: clamp(54px, 7vw, 100px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 9px 14px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.66);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.eyebrow span {
  color: var(--coral);
}

.eyebrow-plain {
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

.hero h1,
.result-heading h1 {
  max-width: 680px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(54px, 8.3vw, 108px);
  font-weight: 850;
  line-height: 0.92;
  letter-spacing: -0.075em;
}

.hero h1 span {
  position: relative;
  z-index: 1;
  display: inline-block;
}

.hero h1 span::after {
  position: absolute;
  z-index: -1;
  right: -0.05em;
  bottom: -0.02em;
  left: -0.03em;
  height: 0.22em;
  content: "";
  background: var(--lime);
  transform: rotate(-1.4deg);
}

.hero-intro {
  max-width: 610px;
  margin: 26px 0 28px;
  color: var(--ink-soft);
  font-size: clamp(14px, 1.6vw, 17px);
  line-height: 1.95;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.primary-button,
.secondary-button,
.resume-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 20px;
  border: 1.5px solid var(--ink);
  border-radius: 15px;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.primary-button {
  color: var(--white);
  background: var(--ink);
  box-shadow: 4px 4px 0 var(--coral);
}

.primary-button:hover {
  box-shadow: 7px 7px 0 var(--coral);
  transform: translate(-2px, -2px);
}

.primary-button:active,
.secondary-button:active,
.resume-button:active {
  box-shadow: none;
  transform: translate(2px, 2px);
}

.button-arrow {
  font-size: 18px;
  line-height: 1;
}

.resume-button {
  color: var(--ink);
  background: var(--lime);
  border-color: var(--ink);
}

.micro-copy {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.hero-visual {
  position: relative;
  width: min(38vw, 435px);
  aspect-ratio: 1;
  justify-self: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 253, 248, 0.9), transparent 39%),
    transparent;
}

.orbit {
  position: absolute;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
}

.orbit-a {
  inset: 2%;
  animation: spin 28s linear infinite;
}

.orbit-a::before,
.orbit-a::after,
.orbit-b::before {
  position: absolute;
  width: 12px;
  height: 12px;
  content: "";
  background: var(--coral);
  border: 1.5px solid var(--ink);
  border-radius: 50%;
}

.orbit-a::before {
  top: 12%;
  left: 7%;
}

.orbit-a::after {
  right: 4%;
  bottom: 27%;
  background: var(--lime);
}

.orbit-b {
  inset: 17%;
  border-style: dashed;
  transform: rotate(22deg);
  animation: spin-reverse 22s linear infinite;
}

.orbit-b::before {
  top: 7%;
  right: 17%;
  background: var(--blue);
}

.center-orbit {
  inset: 33%;
  background: var(--ink);
  border: 0;
  box-shadow:
    0 0 0 15px rgba(255, 253, 248, 0.7),
    0 24px 70px rgba(23, 26, 28, 0.22);
}

.orbit-dot {
  position: absolute;
  width: 15px;
  height: 15px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
}

.dot-lime {
  top: 13%;
  right: 20%;
  background: var(--lime);
}

.dot-coral {
  right: 4%;
  bottom: 22%;
  background: var(--coral);
}

.dot-blue {
  bottom: 4%;
  left: 29%;
  background: var(--blue);
}

.signal-core {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--white);
  transform: translate(-50%, -50%);
}

.signal-core span {
  font-family: var(--display);
  font-size: clamp(27px, 4vw, 50px);
  font-weight: 900;
  letter-spacing: -0.08em;
}

.signal-core small {
  color: var(--lime);
  font-family: var(--display);
  font-size: 7px;
  letter-spacing: 0.22em;
}

.floating-note {
  position: absolute;
  padding: 8px 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 rgba(23, 26, 28, 0.18);
  font-size: 11px;
  font-weight: 700;
  animation: float 5s ease-in-out infinite;
}

.note-vision {
  top: 14%;
  left: 0;
}

.note-craft {
  top: 28%;
  right: 0;
  animation-delay: -1.2s;
}

.note-spark {
  right: 7%;
  bottom: 17%;
  animation-delay: -2.4s;
}

.note-bond {
  bottom: 12%;
  left: 1%;
  animation-delay: -3.4s;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.stat-card {
  position: relative;
  min-height: 194px;
  padding: 24px;
  background: rgba(255, 253, 248, 0.65);
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.stat-index {
  display: block;
  margin-bottom: 42px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.15em;
}

.stat-card strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(23px, 2.5vw, 34px);
  font-weight: 800;
  letter-spacing: -0.055em;
}

.stat-card p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.stat-card-dark {
  color: var(--white);
  background: var(--ink);
}

.stat-card-dark p {
  color: rgba(255, 253, 248, 0.62);
}

.stat-card-dark .stat-index {
  color: var(--lime);
}

.stat-card-lime {
  background: var(--lime);
}

.section-block {
  padding-block: clamp(78px, 10vw, 132px);
}

.section-heading {
  max-width: 660px;
  margin-bottom: 38px;
}

.section-heading h2,
.closing-cta h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.065em;
}

.section-heading > p:last-child {
  max-width: 540px;
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.signal-card {
  display: flex;
  min-height: 245px;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border: 1.5px solid var(--ink);
  border-radius: 19px;
  transition:
    transform 200ms ease,
    box-shadow 200ms ease;
}

.signal-card:hover {
  box-shadow: 6px 6px 0 var(--ink);
  transform: translate(-3px, -3px);
}

.signal-symbol {
  display: grid;
  width: 61px;
  height: 61px;
  place-items: center;
  background: rgba(255, 253, 248, 0.45);
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--display);
  font-size: 31px;
}

.signal-card h3 {
  margin: 0 0 9px;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 850;
  letter-spacing: -0.06em;
}

.signal-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.75;
}

.signal-lime {
  background: var(--lime);
}

.signal-ink {
  color: var(--white);
  background: var(--ink);
}

.signal-ink .signal-symbol {
  background: rgba(255, 253, 248, 0.08);
}

.signal-coral {
  background: var(--coral);
}

.signal-blue {
  background: var(--blue);
}

.archetype-section {
  padding-top: 12px;
}

.archetype-marquee {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.archetype-marquee span {
  padding: 9px 14px;
  background: rgba(255, 253, 248, 0.7);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
}

.result-preview {
  position: relative;
  display: grid;
  min-height: 400px;
  grid-template-columns: 0.9fr 1.1fr 0.75fr;
  gap: 30px;
  align-items: center;
  overflow: hidden;
  padding: clamp(28px, 6vw, 70px);
  color: var(--white);
  background: var(--ink);
  border-radius: 28px;
}

.preview-copy {
  position: relative;
  z-index: 1;
}

.preview-copy > span {
  color: var(--lime);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.preview-copy h3 {
  margin: 15px 0;
  font-family: var(--display);
  font-size: clamp(33px, 4vw, 53px);
  font-weight: 850;
  line-height: 1.03;
  letter-spacing: -0.065em;
}

.preview-copy p {
  max-width: 440px;
  margin: 0;
  color: rgba(255, 253, 248, 0.6);
  font-size: 13px;
  line-height: 1.8;
}

.preview-orbit {
  width: min(26vw, 280px);
  aspect-ratio: 1;
  border: 1px solid rgba(221, 255, 114, 0.55);
  border-radius: 50%;
}

.preview-orbit::before,
.preview-orbit::after {
  display: block;
  width: 72%;
  height: 72%;
  margin: 14%;
  content: "";
  border: 1px dashed rgba(255, 253, 248, 0.38);
  border-radius: 50%;
  transform: rotate(31deg);
}

.preview-orbit::after {
  width: 44%;
  height: 44%;
  margin: 28%;
  background: var(--lime);
  border: 0;
}

.mini-card {
  position: relative;
  display: flex;
  aspect-ratio: 0.79;
  flex-direction: column;
  padding: 16px;
  color: var(--ink);
  background: var(--paper);
  border-radius: 16px;
  transform: rotate(5deg);
}

.mini-card > span,
.mini-card > small {
  font-family: var(--display);
  font-size: 6px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.mini-card strong {
  margin-top: auto;
  font-family: var(--display);
  font-size: clamp(18px, 2.4vw, 31px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.mini-card i {
  width: 52%;
  height: 12px;
  margin: 11px 0 18px;
  background: var(--coral);
  border-radius: 999px;
}

.closing-cta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding-block: 68px 82px;
  border-top: 1px solid var(--line-strong);
}

.closing-cta h2 {
  font-size: clamp(33px, 4.5vw, 58px);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  padding-block: 22px 30px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.site-footer p {
  margin: 0;
}

.quiz-screen {
  display: flex;
  height: 100dvh;
  min-height: 560px;
  flex-direction: column;
  overflow: hidden;
  padding:
    max(10px, env(safe-area-inset-top))
    max(14px, env(safe-area-inset-right))
    max(10px, env(safe-area-inset-bottom))
    max(14px, env(safe-area-inset-left));
  background:
    radial-gradient(circle at 100% 8%, rgba(255, 121, 88, 0.22), transparent 15rem),
    radial-gradient(circle at 0 78%, rgba(185, 205, 251, 0.25), transparent 18rem),
    var(--paper);
}

.quiz-header {
  display: flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
}

.quiz-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.quiz-brand-dot {
  width: 18px;
  height: 18px;
  background:
    linear-gradient(90deg, var(--lime) 50%, var(--coral) 50%) 0 0 / 100% 50% no-repeat,
    var(--blue);
  border: 1px solid var(--ink);
  border-radius: 6px;
  transform: rotate(-5deg);
}

.save-state {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
}

.save-state::before {
  width: 5px;
  height: 5px;
  content: "";
  background: var(--lime-deep);
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.progress-wrap {
  flex: 0 0 auto;
  padding: 8px 1px 10px;
}

.progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
  font-size: 10px;
  font-weight: 650;
}

.progress-meta span {
  color: var(--muted);
  letter-spacing: 0.08em;
}

.progress-meta strong {
  color: var(--ink);
  font-family: var(--display);
  letter-spacing: 0.06em;
}

.progress-track {
  height: 7px;
  overflow: hidden;
  background: rgba(23, 26, 28, 0.1);
  border: 1px solid rgba(23, 26, 28, 0.23);
  border-radius: 99px;
}

.progress-track span {
  display: block;
  width: 12.5%;
  height: 100%;
  background: var(--coral);
  border-radius: inherit;
  transition: width 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.quiz-stage {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  align-items: stretch;
  padding: 7px 0 9px;
}

.question-frame {
  display: flex;
  min-height: 0;
  width: 100%;
}

.question-card {
  display: flex;
  width: 100%;
  min-height: 0;
  flex-direction: column;
  padding: clamp(17px, 4.4vw, 28px);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), transparent 45%),
    var(--white);
  border: 1.5px solid var(--ink);
  border-radius: clamp(21px, 5vw, 29px);
  box-shadow: 7px 8px 0 rgba(23, 26, 28, 0.13);
}

.question-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.question-meta span:first-child {
  padding: 6px 9px;
  background: var(--lime);
  border: 1px solid var(--ink);
  border-radius: 999px;
}

.question-meta span:last-child {
  color: var(--muted);
}

.question-copy {
  margin-block: auto;
  padding: clamp(17px, 3.5vh, 30px) 0 clamp(17px, 3vh, 26px);
}

.question-copy h2 {
  margin: 0;
  font-family: var(--body);
  font-size: clamp(23px, 6.8vw, 29px);
  font-weight: 780;
  line-height: 1.48;
  letter-spacing: -0.045em;
}

.question-copy p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.options-list {
  display: grid;
  gap: clamp(7px, 1.4vh, 11px);
}

.option-item {
  position: relative;
  display: grid;
  width: 100%;
  min-height: clamp(50px, 7vh, 61px);
  grid-template-columns: 30px 1fr 20px;
  gap: 10px;
  align-items: center;
  padding: 9px 12px;
  color: var(--ink);
  text-align: left;
  background: rgba(242, 238, 228, 0.58);
  border: 1.3px solid rgba(23, 26, 28, 0.24);
  border-radius: 14px;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
  animation: option-in 400ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--option-index) * 45ms);
}

.option-item:hover {
  background: var(--white);
  border-color: var(--ink);
  transform: translateX(3px);
}

.option-item.is-selected {
  background: var(--lime);
  border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transform: translate(-1px, -1px);
}

.option-marker {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  background: var(--white);
  border: 1px solid var(--ink);
  border-radius: 9px;
  font-family: var(--display);
  font-size: 10px;
  font-weight: 800;
}

.option-text {
  font-size: clamp(12px, 3.5vw, 14px);
  font-weight: 610;
  line-height: 1.5;
  letter-spacing: -0.015em;
}

.option-check {
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  color: var(--white);
  border: 1px solid rgba(23, 26, 28, 0.3);
  border-radius: 50%;
  font-size: 11px;
  opacity: 0.45;
}

.option-item.is-selected .option-check {
  background: var(--ink);
  border-color: var(--ink);
  opacity: 1;
}

.question-frame.enter-next .question-card {
  animation: card-next 330ms cubic-bezier(0.22, 1, 0.36, 1);
}

.question-frame.enter-prev .question-card {
  animation: card-prev 330ms cubic-bezier(0.22, 1, 0.36, 1);
}

.quiz-actions {
  display: grid;
  min-height: 58px;
  flex: 0 0 auto;
  grid-template-columns: minmax(102px, 0.78fr) minmax(0, 1.22fr);
  gap: 9px;
}

.quiz-actions .primary-button,
.quiz-actions .secondary-button {
  min-height: 55px;
  padding-inline: 14px;
  font-size: 13px;
}

.quiz-actions .secondary-button {
  background: rgba(255, 253, 248, 0.68);
}

.next-button:disabled {
  color: rgba(255, 253, 248, 0.58);
  background: #777a75;
  border-color: #777a75;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.secondary-button {
  color: var(--ink);
  background: transparent;
  box-shadow: none;
}

.secondary-button:hover {
  background: rgba(255, 253, 248, 0.8);
}

.result-screen {
  padding-bottom: 70px;
  background:
    radial-gradient(circle at 85% 0, rgba(221, 255, 114, 0.33), transparent 25rem),
    radial-gradient(circle at 0 38%, rgba(185, 205, 251, 0.22), transparent 25rem),
    var(--paper);
}

.result-header {
  border-bottom-color: var(--line);
}

.result-badge {
  color: var(--ink);
  background: var(--lime);
}

.result-main {
  padding-top: 52px;
}

.result-hero {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 30px;
  align-items: center;
  padding-bottom: 46px;
}

.result-heading > p {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 13px;
}

.result-heading h1 {
  font-size: clamp(58px, 10vw, 124px);
}

.result-heading h2 {
  max-width: 700px;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 2.3vw, 25px);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: -0.025em;
}

.result-emblem {
  position: relative;
  width: min(280px, 70vw);
  aspect-ratio: 1;
  justify-self: end;
  background: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  box-shadow: 10px 10px 0 var(--coral);
}

.result-emblem::before,
.result-emblem::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.result-emblem::before {
  inset: 15%;
  border: 1px dashed rgba(255, 253, 248, 0.7);
  animation: spin 22s linear infinite;
}

.result-emblem::after {
  inset: 33%;
  background: var(--lime);
}

.result-emblem span {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  color: var(--ink);
  font-family: var(--display);
  font-size: 54px;
  font-weight: 900;
  line-height: 1;
  transform: translate(-50%, -52%);
}

.result-emblem i {
  position: absolute;
  top: 16%;
  right: 14%;
  width: 16px;
  height: 16px;
  background: var(--coral);
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.result-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  border: 1.5px solid var(--ink);
  border-radius: 25px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}

.result-story,
.score-panel {
  padding: clamp(24px, 4vw, 42px);
}

.story-label,
.panel-heading span {
  color: var(--muted);
  font-family: var(--display);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.result-story > p {
  max-width: 760px;
  margin: 22px 0 24px;
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.85;
  letter-spacing: -0.015em;
}

.result-story blockquote {
  margin: 0;
  padding: 17px 19px;
  background: var(--paper);
  border-left: 4px solid var(--coral);
  border-radius: 0 12px 12px 0;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.7;
}

.keyword-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 22px;
}

.keyword-row span {
  padding: 7px 10px;
  background: var(--lime);
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}

.score-panel {
  background: #e9e3d7;
  border-left: 1.5px solid var(--ink);
}

.panel-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 27px;
}

.panel-heading small {
  color: var(--muted);
  font-size: 9px;
}

.score-row {
  margin-bottom: 19px;
}

.score-row:last-child {
  margin-bottom: 0;
}

.score-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
}

.score-meta small {
  color: var(--muted);
  font-family: var(--display);
}

.score-track {
  height: 7px;
  overflow: hidden;
  background: rgba(23, 26, 28, 0.1);
  border-radius: 999px;
}

.score-track span {
  display: block;
  height: 100%;
  background: var(--ink);
  border-radius: inherit;
  transform-origin: left;
  animation: score-grow 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.score-row:nth-child(2) .score-track span {
  background: var(--coral);
}

.score-row:nth-child(3) .score-track span {
  background: var(--blue);
}

.score-row:nth-child(4) .score-track span {
  background: var(--lime-deep);
}

.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  margin-top: 13px;
}

.insight-card {
  display: grid;
  min-height: 170px;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 25px;
  color: var(--white);
  background: var(--ink);
  border-radius: 20px;
}

.insight-card-lime {
  color: var(--ink);
  background: var(--lime);
}

.insight-number {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 800;
}

.insight-card h3 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 800;
}

.insight-card p {
  margin: 0;
  color: rgba(255, 253, 248, 0.68);
  font-size: 13px;
  line-height: 1.75;
}

.insight-card-lime p {
  color: rgba(23, 26, 28, 0.7);
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.result-footnote {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 19, 20, 0.62);
  backdrop-filter: blur(9px);
  animation: fade-in 200ms ease-out both;
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  padding: 28px;
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 24px;
  box-shadow: 9px 9px 0 var(--coral);
  animation: modal-in 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.modal-close {
  position: absolute;
  top: 13px;
  right: 13px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.auth-icon {
  position: relative;
  display: grid;
  width: 62px;
  height: 62px;
  margin-bottom: 20px;
  place-items: center;
  background: var(--lime);
  border: 1.5px solid var(--ink);
  border-radius: 19px;
  transform: rotate(-5deg);
}

.auth-icon span {
  width: 22px;
  height: 17px;
  border: 2px solid var(--ink);
  border-radius: 5px;
}

.auth-icon span::before {
  display: block;
  width: 8px;
  height: 7px;
  margin: -10px auto 0;
  content: "";
  border: 2px solid var(--ink);
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
}

.auth-icon i {
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 13px;
  height: 13px;
  background: var(--coral);
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.modal-kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.auth-card h2,
.share-modal-card h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 29px;
  font-weight: 850;
  letter-spacing: -0.06em;
}

.modal-intro {
  margin: 10px 0 22px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.code-label {
  display: block;
  margin-bottom: 7px;
  font-size: 11px;
  font-weight: 700;
}

.code-field {
  display: grid;
  min-height: 54px;
  grid-template-columns: 24px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 0 13px;
  background: var(--paper);
  border: 1.5px solid var(--line-strong);
  border-radius: 13px;
  transition: border-color 160ms ease;
}

.code-field:focus-within {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(255, 121, 88, 0.14);
}

.code-field > span {
  font-family: var(--display);
  font-size: 21px;
}

.code-field input {
  width: 100%;
  min-width: 0;
  padding: 15px 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.code-field input::placeholder {
  color: #9c9c94;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}

.code-field small {
  color: var(--muted);
  font-family: var(--display);
  font-size: 9px;
}

.form-error {
  min-height: 18px;
  margin: 5px 0 0;
  color: #c83326;
  font-size: 10px;
}

.demo-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 7px 0 19px;
  padding: 9px 11px;
  background: rgba(221, 255, 114, 0.3);
  border: 1px dashed rgba(23, 26, 28, 0.3);
  border-radius: 10px;
  font-size: 10px;
}

.demo-code span {
  color: var(--muted);
}

.demo-code button {
  padding: 2px 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-submit {
  width: 100%;
}

.privacy-note {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}

.share-modal-card {
  width: min(100%, 420px);
}

.share-preview {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  margin: 19px 0;
  padding: 22px;
  color: var(--white);
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 121, 88, 0.65), transparent 30%),
    radial-gradient(circle at 13% 78%, rgba(185, 205, 251, 0.34), transparent 28%),
    var(--ink);
  border-radius: 19px;
  overflow: hidden;
}

.share-preview-top,
.share-preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
}

.share-preview-top span {
  font-weight: 750;
}

.share-preview-top small,
.share-preview-footer span {
  color: rgba(255, 253, 248, 0.54);
  font-family: var(--display);
  font-size: 7px;
  letter-spacing: 0.1em;
}

.share-preview > p {
  margin: auto 0 6px;
  color: var(--lime);
  font-size: 10px;
  font-weight: 700;
}

.share-preview > strong {
  font-family: var(--display);
  font-size: 45px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.08em;
}

.share-preview-subtitle {
  margin-top: 11px;
  color: rgba(255, 253, 248, 0.74);
  font-size: 11px;
  line-height: 1.6;
}

.share-preview-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 22px 0 18px;
}

.share-preview-signals span {
  padding: 5px 8px;
  color: var(--ink);
  background: var(--white);
  border-radius: 999px;
  font-size: 8px;
  font-weight: 700;
}

.share-preview-signals span:first-child {
  background: var(--lime);
}

.share-preview-footer {
  margin-top: auto;
}

.share-preview-footer i {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--ink);
  background: var(--lime);
  border-radius: 50%;
  font-size: 14px;
  font-style: normal;
}

.share-actions {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 8px;
}

.share-actions .primary-button,
.share-actions .secondary-button {
  min-height: 49px;
  padding-inline: 12px;
  font-size: 12px;
}

.share-status {
  min-height: 16px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.toast {
  position: fixed;
  z-index: 200;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  left: 16px;
  width: fit-content;
  max-width: calc(100% - 32px);
  margin-inline: auto;
  padding: 11px 15px;
  color: var(--white);
  background: var(--ink);
  border: 1px solid var(--lime);
  border-radius: 999px;
  box-shadow: 0 8px 30px rgba(23, 26, 28, 0.22);
  font-size: 11px;
  text-align: center;
  animation: toast-in 250ms ease-out both;
}

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

@keyframes spin-reverse {
  from {
    transform: rotate(22deg);
  }
  to {
    transform: rotate(-338deg);
  }
}

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

@keyframes card-next {
  from {
    opacity: 0;
    transform: translateX(22px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes card-prev {
  from {
    opacity: 0;
    transform: translateX(-22px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes option-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes score-grow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-block: 52px 64px;
  }

  .hero-copy {
    width: 100%;
  }

  .hero-visual {
    width: min(78vw, 410px);
    margin-top: 20px;
  }

  .stats-grid,
  .signal-grid {
    grid-template-columns: 1fr 1fr;
  }

  .result-preview {
    grid-template-columns: 0.85fr 1.15fr;
  }

  .mini-card {
    display: none;
  }

  .result-hero {
    grid-template-columns: 1fr 190px;
  }

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

  .score-panel {
    border-top: 1.5px solid var(--ink);
    border-left: 0;
  }
}

@media (max-width: 560px) {
  .ambient-grid {
    background-size: 22px 22px;
  }

  .page-width {
    width: calc(100% - 28px);
  }

  .site-header {
    min-height: 68px;
  }

  .brand-mark {
    width: 33px;
    height: 33px;
    border-radius: 10px;
  }

  .brand-copy strong {
    font-size: 13px;
  }

  .brand-copy small {
    font-size: 7px;
  }

  .local-note,
  .result-badge {
    padding: 7px 9px;
    font-size: 9px;
  }

  .hero {
    gap: 18px;
    padding-block: 34px 50px;
  }

  .eyebrow {
    max-width: 100%;
    margin-bottom: 17px;
    padding: 7px 10px;
    font-size: 9px;
    line-height: 1.4;
  }

  .hero h1 {
    font-size: clamp(54px, 17vw, 70px);
  }

  .hero-intro {
    margin: 21px 0 23px;
    font-size: 13px;
    line-height: 1.85;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .primary-button {
    width: 100%;
  }

  .primary-button,
  .secondary-button,
  .resume-button {
    min-height: 50px;
    font-size: 13px;
  }

  .micro-copy {
    margin-top: 13px;
    font-size: 9px;
  }

  .hero-visual {
    width: min(82vw, 350px);
    margin-top: 14px;
  }

  .floating-note {
    padding: 6px 10px;
    font-size: 9px;
  }

  .stats-grid {
    width: 100%;
  }

  .stat-card {
    min-height: 143px;
    padding: 16px;
  }

  .stat-index {
    margin-bottom: 27px;
    font-size: 8px;
  }

  .stat-card strong {
    font-size: clamp(20px, 6vw, 24px);
  }

  .stat-card p {
    margin-top: 6px;
    font-size: 10px;
    line-height: 1.5;
  }

  .section-block {
    padding-block: 68px;
  }

  .section-heading {
    margin-bottom: 26px;
  }

  .section-heading h2,
  .closing-cta h2 {
    font-size: clamp(34px, 10.5vw, 44px);
  }

  .section-heading > p:last-child {
    margin-top: 12px;
    font-size: 12px;
  }

  .signal-grid {
    gap: 8px;
  }

  .signal-card {
    min-height: 203px;
    padding: 15px;
    border-radius: 15px;
  }

  .signal-symbol {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }

  .signal-card h3 {
    font-size: 24px;
  }

  .signal-card p {
    font-size: 10px;
  }

  .archetype-section {
    padding-top: 8px;
  }

  .archetype-marquee {
    gap: 6px;
    margin-bottom: 18px;
  }

  .archetype-marquee span {
    padding: 7px 9px;
    font-size: 9px;
  }

  .result-preview {
    min-height: 510px;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 27px 22px;
    border-radius: 22px;
  }

  .preview-orbit {
    width: 190px;
    justify-self: center;
  }

  .preview-copy h3 {
    font-size: 35px;
  }

  .preview-copy p {
    font-size: 11px;
  }

  .closing-cta {
    align-items: stretch;
    flex-direction: column;
    padding-block: 51px 64px;
  }

  .closing-cta .primary-button {
    width: 100%;
  }

  .site-footer {
    gap: 10px;
    flex-direction: column;
    padding-top: 18px;
  }

  .quiz-screen {
    min-height: 540px;
    padding-inline: 12px;
  }

  .progress-wrap {
    padding-top: 6px;
  }

  .quiz-stage {
    padding-block: 6px 8px;
  }

  .question-card {
    padding: 16px 14px;
    box-shadow: 5px 6px 0 rgba(23, 26, 28, 0.12);
  }

  .question-copy {
    padding-block: 18px 16px;
  }

  .question-copy h2 {
    font-size: clamp(23px, 7.1vw, 27px);
    line-height: 1.43;
  }

  .option-item {
    grid-template-columns: 27px 1fr 18px;
    gap: 8px;
    min-height: 50px;
    padding: 8px 10px;
    border-radius: 12px;
  }

  .option-marker {
    width: 26px;
    height: 26px;
    border-radius: 8px;
  }

  .option-text {
    font-size: 12px;
    line-height: 1.45;
  }

  .option-check {
    width: 17px;
    height: 17px;
  }

  .result-main {
    padding-top: 34px;
  }

  .result-hero {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .result-heading h1 {
    font-size: clamp(55px, 17vw, 76px);
  }

  .result-heading h2 {
    font-size: 16px;
  }

  .result-emblem {
    width: 155px;
    justify-self: start;
    box-shadow: 7px 7px 0 var(--coral);
  }

  .result-emblem span {
    font-size: 36px;
  }

  .result-layout {
    border-radius: 20px;
  }

  .result-story,
  .score-panel {
    padding: 22px 18px;
  }

  .result-story > p {
    margin: 16px 0 18px;
    font-size: 15px;
    line-height: 1.8;
  }

  .result-story blockquote {
    padding: 14px;
    font-size: 12px;
  }

  .action-grid {
    grid-template-columns: 1fr;
  }

  .insight-card {
    min-height: 148px;
    padding: 20px;
  }

  .result-actions {
    display: grid;
    grid-template-columns: 1fr 0.72fr;
  }

  .result-actions .primary-button,
  .result-actions .secondary-button {
    min-height: 51px;
    padding-inline: 11px;
    font-size: 12px;
  }

  .modal {
    align-items: end;
    padding: 10px;
  }

  .modal-card {
    width: 100%;
    max-height: calc(100dvh - 20px);
    padding: 24px 19px;
    border-radius: 23px;
    box-shadow: 6px 6px 0 var(--coral);
  }

  .auth-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 17px;
  }

  .auth-card h2,
  .share-modal-card h2 {
    font-size: 27px;
  }

  .modal-intro {
    margin-bottom: 18px;
  }

  .share-preview {
    min-height: 360px;
  }

  .share-preview > strong {
    font-size: 40px;
  }
}

@media (max-width: 340px) {
  .quiz-screen {
    min-height: 520px;
    padding-inline: 9px;
  }

  .quiz-header {
    min-height: 38px;
  }

  .progress-wrap {
    padding-bottom: 7px;
  }

  .question-card {
    padding: 13px 11px;
  }

  .question-meta {
    font-size: 9px;
  }

  .question-copy {
    padding-block: 13px 12px;
  }

  .question-copy h2 {
    font-size: 22px;
    line-height: 1.4;
  }

  .question-copy p {
    margin-top: 7px;
    font-size: 10px;
  }

  .options-list {
    gap: 6px;
  }

  .option-item {
    min-height: 48px;
    padding: 7px 8px;
  }

  .option-text {
    font-size: 11px;
  }

  .quiz-actions {
    min-height: 51px;
    gap: 7px;
  }

  .quiz-actions .primary-button,
  .quiz-actions .secondary-button {
    min-height: 50px;
    padding-inline: 8px;
    font-size: 11px;
  }

  .hero h1 {
    font-size: 57px;
  }

  .stat-card {
    padding: 13px;
  }

  .stat-card strong {
    font-size: 19px;
  }

  .signal-card {
    min-height: 195px;
    padding: 12px;
  }

  .signal-symbol {
    width: 42px;
    height: 42px;
  }

  .signal-card h3 {
    font-size: 22px;
  }
}

@media (max-height: 670px) {
  .quiz-header {
    min-height: 36px;
  }

  .progress-wrap {
    padding-block: 3px 5px;
  }

  .quiz-stage {
    padding-block: 4px 5px;
  }

  .question-card {
    padding: 12px;
  }

  .question-copy {
    padding-block: 10px;
  }

  .question-copy h2 {
    font-size: 21px;
    line-height: 1.38;
  }

  .question-copy p {
    display: none;
  }

  .options-list {
    gap: 5px;
  }

  .option-item {
    min-height: 45px;
    padding-block: 6px;
  }

  .quiz-actions {
    min-height: 48px;
  }

  .quiz-actions .primary-button,
  .quiz-actions .secondary-button {
    min-height: 47px;
  }
}

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