:root {
  color-scheme: dark;
  --ink: #f6f2e8;
  --ink-soft: #ded8ca;
  --muted: #a9a294;
  --night: #0b0e17;
  --night-2: #111524;
  --panel: #171c2c;
  --panel-2: #20263a;
  --paper: #f5f1e6;
  --paper-ink: #1c2230;
  --amber: #f0c069;
  --amber-deep: #d9a548;
  --rose: #e4688f;
  --red: #c44379;
  --line: rgba(240, 192, 105, 0.18);
  --line-strong: rgba(240, 192, 105, 0.52);
  --shadow: 0 28px 80px rgba(3, 6, 16, 0.5);
  --radius: 18px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--night);
  color: var(--ink);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--night); }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 80% 6%, rgba(240, 192, 105, 0.12), transparent 32rem),
    radial-gradient(circle at 6% 42%, rgba(228, 104, 143, 0.1), transparent 28rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.015) 25%, transparent 25%) 0 0 / 18px 18px,
    var(--night);
  color: var(--ink);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { overflow-wrap: anywhere; }
button:focus-visible, a:focus-visible, [tabindex="-1"]:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}
button:disabled { cursor: default; opacity: 0.45; }

.skip-link {
  position: fixed;
  left: 14px;
  top: 14px;
  z-index: 100;
  padding: 10px 14px;
  transform: translateY(-180%);
  border-radius: 8px;
  background: var(--amber);
  color: var(--night);
  font-weight: 800;
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  width: min(1180px, calc(100% - 40px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
.brand-lens {
  position: relative;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 4px solid var(--amber);
  border-radius: 50% 50% 7px 50%;
  transform: rotate(45deg);
}
.brand-lens::after {
  content: "";
  position: absolute;
  right: -8px;
  bottom: -8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px var(--night);
}
.brand b, .brand small { display: block; }
.brand b {
  color: var(--amber);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
}
.brand small { margin-top: 3px; font-size: 15px; font-weight: 750; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.case-number {
  color: var(--muted);
  font: 600 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.15em;
}
.icon-button {
  min-width: 42px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(23, 28, 44, 0.8);
  color: var(--ink);
  cursor: pointer;
  font: 700 17px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.icon-button:hover { border-color: var(--amber); color: var(--amber); }
.icon-button:active { transform: scale(0.96); }

.home-shell {
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100dvh - 72px);
  margin: 0 auto;
  padding: 42px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.86fr);
  grid-template-areas:
    "copy art"
    "steps steps"
    "brief brief";
  gap: 44px 68px;
  align-items: center;
}
.hero-copy { grid-area: copy; max-width: 660px; }
.case-kicker {
  margin: 0 0 18px;
  color: var(--muted);
  font: 700 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.14em;
}
.case-kicker span {
  display: inline-block;
  margin-right: 12px;
  padding: 5px 9px;
  background: var(--amber);
  color: var(--night);
  letter-spacing: 0.08em;
  transform: rotate(-1.5deg);
}
.hero-copy h1 {
  margin: 0;
  font-size: clamp(42px, 5.2vw, 70px);
  line-height: 1.1;
  letter-spacing: -0.055em;
  font-weight: 900;
}
.hero-copy h1 em { color: var(--amber); font-style: normal; }
.hero-intro {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.78;
}
.test-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 25px;
  margin: 24px 0;
  color: var(--muted);
  font-size: 13px;
}
.test-facts span { display: flex; align-items: baseline; gap: 6px; }
.test-facts b { color: var(--ink); font: 800 21px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.primary-button, .secondary-button {
  min-height: 54px;
  border-radius: 10px;
  padding: 14px 20px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}
.primary-button {
  border: 1px solid var(--amber);
  background: var(--amber);
  color: var(--night);
}
.secondary-button {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
}
.primary-button:hover { background: #f7d18c; }
.secondary-button:hover { border-color: var(--line-strong); }
.primary-button:active, .secondary-button:active { transform: translateY(1px) scale(0.99); }
.start-button {
  width: min(100%, 340px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  box-shadow: 0 14px 34px rgba(240, 192, 105, 0.16);
}
.microcopy { margin: 12px 0 0; color: var(--muted); font-size: 12px; }

.hero-evidence {
  grid-area: art;
  position: relative;
  width: min(100%, 478px);
  justify-self: end;
}
.evidence-tape {
  position: absolute;
  z-index: 3;
  left: -30px;
  right: -30px;
  top: 18px;
  overflow: hidden;
  padding: 8px 0;
  transform: rotate(-5deg);
  background: var(--amber);
  color: var(--night);
  font: 900 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.12em;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(3, 6, 16, 0.28);
}
.stage-frame {
  position: relative;
  margin: 0;
  padding: 16px 16px 52px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: rotate(-1.1deg);
}
.stage-frame::after {
  content: "SUBJECT / STAGE FILE";
  position: absolute;
  left: 20px;
  bottom: 18px;
  color: rgba(28, 34, 48, 0.55);
  font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.12em;
}
.stage-frame img {
  width: 100%;
  height: auto;
  border-radius: 3px;
  filter: saturate(0.98) contrast(1.02);
  animation: subject-entry 900ms cubic-bezier(.16, 1, .3, 1) both;
}
.scan-line {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 16px;
  height: 2px;
  background: rgba(228, 104, 143, 0.85);
  box-shadow: 0 0 16px rgba(228, 104, 143, 0.6);
  animation: scan 4.6s ease-in-out 2;
}
.corner {
  position: absolute;
  width: 34px;
  height: 34px;
  border-color: var(--red);
  border-style: solid;
  z-index: 2;
}
.corner-a { left: 8px; top: 8px; border-width: 3px 0 0 3px; }
.corner-b { right: 8px; bottom: 8px; border-width: 0 3px 3px 0; }
.evidence-caption {
  width: calc(100% - 44px);
  margin: -30px auto 0;
  position: relative;
  z-index: 4;
  padding: 16px 20px;
  border: 1px solid rgba(28, 34, 48, 0.15);
  border-radius: 6px;
  background: var(--paper);
  color: var(--paper-ink);
  box-shadow: 0 18px 36px rgba(3, 6, 16, 0.28);
  transform: rotate(1.4deg);
}
.evidence-caption span, .evidence-caption small { display: block; }
.evidence-caption span { color: #6d6a60; font: 700 10px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.12em; }
.evidence-caption strong { display: block; margin: 4px 0; font-size: 20px; }
.evidence-caption small { color: #55544d; font-size: 12px; }

.mission-steps {
  grid-area: steps;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.mission-steps article {
  min-height: 118px;
  padding: 24px;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: center;
}
.mission-steps article + article { border-left: 1px solid var(--line); }
.mission-steps article > span { color: var(--amber); font: 800 26px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.mission-steps h2 { margin: 0 0 6px; font-size: 17px; }
.mission-steps p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.briefing {
  grid-area: brief;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: start;
  max-width: 840px;
  padding: 26px 0 0;
}
.briefing-mark {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 2px solid var(--amber);
  border-radius: 50%;
  color: var(--amber);
  font: 900 24px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.briefing h2 { margin: 0 0 8px; font-size: 20px; }
.briefing p { margin: 0; color: var(--ink-soft); line-height: 1.8; }

.quiz-shell {
  width: min(720px, calc(100% - 40px));
  min-height: calc(100dvh - 72px);
  margin: 0 auto;
  padding: 34px 0 56px;
}
.quiz-topline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  color: var(--muted);
  font: 700 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.1em;
}
.quiz-topline b { color: var(--amber); font-size: 20px; }
.progress-track {
  height: 5px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(214, 208, 190, 0.14);
}
.progress-track i { display: block; height: 100%; border-radius: inherit; background: var(--amber); transition: width 180ms ease; }
.act-rail {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.act-rail li {
  padding-top: 7px;
  border-top: 2px solid rgba(214, 208, 190, 0.16);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}
.act-rail b { display: block; font: 800 10px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.08em; }
.act-rail li.is-done { border-color: rgba(240, 192, 105, 0.4); color: var(--ink-soft); }
.act-rail li.is-current { border-color: var(--amber); color: var(--amber); }
.question-card { padding: 34px 0 27px; }
.question-stamp {
  display: inline-block;
  padding: 5px 8px;
  border: 1px solid rgba(228, 104, 143, 0.6);
  color: var(--rose);
  font: 800 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.1em;
  transform: rotate(-2deg);
}
.dimension-label { margin: 16px 0 0; color: var(--amber); font: 700 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.14em; }
.question-card h1 {
  margin: 8px 0 0;
  font-size: clamp(24px, 4.4vw, 34px);
  line-height: 1.48;
  letter-spacing: -0.025em;
}
.question-guide { margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; text-wrap: pretty; }
kbd { padding: 1px 5px; border: 1px solid var(--line); border-radius: 4px; background: rgba(240, 192, 105, 0.1); color: var(--ink-soft); font: 700 11px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.options-list { display: grid; gap: 11px; }
.option-button {
  width: 100%;
  min-height: 76px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  grid-template-columns: 38px 1fr 24px;
  gap: 13px;
  align-items: center;
  background: rgba(23, 28, 44, 0.78);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.option-letter {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--amber);
  font: 800 14px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.option-text { font-size: 16px; line-height: 1.65; }
.option-arrow { color: var(--muted); font-size: 18px; transition: transform 160ms ease; }
.option-button:hover { transform: translateY(-2px); border-color: var(--line-strong); background: var(--panel-2); }
.option-button:hover .option-arrow { transform: translate(2px, -2px); color: var(--amber); }
.option-button.is-selected { border-color: var(--amber); background: rgba(240, 192, 105, 0.14); }
.option-button.is-selected .option-letter { background: var(--amber); color: var(--night); border-color: var(--amber); }
.quiz-controls {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 11px;
}
.text-button {
  min-height: 44px;
  border: 0;
  padding: 8px 0;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
}

.result-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.result-hero {
  position: relative;
  min-height: calc(100dvh - 72px);
  padding: 44px 0 56px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 52px;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.result-copy { position: relative; z-index: 3; }
.result-overline { margin: 0 0 8px; color: var(--muted); font-size: 15px; }
.result-copy h1 {
  margin: 0;
  font-size: clamp(38px, 4.6vw, 60px);
  line-height: 1.14;
  letter-spacing: -0.05em;
}
.result-meta { display: flex; align-items: center; gap: 16px; margin-top: 18px; color: var(--ink-soft); }
.result-meta b { color: var(--amber); font: 900 23px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.mbti-badge { padding: 7px 11px; border-radius: 6px; background: var(--amber); color: var(--night); font: 900 18px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.08em; }
.result-tagline { max-width: 540px; margin: 20px 0 0; color: var(--ink-soft); font-size: 19px; line-height: 1.78; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag-list span { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); font-size: 12px; }
.result-portrait {
  position: relative;
  margin: 0;
  padding: 14px 14px 62px;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: rotate(0.7deg);
}
.result-portrait img {
  width: 100%;
  height: auto;
  border-radius: 3px;
  position: relative;
  z-index: 2;
  animation: result-entry 1.3s cubic-bezier(.16, 1, .3, 1) both;
}
.frame-label {
  position: absolute;
  top: -13px;
  left: 18px;
  z-index: 3;
  padding: 5px 9px;
  background: var(--amber);
  color: var(--night);
  font: 800 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.1em;
  transform: rotate(-2deg);
}
.photo-credit {
  position: absolute;
  left: 16px;
  bottom: 22px;
  max-width: calc(100% - 120px);
  color: rgba(28, 34, 48, 0.6);
  font-size: 10px;
  line-height: 1.5;
}
.match-seal {
  position: absolute;
  z-index: 4;
  right: 22px;
  bottom: 20px;
  width: 92px;
  height: 92px;
  border: 4px double var(--red);
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--red);
  transform: rotate(-12deg);
  background: rgba(245, 241, 230, 0.72);
}
.match-seal b { font: 900 29px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.match-seal span { margin-top: 4px; font: 800 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.1em; }
.scroll-cue {
  position: absolute;
  z-index: 5;
  left: 0;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}
.scroll-cue span { color: var(--amber); font-size: 18px; }
.confetti { position: absolute; inset: 0; pointer-events: none; z-index: 6; overflow: hidden; }
.confetti i {
  position: absolute;
  left: calc(50% + (var(--i) - 14) * 24px);
  top: 52%;
  width: 5px;
  height: 12px;
  border-radius: 2px;
  background: var(--amber);
  opacity: 0;
  animation: burst 1.7s calc(var(--i) * 22ms) cubic-bezier(.2, .8, .25, 1) 1 both;
}
.confetti i:nth-child(3n) { background: var(--rose); }
.confetti i:nth-child(2n) { background: #7fa9c9; }

.report { padding: 64px 0 88px; display: grid; gap: 0; }
.report-section {
  position: relative;
  display: grid;
  grid-template-columns: 68px 1fr;
  column-gap: 24px;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}
.section-number { color: var(--amber); font: 900 30px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.section-title-wrap p { margin: 0 0 5px; color: var(--muted); font: 700 10px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.14em; }
.section-title-wrap h2 { margin: 0; font-size: clamp(25px, 3vw, 36px); letter-spacing: -0.025em; }
.dimension-list { grid-column: 2; margin-top: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 54px; }
.dimension-row { min-width: 0; }
.dimension-heading, .dimension-labels { display: flex; justify-content: space-between; gap: 12px; }
.dimension-heading span { font-size: 15px; font-weight: 750; }
.dimension-heading strong { color: var(--amber); font: 800 14px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.dimension-labels { margin-top: 12px; color: var(--muted); font-size: 11px; }
.dimension-bar { position: relative; height: 8px; margin-top: 8px; border-radius: 8px; background: rgba(214, 208, 190, 0.16); }
.dimension-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--position); border-radius: inherit; background: var(--amber); }
.dimension-bar b { position: absolute; left: var(--position); top: 50%; width: 14px; height: 14px; border: 3px solid var(--night); border-radius: 50%; background: var(--amber); transform: translate(-50%, -50%); box-shadow: 0 0 0 1px var(--amber); }
.report-note { grid-column: 2; margin: 28px 0 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.profile-grid { grid-column: 2; margin-top: 34px; display: grid; grid-template-columns: 0.88fr 1.12fr; gap: 28px; }
.profile-grid > div { padding: 28px; border-radius: var(--radius); background: var(--panel); }
.profile-analysis { background: var(--paper) !important; color: var(--paper-ink); transform: rotate(-0.4deg); }
.profile-grid h3 { margin: 0 0 13px; font-size: 17px; }
.profile-grid p { margin: 0; color: var(--ink-soft); line-height: 1.85; }
.profile-analysis p { color: #2f3a4a; }
.profile-grid dl { margin: 20px 0 0; display: grid; gap: 10px; }
.profile-grid dl div { display: flex; justify-content: space-between; gap: 20px; padding-top: 10px; border-top: 1px solid var(--line); }
.profile-grid dt { color: var(--muted); }
.profile-grid dd { margin: 0; text-align: right; }
.growth-line { margin-top: 18px !important; padding-top: 18px; border-top: 1px solid rgba(28, 34, 48, 0.14); }
.evidence-list { grid-column: 2; margin: 34px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.evidence-list li { min-height: 118px; padding: 20px; display: grid; grid-template-columns: 62px 1fr; gap: 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(23, 28, 44, 0.7); }
.evidence-list span { color: var(--amber); font: 800 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.evidence-list p { margin: 0; color: var(--ink-soft); line-height: 1.75; font-size: 14px; }
.highlight-card { grid-column: 2; margin-top: 34px; padding: 34px; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 34px; border-radius: var(--radius); background: var(--paper); color: var(--paper-ink); box-shadow: 0 18px 60px rgba(3, 6, 16, 0.24); }
.highlight-photo { margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.highlight-photo img { width: 100%; height: 100%; min-height: 200px; flex: 1; object-fit: cover; border-radius: 6px; }
.highlight-photo figcaption { color: #6d6a60; font-size: 10px; line-height: 1.5; }
.highlight-body { display: flex; flex-direction: column; min-width: 0; }
.highlight-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.highlight-card h3 { margin: 22px 0 12px; font-size: 26px; }
.highlight-card p { margin: 0; max-width: 52ch; color: #2f3a4a; line-height: 1.9; }
.highlight-card blockquote { margin: auto 0 0; padding-left: 16px; border-left: 3px solid var(--amber-deep); color: #5b5a4f; font-weight: 600; font-size: 13px; line-height: 1.8; }
.dossier-seal { flex: none; width: 78px; height: 78px; display: grid; place-content: center; text-align: center; border: 3px double var(--red); border-radius: 50%; color: var(--red); background: rgba(255, 255, 255, 0.38); transform: rotate(7deg); }
.dossier-seal b { font: 900 27px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.dossier-seal span { margin-top: 3px; font: 800 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.16em; }
.episode-label { align-self: start; width: max-content; max-width: 100%; padding: 10px 14px; border: 2px solid var(--red); color: var(--red); text-align: left; transform: rotate(-1.5deg); }
.episode-label span, .episode-label b { display: block; }
.episode-label span { font: 800 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.12em; }
.episode-label b { margin-top: 7px; font-size: 13px; }
.alternate-panel { margin-top: 54px; display: grid; grid-template-columns: 300px 1fr; gap: 30px; align-items: center; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(120deg, rgba(23, 28, 44, 0.94), rgba(32, 38, 58, 0.72)); }
.alternate-portrait { border-radius: 6px; overflow: hidden; background: var(--night-2); }
.alternate-portrait img { width: 100%; height: auto; }
.alternate-panel p:first-child { margin: 0; color: var(--amber); font: 700 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.1em; }
.alternate-panel h2 { margin: 8px 0; font-size: 30px; }
.alternate-panel p:not(:first-child) { margin: 0 0 13px; color: var(--ink-soft); line-height: 1.75; }
.alternate-panel span { color: var(--muted); font-size: 12px; }
.result-actions-panel { padding-top: 58px; text-align: center; }
.result-actions-panel > p { color: var(--muted); }
.result-actions { width: min(100%, 560px); margin: 22px auto 0; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 12px; }

.poster-dialog {
  width: min(420px, calc(100% - 28px));
  max-height: 92dvh;
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--night-2);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.poster-dialog::backdrop { background: rgba(3, 6, 16, 0.82); backdrop-filter: blur(8px); }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.dialog-header p { margin: 0 0 3px; color: var(--muted); font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.12em; }
.dialog-header h2 { margin: 0; font-size: 20px; }
.poster-stage { margin-top: 16px; display: grid; place-items: center; }
.poster-stage img { width: auto; max-height: 62dvh; border-radius: 10px; box-shadow: 0 22px 60px rgba(3, 6, 16, 0.55); }
.poster-loading, .poster-error { color: var(--muted); padding: 120px 40px; text-align: center; }
.dialog-actions { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dialog-note { margin: 10px 0 0; color: var(--muted); font-size: 11px; text-align: center; }
body:has(dialog[open]) { overflow: hidden; }

.site-footer { padding: 28px 20px 34px; text-align: center; color: var(--muted); font-size: 11px; line-height: 1.9; }
.site-footer p { margin: 0; }
.site-footer a { display: inline-block; margin-top: 7px; color: var(--ink-soft); }
.noscript-content { max-width: 760px; margin: 60px auto; padding: 30px; color: var(--ink); }
.noscript-content p { color: var(--ink-soft); line-height: 1.9; }

@keyframes subject-entry { from { opacity: 0; transform: scale(0.96) translateY(14px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes result-entry { 0% { opacity: 0; transform: scale(0.94) rotate(-1.4deg); } 65% { opacity: 1; transform: scale(1.01) rotate(0.4deg); } 100% { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes scan { 0%, 100% { top: 8%; opacity: 0; } 12% { opacity: 1; } 50% { top: 88%; opacity: 0.8; } 62% { opacity: 0; } }
@keyframes burst { 0% { opacity: 0; transform: translate(0, 0) rotate(0); } 12% { opacity: 1; } 100% { opacity: 0; transform: translate(calc((var(--i) - 14) * 11px), calc(-210px + (var(--i) % 5) * 55px)) rotate(480deg); } }

@media (max-width: 900px) {
  .home-shell { grid-template-columns: 1fr; grid-template-areas: "copy" "art" "steps" "brief"; padding-top: 28px; }
  .hero-copy { max-width: none; }
  .hero-evidence { justify-self: center; }
  .mission-steps { grid-template-columns: 1fr; }
  .mission-steps article + article { border-left: 0; border-top: 1px solid var(--line); }
  .result-hero { grid-template-columns: 1fr; padding-top: 34px; text-align: center; gap: 34px; }
  .result-copy { order: 1; }
  .result-portrait { order: 2; width: min(100%, 640px); justify-self: center; }
  .result-tagline { margin-left: auto; margin-right: auto; }
  .result-meta, .tag-list { justify-content: center; }
  .scroll-cue { position: static; order: 3; justify-self: center; }
  .dimension-list { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .highlight-card { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
}

@media (max-width: 620px) {
  .site-header { width: calc(100% - 28px); height: 64px; }
  .brand b { font-size: 9px; }
  .brand small { font-size: 13px; }
  .case-number { display: none; }
  .home-shell, .result-shell { width: calc(100% - 32px); }
  .home-shell { min-height: auto; padding: 24px 0 50px; gap: 34px; }
  .case-kicker { font-size: 10px; }
  .hero-copy h1 { font-size: clamp(36px, 11vw, 48px); line-height: 1.14; }
  .hero-intro { font-size: 16px; margin-top: 17px; }
  .test-facts { gap: 10px 16px; margin: 19px 0; }
  .test-facts b { font-size: 18px; }
  .start-button { width: 100%; min-height: 58px; }
  .hero-evidence { width: 100%; padding: 0 4px; }
  .evidence-tape { left: -10px; right: -10px; }
  .stage-frame { padding: 12px 12px 44px; }
  .mission-steps article { min-height: 96px; padding: 18px 8px; }
  .briefing { grid-template-columns: 42px 1fr; gap: 14px; }
  .briefing-mark { width: 40px; height: 40px; font-size: 20px; }
  .briefing p { font-size: 14px; }

  .quiz-shell { width: calc(100% - 28px); min-height: calc(100dvh - 64px); padding: 22px 0 42px; }
  .act-rail span { display: none; }
  .question-card { padding: 26px 0 20px; }
  .question-card h1 { font-size: 23px; line-height: 1.5; }
  .question-guide { line-height: 1.6; }
  .option-button { min-height: 72px; padding: 13px; grid-template-columns: 32px 1fr 18px; gap: 10px; }
  .option-letter { width: 30px; height: 30px; }
  .option-text { font-size: 15px; line-height: 1.6; }
  .quiz-controls span { display: none; }

  .result-shell { width: calc(100% - 28px); }
  .result-hero { min-height: calc(100dvh - 64px); gap: 28px; padding: 26px 0 24px; }
  .result-overline { font-size: 13px; }
  .result-copy h1 { font-size: clamp(34px, 10vw, 46px); }
  .result-tagline { font-size: 16px; margin-top: 16px; }
  .result-portrait { width: 100%; padding: 10px 10px 58px; }
  .match-seal { width: 76px; height: 76px; right: 12px; bottom: 14px; }
  .match-seal b { font-size: 23px; }
  .photo-credit { left: 12px; bottom: 18px; max-width: calc(100% - 100px); }
  .scroll-cue { min-height: 44px; }
  .report { padding: 28px 0 58px; }
  .report-section { grid-template-columns: 42px 1fr; column-gap: 12px; padding: 36px 0; }
  .section-number { font-size: 21px; }
  .section-title-wrap h2 { font-size: 24px; }
  .dimension-list, .profile-grid, .evidence-list, .highlight-card, .report-note { grid-column: 1 / -1; }
  .dimension-list, .profile-grid, .evidence-list, .highlight-card { margin-top: 25px; }
  .profile-grid > div { padding: 22px 19px; }
  .evidence-list { grid-template-columns: 1fr; }
  .highlight-card { grid-template-columns: 1fr; padding: 22px 18px; gap: 20px; }
  .highlight-photo img { height: auto; min-height: 0; aspect-ratio: 16 / 10; }
  .dossier-seal { width: 64px; height: 64px; }
  .dossier-seal b { font-size: 22px; }
  .highlight-card h3 { font-size: 22px; }
  .highlight-card blockquote { margin-top: 18px; }
  .alternate-panel { grid-template-columns: 1fr; gap: 18px; padding: 18px; }
  .alternate-panel h2 { font-size: 22px; }
  .alternate-panel p:not(:first-child) { font-size: 13px; }
  .result-actions { grid-template-columns: 1fr; }
  .result-actions .primary-button { order: -1; }
  .poster-dialog { padding: 14px; }
  .poster-stage img { max-height: 56dvh; }
  .poster-loading, .poster-error { padding: 80px 20px; }
}

@media (max-width: 380px) {
  .brand-lens { width: 30px; height: 30px; flex-basis: 30px; }
  .hero-copy h1 { font-size: 34px; }
  .result-copy h1 { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .confetti, .scan-line { display: none; }
}

@media (prefers-contrast: more) {
  :root { --line: rgba(246, 242, 232, 0.5); --muted: #c4bdae; }
  .option-button, .secondary-button, .tag-list span { border-width: 2px; }
}
