:root {
  --paper: #f4f0e8;
  --paper-deep: #ebe4d9;
  --card: rgba(255, 253, 248, 0.82);
  --ink: #18202a;
  --muted: #66707b;
  --line: rgba(24, 32, 42, 0.12);
  --line-strong: rgba(24, 32, 42, 0.22);
  --coral: #df6a55;
  --navy: #16283c;
  --lime: #c9dc78;
  --white: #fffdf8;
  --shadow: 0 24px 70px rgba(39, 37, 32, 0.11);
  --shadow-small: 0 12px 34px rgba(39, 37, 32, 0.09);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --serif: "Source Han Serif SC", "Noto Serif CJK SC", "STZhongsong", "Songti SC", "SimSun", serif;
  --sans: "MiSans", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(rgba(24, 32, 42, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 32, 42, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
  font-family: var(--sans);
  font-weight: 500;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid rgba(22, 40, 60, 0.28); outline-offset: 3px; }

.ambient {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(4px);
  opacity: 0.85;
}

.ambient-one {
  top: -20vw;
  right: -12vw;
  width: 52vw;
  height: 52vw;
  background: radial-gradient(circle, rgba(223, 106, 85, 0.18), rgba(223, 106, 85, 0) 70%);
}

.ambient-two {
  bottom: -22vw;
  left: -18vw;
  width: 58vw;
  height: 58vw;
  background: radial-gradient(circle, rgba(77, 107, 99, 0.15), rgba(77, 107, 99, 0) 72%);
}

.app-shell { width: 100%; min-height: 100vh; }
.screen { display: none; min-height: 100vh; }
.screen.is-active { display: block; animation: screen-in 0.52s cubic-bezier(0.22, 1, 0.36, 1) both; }

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

.screen-home { padding: 24px clamp(22px, 5vw, 76px) 44px; }
.home-nav, .result-nav { display: flex; align-items: center; justify-content: space-between; max-width: 1360px; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 21px;
  font-style: italic;
}

.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; font-weight: 700; letter-spacing: 0.02em; }
.brand small { margin-top: 3px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; letter-spacing: 0.15em; }
.edition-pill { padding: 8px 13px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); font-size: 12px; letter-spacing: 0.08em; }

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  align-items: center;
  gap: clamp(40px, 7vw, 120px);
  max-width: 1360px;
  min-height: min(760px, calc(100vh - 110px));
  margin: 20px auto 70px;
  padding: 60px 0 30px;
}

.eyebrow { margin: 0 0 16px; color: var(--coral); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.hero-copy h1 { max-width: 820px; margin: 0; font-family: var(--serif); font-size: clamp(46px, 6.1vw, 88px); font-weight: 700; letter-spacing: -0.06em; line-height: 1.08; }
.hero-copy h1 em { position: relative; color: var(--navy); font-style: normal; white-space: nowrap; }

.hero-copy h1 em::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 4px;
  height: 7px;
  background: var(--lime);
  content: "";
  opacity: 0.82;
  transform: rotate(-1deg);
  z-index: -1;
}

.hero-lead { max-width: 610px; margin: 32px 0 0; color: #505a65; font-size: clamp(16px, 1.5vw, 20px); font-weight: 500; line-height: 1.85; }
.hero-actions { display: flex; align-items: center; gap: 20px; margin-top: 38px; }
.primary-button, .outline-button { display: inline-flex; align-items: center; justify-content: center; gap: 28px; min-height: 56px; border-radius: 999px; cursor: pointer; transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease; }
.primary-button { padding: 0 28px; border: 1px solid var(--ink); color: var(--white); background: var(--ink); box-shadow: 0 13px 28px rgba(24, 32, 42, 0.18); font-weight: 700; }
.primary-button:hover { background: #263446; box-shadow: 0 17px 34px rgba(24, 32, 42, 0.24); transform: translateY(-2px); }
.primary-button:active, .outline-button:active { transform: translateY(0) scale(0.99); }
.outline-button { padding: 0 22px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.34); }
.outline-button:hover { background: rgba(255, 255, 255, 0.72); }
.outline-button.compact { min-height: 42px; padding: 0 18px; font-size: 13px; }
.time-note { color: var(--muted); font-size: 13px; }
.hero-metrics { display: flex; gap: clamp(24px, 4vw, 52px); margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-metrics div { display: flex; align-items: baseline; gap: 8px; }
.hero-metrics strong { font-family: Georgia, var(--serif); font-size: 28px; font-weight: 700; }
.hero-metrics span { color: var(--muted); font-size: 12px; }

.hero-visual { position: relative; width: min(100%, 600px); aspect-ratio: 1; margin: 0 auto; }
.orbit { position: absolute; border: 1px solid var(--line-strong); border-radius: 50%; }
.orbit::before, .orbit::after { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--navy); content: ""; }
.orbit-a { inset: 8%; animation: orbit-spin 34s linear infinite; }
.orbit-a::before { top: 15%; left: 6%; }
.orbit-a::after { right: 1%; bottom: 30%; background: var(--coral); }
.orbit-b { inset: 22%; border-style: dashed; animation: orbit-spin-reverse 28s linear infinite; }
.orbit-b::before { top: -5px; right: 45%; background: var(--lime); }
.orbit-b::after { bottom: 10%; left: 8%; background: var(--coral); }

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

.hero-seal { position: absolute; top: 50%; left: 50%; display: grid; width: 145px; height: 145px; place-content: center; border-radius: 50%; color: var(--white); background: var(--navy); box-shadow: 0 25px 65px rgba(22, 40, 60, 0.24); text-align: center; transform: translate(-50%, -50%); }
.hero-seal span { color: rgba(255, 255, 255, 0.7); font-size: 12px; letter-spacing: 0.22em; }
.hero-seal strong { margin: 5px 0; font-family: var(--serif); font-size: 24px; font-weight: 700; }
.hero-orbit-label { position: absolute; z-index: 2; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 253, 248, 0.78); box-shadow: 0 7px 18px rgba(39, 37, 32, 0.07); backdrop-filter: blur(8px); font-size: 12px; font-weight: 700; }
.label-i { top: 5%; left: 20%; color: #5369c0; }
.label-c { top: 18%; right: 0; color: #c95742; }
.label-r { right: 3%; bottom: 18%; color: #bd6687; }
.label-d { bottom: 4%; left: 34%; color: #ae781b; }
.label-s { bottom: 20%; left: 1%; color: #3e7567; }
.label-e { top: 21%; left: 3%; color: #687687; }

.type-section { max-width: 1360px; margin: 0 auto; padding: 72px 0; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.section-heading .eyebrow { margin-bottom: 8px; }
.section-heading h2, .manifesto-card h2 { margin: 0; font-family: var(--serif); font-size: clamp(30px, 3.5vw, 48px); font-weight: 700; letter-spacing: -0.04em; }
.section-heading > p { max-width: 380px; margin: 0 0 6px; color: var(--muted); font-size: 14px; font-weight: 500; line-height: 1.75; }
.type-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

.type-card { position: relative; min-height: 245px; padding: 24px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255, 253, 248, 0.64); box-shadow: 0 8px 30px rgba(39, 37, 32, 0.045); transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease; }
.type-card:hover { border-color: rgba(var(--accent-rgb), 0.45); box-shadow: var(--shadow-small); transform: translateY(-4px); }
.type-card::after { position: absolute; right: -35px; bottom: -45px; width: 150px; height: 150px; border: 1px solid rgba(var(--accent-rgb), 0.25); border-radius: 50%; background: rgba(var(--accent-rgb), 0.08); content: ""; }
.type-card-top { display: flex; align-items: center; justify-content: space-between; }
.type-code { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 15px; color: var(--white); background: var(--accent); font-family: Georgia, serif; font-size: 23px; font-style: italic; }
.type-card-index { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; letter-spacing: 0.12em; }
.type-card h3 { margin: 34px 0 9px; font-family: var(--serif); font-size: 25px; font-weight: 700; }
.type-card p { max-width: 320px; margin: 0; color: var(--muted); font-size: 14px; font-weight: 500; line-height: 1.7; }
.type-card-tag { display: inline-block; margin-top: 20px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 0.05em; }

.manifesto-card { display: grid; grid-template-columns: 150px 1fr auto; align-items: center; gap: 40px; max-width: 1360px; margin: 20px auto 72px; padding: clamp(30px, 5vw, 66px); border-radius: var(--radius-xl); color: var(--white); background: radial-gradient(circle at 82% 20%, rgba(201, 220, 120, 0.16), transparent 28%), var(--navy); box-shadow: var(--shadow); }
.manifesto-index { align-self: start; color: rgba(255, 255, 255, 0.54); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; letter-spacing: 0.15em; }
.manifesto-card blockquote { margin: 0; font-family: var(--serif); font-size: clamp(24px, 3vw, 41px); line-height: 1.55; }
.manifesto-card > p { max-width: 220px; margin: 0; color: rgba(255, 255, 255, 0.58); font-size: 13px; line-height: 1.8; }
.site-footer { display: flex; justify-content: space-between; gap: 30px; max-width: 1360px; margin: 60px auto 0; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.7; }
.site-footer p { margin: 0; }

/* Quiz */
.screen-quiz { min-height: 100svh; padding-bottom: env(safe-area-inset-bottom); background: rgba(244, 240, 232, 0.72); }
.quiz-header { position: sticky; top: 0; z-index: 10; display: grid; grid-template-columns: 48px minmax(0, 360px) 48px; align-items: center; justify-content: space-between; gap: 18px; min-height: 76px; padding: 12px max(22px, calc((100vw - 980px) / 2)); border-bottom: 1px solid var(--line); background: rgba(244, 240, 232, 0.86); backdrop-filter: blur(18px); }
.icon-button { display: grid; width: 44px; height: 44px; padding: 0; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: rgba(255, 255, 255, 0.5); cursor: pointer; font-size: 25px; line-height: 1; }
.quiz-progress-copy { display: flex; align-items: center; gap: 16px; }
.quiz-progress-copy > span { min-width: 64px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; }
.progress-track { width: 100%; height: 3px; overflow: hidden; border-radius: 999px; background: rgba(24, 32, 42, 0.1); }
.progress-fill { width: 3.33%; height: 100%; border-radius: inherit; background: var(--coral); transition: width 350ms cubic-bezier(0.22, 1, 0.36, 1); }
.quiz-mark { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; font-family: Georgia, serif; font-style: italic; }
.quiz-stage { width: min(900px, calc(100% - 44px)); margin: 0 auto; padding: clamp(44px, 7vh, 84px) 0 38px; }
.question-meta { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; letter-spacing: 0.16em; }
.question-rule { flex: 1; height: 1px; background: var(--line); }
#question-title { max-width: 780px; min-height: 1.6em; margin: 0; font-family: var(--serif); font-size: clamp(29px, 4.3vw, 48px); font-weight: 650; letter-spacing: -0.035em; line-height: 1.45; }
.question-helper { margin: 13px 0 34px; color: var(--muted); font-size: 13px; }
.option-list { display: grid; gap: 11px; }

.option-button {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 72px;
  padding: 12px 18px 12px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.68);
  box-shadow: 0 5px 18px rgba(39, 37, 32, 0.03);
  cursor: pointer;
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
  animation: option-in 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.option-button:nth-child(2) { animation-delay: 35ms; }
.option-button:nth-child(3) { animation-delay: 70ms; }
.option-button:nth-child(4) { animation-delay: 105ms; }
.option-button:nth-child(5) { animation-delay: 140ms; }
.option-button:nth-child(6) { animation-delay: 175ms; }
@keyframes option-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.option-button:hover { border-color: rgba(24, 32, 42, 0.27); background: var(--white); box-shadow: var(--shadow-small); transform: translateY(-2px); }
.option-letter { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); font-family: Georgia, serif; font-size: 16px; transition: all 160ms ease; }
.option-copy { font-size: clamp(14px, 1.4vw, 16px); font-weight: 650; line-height: 1.55; }
.option-arrow { color: var(--muted); font-size: 18px; opacity: 0; transform: translateX(-5px); transition: all 160ms ease; }
.option-button:hover .option-arrow { opacity: 1; transform: translateX(0); }
.option-button.is-selected { border-color: var(--navy); background: var(--navy); color: var(--white); box-shadow: 0 16px 34px rgba(22, 40, 60, 0.2); }
.option-button.is-selected .option-letter { border-color: rgba(255, 255, 255, 0.28); color: var(--navy); background: var(--lime); }
.option-button.is-selected .option-arrow { color: var(--white); opacity: 1; transform: translateX(0); }
.quiz-footer { display: flex; align-items: center; justify-content: space-between; width: min(900px, calc(100% - 44px)); margin: 0 auto; padding: 12px 0 30px; color: var(--muted); font-size: 11px; }
.text-button { padding: 5px 0; border: 0; color: inherit; background: transparent; cursor: pointer; }
.text-button:disabled { cursor: not-allowed; opacity: 0.3; }

/* Loading */
.screen-loading { place-items: center; min-height: 100svh; padding: 30px; text-align: center; }
.screen-loading.is-active { display: grid; }
.loading-orbit { position: relative; display: grid; width: 150px; height: 150px; place-items: center; margin-bottom: 35px; border: 1px solid var(--line-strong); border-radius: 50%; animation: orbit-spin 8s linear infinite; }
.loading-orbit::before { position: absolute; top: 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); content: ""; }
.loading-orbit span { display: grid; width: 76px; height: 76px; place-items: center; border-radius: 50%; color: var(--white); background: var(--navy); font-family: Georgia, serif; font-size: 31px; font-style: italic; animation: orbit-spin-reverse 8s linear infinite; }
.screen-loading h2 { margin: 0; font-family: var(--serif); font-size: clamp(29px, 4vw, 46px); font-weight: 700; }
.screen-loading > p:not(.eyebrow) { max-width: 460px; margin: 14px auto 28px; color: var(--muted); line-height: 1.7; }
.loading-dots { display: flex; justify-content: center; gap: 7px; }
.loading-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--navy); animation: dot-pulse 1s ease-in-out infinite; }
.loading-dots i:nth-child(2) { animation-delay: 0.14s; }
.loading-dots i:nth-child(3) { animation-delay: 0.28s; }
@keyframes dot-pulse { 0%, 100% { opacity: 0.25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-7px); } }

/* Result */
.screen-result { padding: 24px clamp(22px, 5vw, 76px) 50px; background: radial-gradient(circle at 85% 8%, rgba(201, 220, 120, 0.18), transparent 24%), rgba(244, 240, 232, 0.75); }
.brand-button { padding: 0; border: 0; background: transparent; cursor: pointer; text-align: left; }
#result-content { max-width: 1360px; margin: 0 auto; }
.result-hero { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr); align-items: stretch; gap: 18px; margin: 56px 0 18px; }

.primary-card {
  position: relative;
  min-height: 510px;
  padding: clamp(34px, 5vw, 64px);
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  border-radius: var(--radius-xl);
  color: var(--white);
  background: radial-gradient(circle at 86% 16%, rgba(255, 255, 255, 0.18), transparent 30%), var(--accent);
  box-shadow: 0 30px 80px rgba(var(--accent-rgb), 0.24);
}

.primary-card::before { position: absolute; right: -100px; bottom: -140px; width: 430px; height: 430px; border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 50%; content: ""; }
.primary-card::after { position: absolute; right: 25px; bottom: -90px; width: 280px; height: 280px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 50%; content: ""; }
.result-kicker { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.result-kicker .eyebrow { margin: 0; color: rgba(255, 255, 255, 0.65); }
.result-score-pill { padding: 8px 12px; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 999px; background: rgba(255, 255, 255, 0.1); font-size: 11px; }
.primary-type { position: relative; z-index: 1; display: flex; align-items: center; gap: 20px; margin-top: 68px; }
.primary-letter { display: grid; width: 82px; height: 82px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(255, 255, 255, 0.38); border-radius: 24px; color: var(--accent); background: var(--white); font-family: Georgia, serif; font-size: 42px; font-style: italic; }
.primary-type h2 { margin: 0; font-family: var(--serif); font-size: clamp(43px, 5.4vw, 72px); font-weight: 700; letter-spacing: -0.06em; line-height: 1; }
.primary-alias { display: block; margin-top: 9px; color: rgba(255, 255, 255, 0.68); font-size: 14px; letter-spacing: 0.1em; }
.primary-card > p { position: relative; z-index: 1; max-width: 670px; margin: 44px 0 0; color: rgba(255, 255, 255, 0.9); font-family: var(--serif); font-size: clamp(18px, 2vw, 24px); font-weight: 600; line-height: 1.75; }
.primary-keyword { position: relative; z-index: 1; display: inline-block; margin-top: 34px; padding-bottom: 4px; border-bottom: 2px solid var(--lime); font-size: 13px; font-weight: 700; }

.secondary-card, .radar-card, .report-card, .combo-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow-small); backdrop-filter: blur(12px); }
.secondary-card { position: relative; display: flex; min-height: 510px; flex-direction: column; justify-content: space-between; padding: clamp(28px, 4vw, 48px); overflow: hidden; }
.secondary-card .eyebrow { color: var(--muted); }
.secondary-card h3 { margin: 25px 0 12px; font-family: var(--serif); font-size: clamp(29px, 3.2vw, 42px); font-weight: 700; letter-spacing: -0.04em; }
.secondary-card > p { margin: 0; color: var(--muted); line-height: 1.8; }
.secondary-reveal { position: relative; z-index: 1; }
.secondary-reveal .secondary-letter { display: grid; width: 74px; height: 74px; place-items: center; border-radius: 22px; color: var(--white); background: var(--secondary-accent); font-family: Georgia, serif; font-size: 36px; font-style: italic; }
.secondary-reveal h3 { margin-top: 28px; }
.secondary-reveal .secondary-alias { margin: 8px 0 0; color: var(--secondary-accent); font-weight: 700; }
.secondary-reveal blockquote { margin: 28px 0 0; padding-left: 18px; border-left: 3px solid var(--secondary-accent); color: #4c5660; font-family: var(--serif); font-size: 19px; line-height: 1.7; }

.result-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr); gap: 18px; margin-top: 18px; }
.radar-card { min-height: 540px; padding: clamp(25px, 3.5vw, 42px); }
.card-heading { display: flex; align-items: start; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.card-heading .eyebrow { margin-bottom: 8px; }
.card-heading h3 { margin: 0; font-family: var(--serif); font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; letter-spacing: -0.03em; }
.card-heading > span { color: var(--muted); font-size: 11px; white-space: nowrap; }
.radar-wrap { display: grid; min-height: 415px; place-items: center; }
.radar-svg { width: min(100%, 560px); height: auto; overflow: visible; }
.radar-grid { fill: rgba(24, 32, 42, 0.018); stroke: rgba(24, 32, 42, 0.13); stroke-width: 1; }
.radar-axis { stroke: rgba(24, 32, 42, 0.1); stroke-width: 1; }

.radar-shape {
  fill: rgba(var(--accent-rgb), 0.22);
  stroke: var(--accent);
  stroke-width: 2.4;
  stroke-linejoin: round;
  opacity: 0;
  transform-origin: 260px 220px;
  animation: radar-in 0.9s 0.15s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes radar-in { from { opacity: 0; transform: scale(0.3); } to { opacity: 1; transform: scale(1); } }
.radar-dot { fill: var(--white); stroke: var(--accent); stroke-width: 2.5; }
.radar-label-code { fill: var(--ink); font-family: Georgia, serif; font-size: 17px; font-style: italic; font-weight: 700; }
.radar-label-name { fill: #67717c; font-family: var(--sans); font-size: 11px; }
.bar-grid { display: grid; align-content: center; gap: 30px; padding: 18px 8px; }
.bar-item { display: grid; grid-template-columns: 76px 1fr 52px; align-items: center; gap: 13px; }
.bar-name strong, .bar-name span { display: block; }
.bar-name strong { font-family: var(--serif); font-size: 16px; font-weight: 700; }
.bar-name span { margin-top: 2px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; }
.bar-track { height: 8px; overflow: hidden; border-radius: 999px; background: rgba(24, 32, 42, 0.08); }
.bar-fill { width: 0; height: 100%; border-radius: inherit; background: var(--bar-color); animation: bar-in 0.95s 0.18s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
@keyframes bar-in { to { width: var(--bar-width); } }
.bar-value { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; text-align: right; }
.result-note { margin: 22px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }

.report-section { margin-top: 72px; }
.report-section-header { display: grid; grid-template-columns: 110px 1fr auto; align-items: baseline; gap: 22px; margin-bottom: 28px; padding-bottom: 18px; border-bottom: 1px solid var(--line-strong); }
.report-section-header > span { color: var(--coral); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; }
.report-section-header h2 { margin: 0; font-family: var(--serif); font-size: clamp(29px, 3.2vw, 43px); font-weight: 700; letter-spacing: -0.04em; }
.report-section-header p { max-width: 360px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.insight-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.report-card { min-height: 230px; padding: 28px; }
.report-card.wide { grid-column: span 2; }
.report-card-number { display: block; color: var(--accent); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; }
.report-card h3 { margin: 38px 0 15px; font-family: var(--serif); font-size: 23px; font-weight: 700; }
.report-card p { margin: 0; color: #53606c; font-size: 14px; font-weight: 500; line-height: 1.85; }
.report-card ul { display: grid; gap: 9px; margin: 0; padding: 0; color: #53606c; font-size: 14px; font-weight: 500; line-height: 1.7; list-style: none; }
.report-card li { position: relative; padding-left: 17px; }
.report-card li::before { position: absolute; top: 0.72em; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); content: ""; }

.combo-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 42px;
  min-height: 360px;
  padding: clamp(32px, 5vw, 64px);
  overflow: hidden;
  color: var(--white);
  background: radial-gradient(circle at 92% 12%, rgba(var(--secondary-rgb), 0.5), transparent 31%), var(--navy);
}

.combo-card::before { position: absolute; top: -160px; left: -80px; width: 420px; height: 420px; border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 50%; content: ""; }
.combo-identity { position: relative; z-index: 1; }
.combo-identity .eyebrow { color: var(--lime); }
.combo-code { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px; padding: 8px 12px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 999px; color: rgba(255, 255, 255, 0.68); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; letter-spacing: 0.14em; }
.combo-card h2 { margin: 0; font-family: var(--serif); font-size: clamp(37px, 4.6vw, 62px); font-weight: 700; letter-spacing: -0.055em; }
.combo-card h2 span { display: block; margin-top: 12px; color: rgba(255, 255, 255, 0.48); font-size: 0.35em; letter-spacing: 0.14em; }
.combo-story { position: relative; z-index: 1; align-self: center; padding-left: 35px; border-left: 1px solid rgba(255, 255, 255, 0.18); }
.combo-story blockquote { margin: 0 0 28px; color: rgba(255, 255, 255, 0.92); font-family: var(--serif); font-size: clamp(20px, 2.4vw, 29px); font-weight: 600; line-height: 1.65; }
.combo-story p { margin: 0; color: rgba(255, 255, 255, 0.58); font-size: 13px; line-height: 1.8; }
.work-grid, .action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.action-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.action-card { min-height: 205px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255, 253, 248, 0.66); }
.action-card span { color: var(--accent); font-family: Georgia, serif; font-size: 27px; font-style: italic; }
.action-card h3 { margin: 31px 0 12px; font-family: var(--serif); font-size: 19px; }
.action-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }

.result-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 34px; }
.result-actions .primary-button, .result-actions .outline-button { min-height: 50px; }
.result-footer { margin-top: 55px; }

.toast { position: fixed; z-index: 200; bottom: max(24px, env(safe-area-inset-bottom)); left: 50%; max-width: min(90vw, 520px); padding: 12px 18px; border-radius: 999px; color: var(--white); background: rgba(24, 32, 42, 0.94); box-shadow: var(--shadow-small); font-size: 13px; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity 0.22s ease, transform 0.22s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.type-code-lockup { display: flex; align-items: center; gap: 8px; }
.type-code-english { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; font-weight: 800; letter-spacing: 0.08em; white-space: nowrap; }
.primary-code-lockup { display: flex; align-items: center; gap: 10px; }
.primary-english { color: rgba(255, 255, 255, 0.72); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: clamp(11px, 1.2vw, 14px); font-weight: 800; letter-spacing: 0.12em; white-space: nowrap; }
.secondary-code-lockup { display: flex; align-items: center; gap: 10px; }
.secondary-english { color: var(--secondary-accent); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; white-space: nowrap; }
.combo-code { max-width: 100%; flex-wrap: wrap; line-height: 1.7; }
.radar-label-code { font-size: 12.5px; letter-spacing: -0.02em; }
.bar-name span { white-space: nowrap; }
.bar-item { grid-template-columns: 112px 1fr 52px; }
@media (max-width: 1060px) {
  .hero-layout { grid-template-columns: 1fr; min-height: auto; padding-top: 70px; }
  .hero-copy { max-width: 820px; }
  .hero-visual { width: min(72vw, 520px); }
  .type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .manifesto-card { grid-template-columns: 1fr; gap: 20px; }
  .manifesto-card > p { max-width: 570px; }
  .result-hero, .result-grid { grid-template-columns: 1fr; }
  .secondary-card { min-height: 380px; }
  .action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .ambient-one, .ambient-two { width: 100vw; height: 100vw; }
  .screen-home, .screen-result { padding-right: 18px; padding-left: 18px; }
  .home-nav, .result-nav { padding-top: 2px; }
  .brand strong { font-size: 13px; }
  .brand small { font-size: 8px; }
  .brand-mark { width: 40px; height: 40px; }
  .hero-layout { gap: 42px; margin-bottom: 55px; padding-top: 56px; }
  .hero-copy h1 { font-size: clamp(39px, 11.5vw, 58px); letter-spacing: -0.065em; }
  .hero-copy h1 em { white-space: normal; }
  .hero-lead { margin-top: 25px; font-size: 16px; line-height: 1.72; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 12px; margin-top: 29px; }
  .primary-button { min-height: 54px; }
  .hero-metrics { justify-content: space-between; gap: 12px; margin-top: 38px; }
  .hero-metrics div { display: block; }
  .hero-metrics strong, .hero-metrics span { display: block; }
  .hero-metrics span { margin-top: 3px; }
  .hero-visual { width: min(100%, 430px); }
  .hero-seal { width: 118px; height: 118px; }
  .hero-seal strong { font-size: 20px; }
  .hero-orbit-label { padding: 6px 9px; font-size: 10px; }
  .type-section { padding: 54px 0; }
  .section-heading { align-items: start; flex-direction: column; gap: 10px; }
  .type-grid { grid-template-columns: 1fr; }
  .type-card { min-height: 220px; }
  .manifesto-card { margin-bottom: 52px; padding: 28px 24px; border-radius: 25px; }
  .manifesto-card blockquote { font-size: 24px; }
  .site-footer { flex-direction: column; gap: 8px; }
  .quiz-header { grid-template-columns: 42px 1fr 42px; min-height: 67px; gap: 12px; padding: 10px 16px; }
  .quiz-header .icon-button, .quiz-mark { width: 39px; height: 39px; }
  .quiz-stage { width: calc(100% - 32px); padding: 38px 0 25px; }
  #question-title { font-size: clamp(28px, 8.4vw, 40px); }
  .option-button { grid-template-columns: 42px 1fr 12px; min-height: 69px; gap: 12px; padding: 11px 13px 11px 11px; }
  .option-letter { width: 42px; height: 42px; }
  .quiz-footer { width: calc(100% - 32px); padding-bottom: max(24px, env(safe-area-inset-bottom)); }
  .result-nav { gap: 10px; }
  .result-nav .outline-button { min-height: 38px; padding: 0 13px; white-space: nowrap; }
  .result-hero { margin-top: 34px; }
  .primary-card { min-height: 500px; padding: 28px 24px; border-radius: 26px; }
  .primary-type { align-items: flex-start; flex-direction: column; margin-top: 48px; }
  .primary-letter { width: 68px; height: 68px; border-radius: 20px; font-size: 35px; }
  .primary-type h2 { font-size: 48px; }
  .primary-card > p { margin-top: 32px; font-size: 18px; }
  .secondary-card, .radar-card, .report-card, .combo-card { border-radius: 24px; }
  .radar-card { min-height: 450px; padding: 24px 14px; }
  .card-heading { padding: 0 10px; }
  .radar-wrap { min-height: 345px; }
  .bar-grid { gap: 23px; }
  .bar-item { grid-template-columns: 96px 1fr 43px; gap: 9px; }
  .report-section { margin-top: 55px; }
  .report-section-header { grid-template-columns: 1fr; gap: 7px; }
  .report-section-header p { max-width: none; }
  .insight-grid, .work-grid, .action-grid { grid-template-columns: 1fr; }
  .report-card.wide { grid-column: span 1; }
  .report-card { min-height: auto; }
  .report-card h3 { margin-top: 28px; }
  .combo-card { grid-template-columns: 1fr; gap: 34px; padding: 34px 25px; }
  .combo-story { padding-top: 25px; padding-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.18); border-left: 0; }
  .result-actions { align-items: stretch; flex-direction: column; }
  .result-actions button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

.result-hero + .combo-card { margin-top: 18px; }





/* Readability pass */
.brand small { font-size: 11px; }
.edition-pill, .type-card-tag, .hero-orbit-label, .primary-keyword { font-size: 13px; }
.eyebrow { font-size: 12.5px; letter-spacing: 0.16em; }
.hero-lead { font-size: clamp(17px, 1.5vw, 20px); }
.time-note { font-size: 14px; }
.hero-metrics span { font-size: 13px; }
.section-heading > p { font-size: 15px; }
.type-card-index { font-size: 11px; }
.type-code-english { font-size: 12px; }
.type-card p { font-size: 15px; line-height: 1.78; }
.manifesto-index { font-size: 12px; }
.manifesto-card > p { font-size: 14px; }
.site-footer { font-size: 13px; }
.quiz-progress-copy > span { font-size: 12px; }
.question-meta { font-size: 12px; }
.question-helper { font-size: 14px; }
.option-copy { font-size: clamp(16px, 1.45vw, 17px); }
.quiz-footer { font-size: 13px; }
.screen-loading > p:not(.eyebrow) { font-size: 15px; }
.result-score-pill { font-size: 12px; }
.primary-alias { font-size: 15px; }
.primary-english { font-size: clamp(12px, 1.2vw, 15px); }
.secondary-english { font-size: 13px; }
.secondary-reveal .secondary-alias { font-size: 14px; }
.secondary-reveal blockquote { font-size: 20px; }
.card-heading > span { font-size: 12px; }
.radar-label-code { font-size: 13.5px; }
.radar-label-name { font-size: 12.5px; }
.bar-name span { font-size: 12px; }
.bar-value { font-size: 12.5px; }
.result-note { font-size: 14px; }
.report-section-header > span { font-size: 12px; }
.report-section-header p { font-size: 14px; }
.report-card-number { font-size: 11px; }
.report-card p, .report-card ul { font-size: 15px; }
.report-card li { line-height: 1.8; }
.combo-code { font-size: 11px; letter-spacing: 0.08em; }
.combo-story p { font-size: 14px; }
.action-card p { font-size: 14px; }
.toast { font-size: 14px; }

@media (max-width: 760px) {
  .hero-lead { font-size: 17px; }
  .option-copy { font-size: 16px; }
  .card-heading > span { max-width: 132px; font-size: 12px; line-height: 1.5; text-align: right; white-space: normal; }
  .bar-name span { font-size: 11.5px; }
  .site-footer { font-size: 12.5px; }
}



/* Access gate */
.screen-access {
  min-height: 100svh;
  padding: 24px clamp(22px, 5vw, 76px) 36px;
  background:
    radial-gradient(circle at 84% 16%, rgba(201, 220, 120, 0.18), transparent 27%),
    radial-gradient(circle at 12% 86%, rgba(223, 106, 85, 0.12), transparent 30%),
    rgba(244, 240, 232, 0.78);
}
.access-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1360px;
  margin: 0 auto;
}
.access-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.72fr);
  align-items: center;
  gap: clamp(40px, 7vw, 110px);
  max-width: 1240px;
  min-height: min(760px, calc(100svh - 120px));
  margin: 20px auto 50px;
  padding: 46px 0 30px;
}
.access-copy h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(46px, 5.6vw, 78px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.13;
}
.access-copy h1 em {
  position: relative;
  display: inline-block;
  color: var(--navy);
  font-style: normal;
}
.access-copy h1 em::after {
  position: absolute;
  right: 2px;
  bottom: -5px;
  left: 3px;
  height: 8px;
  background: var(--lime);
  content: "";
  opacity: 0.86;
  transform: rotate(-0.8deg);
  z-index: -1;
}
.access-lead {
  max-width: 620px;
  margin: 28px 0 0;
  color: #4f5a65;
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 500;
  line-height: 1.85;
}
.access-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}
.access-points span {
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: #52606c;
  background: rgba(255, 253, 248, 0.62);
  font-size: 13px;
  font-weight: 700;
}
.access-quote {
  max-width: 570px;
  margin: 42px 0 0;
  padding-left: 20px;
  border-left: 3px solid var(--coral);
  color: #56616c;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.75;
}
.access-panel {
  width: 100%;
  max-width: 520px;
  justify-self: end;
}
.access-card {
  position: relative;
  padding: clamp(28px, 4vw, 44px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 30px;
  background: rgba(255, 253, 248, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.access-card::after {
  position: absolute;
  right: -90px;
  bottom: -110px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(22, 40, 60, 0.08);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.access-card .eyebrow {
  color: var(--coral);
}
.access-card h2 {
  max-width: 390px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(29px, 3vw, 39px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.3;
}
.access-card-intro {
  max-width: 400px;
  margin: 14px 0 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8;
}
.access-label {
  display: block;
  margin-bottom: 9px;
  color: #3f4a55;
  font-size: 13px;
  font-weight: 800;
}
.access-input-row {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 11px;
}
#access-code {
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  outline: 0;
  color: var(--ink);
  background: rgba(244, 240, 232, 0.72);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
#access-code::placeholder {
  color: #9aa1a8;
  font-size: 13px;
  letter-spacing: 0.04em;
}
#access-code:focus {
  border-color: var(--navy);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(22, 40, 60, 0.08);
}
#access-code[aria-invalid="true"] {
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(223, 106, 85, 0.1);
}
#access-code:disabled {
  cursor: wait;
  opacity: 0.7;
}
.access-submit {
  width: 100%;
  border: 0;
}
.access-submit:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}
.access-error {
  position: relative;
  z-index: 1;
  margin: 13px 0 0;
  color: #b84d3c;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}
.access-error[hidden] {
  display: none;
}
.access-panel-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
}
.access-lock {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
#access-purchase {
  color: var(--coral);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}
.access-demo {
  position: relative;
  z-index: 1;
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  color: #47635b;
  background: rgba(79, 125, 112, 0.09);
  font-size: 12px;
  font-weight: 600;
}
.access-demo[hidden] {
  display: none;
}
.access-demo strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.access-disclaimer {
  margin: 17px 10px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.65;
  text-align: center;
}
.access-footer {
  margin-top: 0;
}

@media (max-width: 980px) {
  .access-layout {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 66px;
  }
  .access-copy {
    max-width: 780px;
  }
  .access-panel {
    max-width: 620px;
    justify-self: stretch;
  }
}

@media (max-width: 760px) {
  .screen-access {
    padding-right: 18px;
    padding-left: 18px;
  }
  .access-layout {
    gap: 38px;
    margin-bottom: 46px;
    padding-top: 52px;
  }
  .access-copy h1 {
    font-size: clamp(39px, 11.5vw, 57px);
  }
  .access-lead {
    font-size: 17px;
  }
  .access-quote {
    margin-top: 32px;
    font-size: 18px;
  }
  .access-panel {
    max-width: none;
  }
  .access-card {
    padding: 28px 22px 24px;
    border-radius: 24px;
  }
  .access-panel-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  #access-purchase {
    text-align: left;
  }
  .access-footer {
    gap: 8px;
  }
}
