:root {
  --ink: #242127;
  --ink-soft: #686269;
  --paper: #f4eee4;
  --paper-light: #fbf8f2;
  --line: rgba(36, 33, 39, 0.18);
  --red: #a62f31;
  --red-dark: #7d2025;
  --gold: #c8a664;
  --night: #17161b;
  --white: #fffdf8;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Times New Roman", serif;
  color: var(--ink);
  font-family: var(--sans);
  font-synthesis: none;
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(36, 33, 39, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 42px;
}

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

button {
  border: 0;
}

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

main:focus {
  outline: 0;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.app-shell {
  display: flex;
  flex-direction: column;
  width: min(1480px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 44px;
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 15px;
}

.brand strong,
.brand small {
  display: block;
  letter-spacing: 0;
}

.brand strong {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
}

.brand small,
.edition-label {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 9px;
  letter-spacing: 0;
}

.edition-label {
  margin: 0;
}

main {
  flex: 1;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 72px;
  color: var(--ink-soft);
  font-size: 11px;
  border-top: 1px solid var(--line);
}

.footer-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--red);
}

.page-enter {
  animation: page-in 420ms cubic-bezier(0.2, 0.72, 0.25, 1) both;
}

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

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.eyebrow > span {
  width: 28px;
  height: 1px;
  background: currentColor;
}

.eyebrow.centered {
  justify-content: center;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:not(:disabled):hover {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--white);
  background: var(--red);
}

.button-primary:not(:disabled):hover {
  background: var(--red-dark);
}

.button-secondary {
  border-color: var(--line);
  background: transparent;
}

.button-secondary:hover {
  border-color: var(--ink);
}

.button-wide {
  width: 100%;
  justify-content: space-between;
}

.button-arrow {
  font-size: 20px;
  font-weight: 400;
}

.gate-layout {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: calc(100vh - 164px);
  margin: 0 -44px;
  overflow: hidden;
  isolation: isolate;
}

.stage-visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(16, 15, 19, 0.12) 0%, rgba(16, 15, 19, 0.32) 42%, rgba(16, 15, 19, 0.88) 75%, rgba(16, 15, 19, 0.96) 100%),
    radial-gradient(circle at 35% 22%, rgba(255, 245, 205, 0.26), transparent 26%),
    linear-gradient(180deg, #242128 0%, #131217 100%);
  z-index: -1;
}

.stage-visual::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 32%;
  background: linear-gradient(178deg, transparent 5%, rgba(0, 0, 0, 0.62) 6%, #0d0c10 100%);
  content: "";
  z-index: 5;
}

.curtain {
  position: absolute;
  top: -6%;
  bottom: 17%;
  width: 41%;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0 8%, transparent 8% 18%),
    linear-gradient(90deg, #4f151b, #92262b 47%, #4a1419);
  box-shadow: 0 0 36px rgba(0, 0, 0, 0.55);
  z-index: 4;
}

.curtain-left {
  left: -8%;
  transform: skewY(-5deg);
  border-bottom-right-radius: 70% 8%;
}

.curtain-right {
  right: -27%;
  transform: skewY(5deg);
  border-bottom-left-radius: 70% 8%;
}

.spotlight {
  position: absolute;
  top: -12%;
  left: 35%;
  width: 54%;
  height: 105%;
  background: linear-gradient(180deg, rgba(250, 222, 151, 0.14), rgba(250, 222, 151, 0.025) 62%, transparent);
  clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
  transform: translateX(-50%);
  filter: blur(2px);
  z-index: 1;
}

.stage-number {
  position: absolute;
  top: 44%;
  left: 35%;
  color: rgba(247, 227, 177, 0.95);
  font-family: var(--serif);
  font-size: 104px;
  line-height: 1;
  transform: translate(-50%, -50%);
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  z-index: 3;
}

.stage-line {
  position: absolute;
  top: 58%;
  left: 35%;
  width: 58px;
  height: 1px;
  background: var(--gold);
  transform: translateX(-50%);
  z-index: 6;
}

.stage-copy {
  position: absolute;
  top: 62%;
  left: 35%;
  width: 50%;
  color: rgba(255, 248, 232, 0.68);
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0;
  text-align: center;
  transform: translateX(-50%);
  z-index: 6;
}

.gate-content {
  display: flex;
  width: min(52%, 650px);
  flex-direction: column;
  padding: 56px 72px 56px 48px;
  color: var(--white);
}

.gate-content .eyebrow,
.gate-content .field-message,
.gate-content .trust-notes p {
  color: rgba(255, 253, 248, 0.68);
}

.gate-content .eyebrow,
.gate-content .field-message.is-error {
  color: #e2b0a3;
}

.gate-content .lead {
  color: rgba(255, 253, 248, 0.72);
}

.gate-content .license-form label {
  color: rgba(255, 253, 248, 0.9);
}

.gate-content .input-wrap input {
  color: var(--ink);
  background: rgba(255, 253, 248, 0.95);
}

.gate-content .latest-result-link {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.18);
}

.gate-content .authorized-panel {
  color: var(--ink);
}

.gate-content h1,
.intro-heading h1,
.confirm-layout h1,
.result-intro h1 {
  margin: 20px 0 18px;
  font-family: var(--serif);
  font-size: 58px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0;
}

.lead {
  max-width: 430px;
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.8;
}

.license-form {
  margin-top: 38px;
}

.license-form label {
  display: block;
  margin-bottom: 9px;
  font-size: 13px;
  font-weight: 700;
}

.input-wrap input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(36, 33, 39, 0.34);
  border-radius: 2px;
  background: rgba(255, 253, 248, 0.64);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: uppercase;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.input-wrap input:focus {
  border-color: var(--red);
  background: var(--white);
  outline: 0;
}

.input-wrap.has-error input {
  border-color: var(--red);
}

.field-message {
  min-height: 18px;
  margin: 8px 0 14px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.6;
}

.field-message.is-error {
  color: var(--red);
}

.authorized-panel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin-top: 38px;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.55);
}

.authorized-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: #28715e;
}

.authorized-panel strong,
.authorized-panel small {
  display: block;
}

.authorized-panel strong {
  font-size: 13px;
}

.authorized-panel small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 10px;
}

.return-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 12px 14px;
  border-left: 2px solid var(--gold);
  background: rgba(200, 166, 100, 0.13);
  font-size: 12px;
}

.return-strip button,
.latest-result-link {
  padding: 0;
  color: var(--red);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.latest-result-link {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-align: left;
}

.trust-notes {
  display: grid;
  gap: 8px;
  margin-top: 26px;
}

.trust-notes p {
  display: flex;
  gap: 9px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.65;
}

.trust-notes p span {
  color: var(--red);
}

.intro-layout {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 70px 0 76px;
}

.intro-heading {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.7fr);
  align-items: end;
  gap: 60px;
}

.intro-heading .eyebrow {
  grid-column: 1 / -1;
}

.intro-heading h1 {
  margin: 0;
  font-size: 48px;
}

.intro-heading > p {
  margin: 0 0 6px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.9;
}

.intro-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 46px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-facts div {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  padding: 22px 12px;
  border-right: 1px solid var(--line);
}

.intro-facts div:last-child {
  border-right: 0;
}

.intro-facts strong {
  color: var(--red);
  font-family: var(--serif);
  font-size: 32px;
}

.intro-facts span {
  color: var(--ink-soft);
  font-size: 12px;
}

.seven-stages {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-top: 44px;
}

.stage-ticket {
  display: flex;
  min-height: 232px;
  flex-direction: column;
  padding: 16px 14px;
  border-left: 1px solid var(--line);
  animation: ticket-in 430ms ease both;
  animation-delay: var(--delay);
}

.stage-ticket:last-child {
  border-right: 1px solid var(--line);
}

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

.stage-ticket > span {
  color: var(--red);
  font-family: var(--serif);
  font-size: 12px;
}

.stage-ticket strong {
  margin-top: auto;
  font-family: var(--serif);
  font-size: 19px;
}

.stage-ticket small {
  min-height: 112px;
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.6;
}

.intro-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-top: 42px;
}

.intro-actions p {
  max-width: 560px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.7;
}

.question-layout {
  width: min(900px, 100%);
  margin: 0 auto;
  padding: 44px 0 62px;
}

.question-meta {
  display: grid;
  grid-template-columns: 68px 1fr 46px;
  align-items: center;
  gap: 16px;
}

.question-count {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.question-count span {
  color: var(--red);
  font-family: var(--serif);
  font-size: 28px;
}

.question-count small,
.progress-percent {
  color: var(--ink-soft);
  font-size: 10px;
}

.progress-track {
  height: 3px;
  overflow: hidden;
  background: rgba(36, 33, 39, 0.12);
}

.progress-track span {
  display: block;
  height: 100%;
  background: var(--red);
  transition: width 300ms ease;
}

.progress-percent {
  text-align: right;
}

.question-panel {
  margin-top: 52px;
}

.question-kicker {
  color: var(--ink-soft);
  font-size: 11px;
}

.question-panel h1 {
  max-width: 820px;
  min-height: 112px;
  margin: 14px 0 36px;
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 700;
  line-height: 1.65;
  letter-spacing: 0;
}

.answer-list {
  display: grid;
  gap: 8px;
}

.answer-option {
  display: grid;
  grid-template-columns: 46px 1fr 30px;
  min-height: 58px;
  align-items: center;
  padding: 0 18px 0 0;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 253, 248, 0.42);
  cursor: pointer;
  text-align: left;
  transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.answer-option:hover {
  border-color: rgba(166, 47, 49, 0.54);
  background: rgba(255, 253, 248, 0.78);
  transform: translateX(2px);
}

.answer-option.is-selected {
  border-color: var(--red);
  background: rgba(166, 47, 49, 0.075);
}

.answer-index {
  display: grid;
  height: 100%;
  place-items: center;
  border-right: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 11px;
}

.answer-label {
  padding: 12px 16px;
  font-size: 14px;
}

.answer-check {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: transparent;
  font-size: 12px;
}

.answer-option.is-selected .answer-check {
  border-color: var(--red);
  color: var(--white);
  background: var(--red);
}

.question-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 34px;
}

.question-actions .button-primary {
  justify-self: end;
}

.question-actions .button-secondary {
  justify-self: start;
}

.confirm-layout {
  display: flex;
  width: min(690px, 100%);
  min-height: calc(100vh - 164px);
  align-items: center;
  margin: 0 auto;
  flex-direction: column;
  justify-content: center;
  padding: 56px 0;
  text-align: center;
}

.confirm-mark {
  color: rgba(166, 47, 49, 0.14);
  font-family: var(--serif);
  font-size: 84px;
  line-height: 1;
}

.confirm-layout h1 {
  margin: 20px 0 12px;
  font-size: 46px;
}

.confirm-layout > p {
  max-width: 540px;
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.9;
}

.confirm-summary {
  display: grid;
  width: min(390px, 100%);
  grid-template-columns: 1fr 1fr;
  margin: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.confirm-summary div {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  padding: 20px;
}

.confirm-summary div:first-child {
  border-right: 1px solid var(--line);
}

.confirm-summary strong {
  color: var(--red);
  font-family: var(--serif);
  font-size: 28px;
}

.confirm-summary span {
  color: var(--ink-soft);
  font-size: 11px;
}

.confirm-actions {
  display: flex;
  gap: 12px;
}

.result-layout {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 62px 0 80px;
}

.result-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: 50px;
}

.result-label {
  margin: 44px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.result-intro h1 {
  margin: 12px 0 16px;
  color: var(--red);
  font-size: 48px;
}

.result-summary {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.7;
}

.result-note {
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
}

.radar-shell {
  min-width: 0;
  text-align: center;
}

#radar-chart {
  display: block;
  width: min(100%, 500px);
  aspect-ratio: 1;
  margin: 0 auto;
}

.radar-caption {
  margin-top: -10px;
  color: var(--ink-soft);
  font-size: 10px;
}

.story-band {
  display: grid;
  grid-template-columns: 150px 150px 1fr auto;
  align-items: center;
  gap: 24px;
  margin-top: 54px;
  padding: 24px 28px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.story-band > span,
.story-band small {
  color: var(--ink-soft);
  font-size: 11px;
}

.story-band strong {
  color: var(--red);
  font-family: var(--serif);
  font-size: 28px;
}

.story-band p {
  margin: 0;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.7;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 64px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.result-copy {
  min-height: 250px;
  padding: 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.result-copy-large {
  grid-column: 1 / -1;
  min-height: auto;
}

.section-number {
  color: var(--red);
  font-family: var(--serif);
  font-size: 11px;
}

.result-copy h2,
.section-heading h2,
.quiet-stage h2 {
  margin: 16px 0 14px;
  font-family: var(--serif);
  font-size: 25px;
  letter-spacing: 0;
}

.result-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.9;
}

.strength-line {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.strength-line span {
  color: var(--ink-soft);
  font-size: 10px;
}

.strength-line strong {
  font-family: var(--serif);
  font-size: 15px;
}

.alert-copy {
  background: rgba(166, 47, 49, 0.045);
}

.lesson-copy {
  background: rgba(200, 166, 100, 0.09);
}

.scores-section {
  margin-top: 68px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 30px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading p {
  max-width: 430px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.7;
}

.score-list {
  border-top: 1px solid var(--line);
}

.score-row {
  display: grid;
  grid-template-columns: 170px 1fr 42px;
  align-items: center;
  gap: 24px;
  min-height: 64px;
  border-bottom: 1px solid var(--line);
}

.score-row > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.score-row span {
  color: var(--ink-soft);
  font-size: 10px;
}

.score-row strong {
  font-family: var(--serif);
  font-size: 15px;
}

.score-bar {
  height: 4px;
  overflow: hidden;
  background: rgba(36, 33, 39, 0.11);
}

.score-bar span {
  display: block;
  height: 100%;
  background: var(--red);
}

.score-row b {
  color: var(--red);
  font-family: var(--serif);
  font-size: 17px;
  text-align: right;
}

.quiet-stage {
  margin-top: 50px;
  padding-left: 24px;
  border-left: 2px solid var(--gold);
}

.quiet-stage > span,
.quiet-stage p {
  color: var(--ink-soft);
  font-size: 11px;
}

.quiet-stage h2 {
  margin: 9px 0;
  font-size: 22px;
}

.quiet-stage p {
  margin: 0;
}

.share-block {
  position: relative;
  margin-top: 64px;
  overflow: hidden;
  padding: 54px;
  color: var(--white);
  background: var(--night);
  text-align: center;
}

.share-quote {
  position: absolute;
  top: 0;
  left: 30px;
  color: rgba(200, 166, 100, 0.13);
  font-family: var(--serif);
  font-size: 160px;
  line-height: 1;
}

.share-block p {
  position: relative;
  max-width: 680px;
  margin: 0 auto 28px;
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.7;
}

.share-block p > span {
  display: block;
}

.share-prompt {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72em;
}

.share-page-link {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: -12px auto 28px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  text-decoration-color: rgba(255, 255, 255, 0.28);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-page-link:hover {
  color: var(--white);
}

.share-block > div {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.button-light {
  color: var(--night);
  background: var(--white);
}

.button-ghost-light {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--white);
  background: transparent;
}

.share-block small {
  display: block;
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 9px;
}

.toast {
  position: fixed;
  z-index: 100;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 50%;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: 2px;
  color: var(--white);
  background: rgba(23, 22, 27, 0.94);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 980px) {
  .app-shell { padding: 0 28px; }
  .gate-layout { margin: 0 -28px; }
  .gate-content { padding: 44px 34px; }
  .gate-content h1 { font-size: 48px; }
  .seven-stages { grid-template-columns: repeat(4, 1fr); }
  .stage-ticket:nth-child(4) { border-right: 1px solid var(--line); }
  .stage-ticket:nth-child(n+5) { border-top: 1px solid var(--line); }
  .result-hero { grid-template-columns: minmax(0, 0.85fr) minmax(330px, 1.15fr); gap: 22px; }
  .story-band { grid-template-columns: 120px 120px 1fr; }
  .story-band small { grid-column: 2; }
}

@media (max-width: 720px) {
  body { background-size: 100% 36px; }
  .app-shell { padding: 0 18px; }
  .site-header { min-height: 70px; }
  .edition-label { display: none; }
  .brand-mark { width: 34px; height: 34px; font-size: 12px; }
  .brand strong { font-size: 15px; }
  .brand small { font-size: 8px; }
  .site-footer { min-height: 62px; flex-wrap: wrap; gap: 8px; padding: 12px 0; font-size: 9px; }

  .gate-layout { display: flex; min-height: auto; flex-direction: column; }
  .gate-layout { margin: 0 -18px; overflow: visible; }
  .stage-visual { position: relative; width: 100%; min-height: 280px; z-index: 0; }
  .curtain { bottom: 12%; width: 50%; }
  .curtain-left { left: -25%; }
  .curtain-right { right: -25%; }
  .stage-number { top: 43%; font-size: 72px; }
  .stage-line { top: 63%; }
  .stage-copy { top: 68%; font-size: 9px; }
  .gate-content { width: 100%; padding: 34px 18px 48px; color: var(--ink); }
  .gate-content .eyebrow { color: var(--red); }
  .gate-content .lead,
  .gate-content .field-message,
  .gate-content .trust-notes p { color: var(--ink-soft); }
  .gate-content .license-form label { color: var(--ink); }
  .gate-content .latest-result-link { color: var(--ink); border-color: var(--line); }
  .gate-content h1,
  .result-intro h1 { margin-top: 16px; font-size: 40px; }
  .lead { font-size: 16px; }
  .license-form { margin-top: 28px; }
  .authorized-panel { grid-template-columns: auto 1fr; }
  .authorized-panel .button { grid-column: 1 / -1; width: 100%; }
  .return-strip { align-items: flex-start; flex-direction: column; }

  .intro-layout { padding: 44px 0 50px; }
  .intro-heading { display: block; }
  .intro-heading h1 { margin-top: 18px; font-size: 36px; }
  .intro-heading > p { margin-top: 18px; font-size: 15px; }
  .intro-facts { margin-top: 32px; }
  .intro-facts div { align-items: center; flex-direction: column; gap: 2px; padding: 16px 6px; }
  .intro-facts strong { font-size: 26px; }
  .intro-facts span { font-size: 10px; }
  .seven-stages { grid-template-columns: repeat(2, 1fr); margin-top: 32px; }
  .stage-ticket { min-height: 196px; border-top: 1px solid var(--line); }
  .stage-ticket:nth-child(even) { border-right: 1px solid var(--line); }
  .stage-ticket:first-child,
  .stage-ticket:nth-child(2) { border-top: 0; }
  .stage-ticket:last-child { grid-column: 1 / -1; }
  .intro-actions { align-items: stretch; flex-direction: column; gap: 22px; margin-top: 30px; }
  .intro-actions .button { width: 100%; justify-content: space-between; }

  .question-layout { padding: 32px 0 42px; }
  .question-meta { grid-template-columns: 60px 1fr 38px; gap: 10px; }
  .question-panel { margin-top: 36px; }
  .question-panel h1 { min-height: 130px; margin-bottom: 28px; font-size: 23px; line-height: 1.65; }
  .answer-option { grid-template-columns: 40px 1fr 28px; min-height: 56px; padding-right: 12px; }
  .answer-label { padding: 11px 12px; font-size: 13px; }
  .question-actions { gap: 8px; }
  .question-actions .button { width: 100%; gap: 12px; padding: 0 14px; }

  .confirm-layout { min-height: calc(100vh - 132px); padding: 40px 0; }
  .confirm-mark { font-size: 66px; }
  .confirm-layout h1 { font-size: 36px; }
  .confirm-layout > p { font-size: 14px; }
  .confirm-actions { width: 100%; }
  .confirm-actions .button { flex: 1; padding: 0 12px; gap: 12px; }

  .result-layout { padding: 42px 0 54px; }
  .result-hero { display: flex; flex-direction: column; gap: 22px; }
  .result-intro { width: 100%; }
  .result-label { margin-top: 30px; }
  .result-summary { font-size: 19px; }
  .radar-shell { width: 100%; }
  #radar-chart { width: min(100%, 420px); }
  .story-band { grid-template-columns: 1fr auto; gap: 10px 16px; margin-top: 36px; padding: 18px 4px; }
  .story-band strong { font-size: 24px; text-align: right; }
  .story-band p { grid-column: 1 / -1; }
  .story-band small { grid-column: 1 / -1; }
  .result-grid { display: block; margin-top: 42px; border-top: 1px solid var(--line); }
  .result-copy { min-height: auto; padding: 26px 20px; border-left: 1px solid var(--line); }
  .result-copy h2 { font-size: 22px; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 14px; }
  .scores-section { margin-top: 48px; }
  .score-row { grid-template-columns: 100px 1fr 32px; gap: 12px; min-height: 58px; }
  .score-row > div:first-child { align-items: flex-start; flex-direction: column; gap: 2px; }
  .share-block { margin: 48px -18px 0; padding: 46px 20px; }
  .share-block p { font-size: 19px; }
  .share-block > div { align-items: stretch; flex-direction: column; }
  .share-block .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;
  }
}
