:root {
  --ink: #21130b;
  --paper: #f8e4b4;
  --paper-soft: #fff4d2;
  --paper-dark: #b87931;
  --red: #c83a2e;
  --red-dark: #7b1f1c;
  --blue: #0f405f;
  --blue-deep: #07141e;
  --blue-soft: #1c6d91;
  --gold: #f0b84d;
  --gold-light: #ffe083;
  --cream: #fff2cf;
  --muted: #775936;
  --line: rgba(69, 37, 18, .22);
  --shadow: 0 28px 90px rgba(0, 0, 0, .38);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--cream);
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 214, 103, .26), transparent 20rem),
    radial-gradient(circle at 82% 12%, rgba(31, 121, 156, .34), transparent 24rem),
    linear-gradient(145deg, #06111a 0%, #11334d 48%, #050b11 100%);
  font-family: "Noto Serif SC", "Microsoft YaHei", serif;
}

button {
  font: inherit;
}

.app-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.app-shell::before,
.app-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.app-shell::before {
  opacity: .16;
  background-image:
    linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.app-shell::after {
  background:
    linear-gradient(90deg, rgba(6, 17, 26, .74), transparent 30%, transparent 72%, rgba(6, 17, 26, .68)),
    radial-gradient(circle at 50% 110%, rgba(8, 33, 48, .92), transparent 38rem);
}

.ambient {
  position: fixed;
  z-index: 0;
  width: 360px;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(24px);
  opacity: .42;
}

.ambient-a {
  left: -120px;
  top: 12%;
  background: rgba(200, 58, 46, .5);
}

.ambient-b {
  right: -110px;
  bottom: 8%;
  background: rgba(240, 184, 77, .42);
}

.screen {
  position: relative;
  z-index: 1;
  display: none;
  min-height: 100vh;
  padding: clamp(20px, 4vw, 52px);
}

.screen.is-active {
  display: grid;
}

.start-screen {
  isolation: isolate;
  overflow: hidden;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr);
  grid-template-rows: auto 1fr;
  align-items: center;
  gap: clamp(24px, 5vw, 74px);
  background:
    linear-gradient(90deg, rgba(3, 10, 17, .88), rgba(5, 21, 34, .54) 45%, rgba(3, 10, 17, .74)),
    #07141e;
}

.start-screen::before,
.start-screen::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.start-screen::before {
  inset: 0;
  z-index: -3;
  opacity: .98;
  background:
    linear-gradient(90deg, rgba(3, 10, 17, .82), rgba(6, 20, 31, .18) 48%, rgba(3, 10, 17, .2)),
    url("assets/backgrounds/grand-line-hero.png") center / cover no-repeat;
  transform: scale(1.04);
  animation: heroBackdrop 22s ease-in-out infinite;
}

.start-screen::after {
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(4, 11, 18, .86), rgba(4, 16, 25, .38) 38%, rgba(4, 11, 18, .78)),
    radial-gradient(ellipse at 50% 45%, transparent 0 38%, rgba(2, 9, 15, .32) 72%);
}

.brand-nav {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 242, 207, .16);
  border-radius: 999px;
  background: rgba(4, 14, 21, .34);
  backdrop-filter: blur(14px);
}

.brand-lockup {
  display: inline-flex;
  gap: 12px;
  align-items: center;
}

.site-logo {
  display: block;
  object-fit: contain;
}

.site-logo-nav {
  width: 44px;
  height: 44px;
  padding: 4px;
  border: 1px solid rgba(255, 242, 207, .22);
  border-radius: 50%;
  background: rgba(255, 244, 210, .9);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
}

.brand-lockup strong {
  color: var(--gold-light);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.brand-nav span {
  color: rgba(255, 242, 207, .72);
  font-size: 14px;
}

.start-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.eyebrow,
.question-kicker,
.report-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.eyebrow::before,
.question-kicker::before,
.report-label::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-family: "Ma Shan Zheng", "Noto Serif SC", serif;
  font-size: clamp(60px, 10vw, 126px);
  line-height: .88;
  text-shadow: 0 12px 0 rgba(0, 0, 0, .22), 0 28px 50px rgba(0, 0, 0, .38);
}

.lead {
  max-width: 680px;
  color: rgba(255, 242, 207, .88);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.85;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 650px;
  margin: 30px 0 24px;
}

.hero-stats div {
  min-height: 94px;
  padding: 18px;
  border: 1px solid rgba(255, 242, 207, .14);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04));
  backdrop-filter: blur(12px);
}

.hero-stats strong {
  display: block;
  color: var(--gold-light);
  font-size: 34px;
  line-height: 1;
}

.hero-stats span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 242, 207, .74);
  font-size: 14px;
}

.start-actions,
.quiz-footer,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.primary-button,
.ghost-button,
.icon-button {
  border: 0;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, opacity .18s ease;
}

.primary-button,
.ghost-button {
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 900;
}

.primary-button {
  color: #241306;
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 52%, #d78535);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .55);
}

.ghost-button {
  color: var(--cream);
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
  backdrop-filter: blur(10px);
}

.primary-button:hover,
.ghost-button:hover,
.icon-button:hover {
  transform: translateY(-2px);
}

.primary-button:disabled,
.ghost-button:disabled {
  cursor: not-allowed;
  opacity: .45;
  transform: none;
}

.trait-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 680px;
  margin-top: 24px;
}

.trait-preview span,
.tags span {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.trait-preview span {
  color: var(--cream);
  background: rgba(9, 28, 42, .58);
  box-shadow: inset 0 0 0 1px rgba(255, 242, 207, .14);
}

.hero-art {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 18px;
  justify-items: end;
}

.logo-showcase {
  width: min(100%, 250px);
  padding: 14px;
  border: 1px solid rgba(255, 242, 207, .2);
  border-radius: 28px;
  background: rgba(255, 244, 210, .9);
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
}

.site-logo-hero {
  width: 100%;
  aspect-ratio: 1;
}

.wanted-card,
.route-card,
.question-panel,
.bounty-poster,
.analysis-panel {
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 255, 255, .48), transparent 10rem),
    linear-gradient(145deg, var(--paper-soft), var(--paper));
  box-shadow: var(--shadow);
}

.wanted-card {
  width: min(100%, 360px);
  padding: 34px 30px;
  border: 10px solid rgba(69, 36, 18, .35);
  border-radius: 10px;
  text-align: center;
  transform: rotate(2.5deg);
}

.wanted-card span,
.bounty-poster p {
  display: block;
  color: var(--red-dark);
  font-size: 38px;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}

.wanted-card strong {
  display: block;
  color: #2a1a10;
  font-size: 116px;
  line-height: .95;
}

.wanted-card small {
  color: var(--muted);
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.route-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  align-items: center;
  width: min(100%, 430px);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  transform: translateX(-24px);
}

.route-card p {
  margin: 0;
  color: #4a301e;
  line-height: 1.7;
}

.compass {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  aspect-ratio: 1;
  border: 3px solid rgba(86, 43, 18, .42);
  border-radius: 50%;
  background:
    conic-gradient(from 45deg, rgba(200, 58, 46, .18), transparent 25%, rgba(15, 64, 95, .18), transparent 50%),
    #f8e5b5;
}

.compass::before,
.compass::after {
  content: "";
  position: absolute;
  background: rgba(75, 42, 21, .45);
}

.compass::before {
  width: 2px;
  height: 58px;
}

.compass::after {
  width: 58px;
  height: 2px;
}

.compass i {
  position: relative;
  z-index: 1;
  width: 16px;
  height: 42px;
  background: linear-gradient(to bottom, var(--red), var(--gold));
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  transform: rotate(28deg);
}

.ocean-scene {
  position: absolute;
  inset: 0;
  z-index: -2;
  height: auto;
  min-height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.sky-glow {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(172deg, rgba(255, 255, 255, .12) 0 2px, transparent 2px 22px),
    radial-gradient(circle at 72% 25%, rgba(255, 248, 215, .34), transparent 18rem);
  opacity: .34;
  animation: skyDrift 18s linear infinite;
}

.ship-float {
  position: absolute;
  right: clamp(5vw, 13vw, 210px);
  bottom: clamp(19vh, 22vh, 240px);
  width: clamp(320px, 36vw, 620px);
  height: clamp(250px, 32vw, 520px);
  background:
    url("assets/backgrounds/grand-line-hero.png") 73% 55% / max(118vw, 1480px) auto no-repeat;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .28));
  opacity: .96;
  mix-blend-mode: normal;
  mask-image: radial-gradient(ellipse at 58% 55%, #000 0 42%, rgba(0, 0, 0, .72) 52%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 58% 55%, #000 0 42%, rgba(0, 0, 0, .72) 52%, transparent 72%);
  transform: translate3d(0, 0, 0);
  animation: shipFloatOverlay 5.6s ease-in-out infinite;
}

.quiz-screen,
.result-screen {
  width: min(100%, 1040px);
  margin: 0 auto;
  align-content: center;
  gap: 22px;
}

.quiz-header,
.result-header {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 16px;
  align-items: center;
}

.result-header {
  grid-template-columns: 48px 1fr auto;
}

.site-logo-result {
  width: clamp(64px, 9vw, 92px);
  height: clamp(64px, 9vw, 92px);
  padding: 7px;
  border: 1px solid rgba(255, 242, 207, .22);
  border-radius: 22px;
  background: rgba(255, 244, 210, .94);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .26);
}

.icon-button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--cream);
  background: rgba(255, 255, 255, .12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
  font-size: 24px;
  line-height: 1;
  backdrop-filter: blur(10px);
}

.quiz-header h2,
.result-header h2 {
  margin: 0;
  color: var(--cream);
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1;
}

.score-chip {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 44px;
  padding: 0 17px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
  backdrop-filter: blur(10px);
}

.progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--gold-light));
  box-shadow: 0 0 24px rgba(240, 184, 77, .42);
  transition: width .24s ease;
}

.question-panel {
  position: relative;
  min-height: 460px;
  padding: clamp(24px, 5vw, 50px);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}

.question-panel::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(105, 57, 28, .16);
  border-radius: 18px;
  pointer-events: none;
}

.question-panel h3 {
  position: relative;
  max-width: 820px;
  color: #2b180d;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.35;
}

.options-grid {
  position: relative;
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.option-button {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 16px;
  align-items: start;
  width: 100%;
  padding: 18px;
  border: 2px solid rgba(71, 41, 23, .14);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255, 249, 228, .7);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(72, 41, 19, 0);
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.option-button:hover {
  transform: translateY(-2px);
  border-color: rgba(200, 58, 46, .42);
  background: #fff7dc;
  box-shadow: 0 12px 24px rgba(72, 41, 19, .12);
}

.option-button strong {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--cream);
  background: linear-gradient(145deg, var(--blue), #092336);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
}

.option-button span {
  line-height: 1.72;
}

.option-button.is-selected {
  border-color: var(--red);
  background: #fff2cf;
  box-shadow: 0 14px 30px rgba(120, 54, 24, .18);
}

.option-button.is-selected strong {
  background: linear-gradient(145deg, var(--red), var(--red-dark));
}

.quiz-footer {
  justify-content: space-between;
}

.result-layout {
  display: grid;
  grid-template-columns: minmax(250px, 330px) minmax(0, 1fr);
  gap: 22px;
}

.bounty-poster,
.analysis-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
}

.bounty-poster {
  padding: 26px;
  text-align: center;
}

.bounty-poster p {
  margin-bottom: 20px;
}

.poster-avatar {
  display: block;
  width: min(100%, 224px);
  aspect-ratio: 1;
  margin: 0 auto 18px;
  border: 5px solid rgba(49, 27, 13, .26);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 255, 255, .24), transparent 28%),
    linear-gradient(145deg, #185475, #071724);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  object-fit: cover;
}

.bounty-poster h3 {
  margin-bottom: 8px;
  color: #2b180d;
  font-size: 32px;
}

.bounty-poster strong,
.bounty-poster small {
  display: block;
  color: var(--muted);
}

.bounty-poster small {
  margin-top: 8px;
  font-weight: 900;
}

.poster-insights {
  display: grid;
  gap: 12px;
  margin-top: 26px;
  text-align: left;
}

.poster-insights div {
  min-height: 132px;
  padding: 16px;
  border: 1px solid rgba(75, 50, 31, .16);
  border-radius: 16px;
  background:
    radial-gradient(circle at 12% 0, rgba(255, 255, 255, .58), transparent 6rem),
    rgba(255, 244, 210, .76);
}

.poster-insights span {
  display: block;
  margin-bottom: 7px;
  color: var(--red-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
}

.poster-insights p {
  margin: 0;
  color: #4b321f;
  font-size: 13.5px;
  line-height: 1.72;
}

.analysis-panel {
  padding: clamp(22px, 4vw, 36px);
}

.report-label {
  color: var(--red-dark);
}

.analysis-panel h3 {
  color: #2b180d;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.24;
}

.analysis-panel p {
  color: #4b321f;
  line-height: 1.82;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
}

.tags span {
  color: #fef2cf;
  background: linear-gradient(145deg, #8a3524, #5f221c);
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0;
}

.insight-grid div,
.trait-card {
  border: 1px solid rgba(80, 45, 24, .1);
  border-radius: 18px;
  background: rgba(255, 249, 228, .58);
}

.insight-grid div {
  padding: 16px;
}

.insight-grid span,
.trait-card span {
  display: block;
  margin-bottom: 7px;
  color: #8f321f;
  font-size: 13px;
  font-weight: 900;
}

.insight-grid strong {
  display: block;
  color: #2b180d;
  font-size: 18px;
  line-height: 1.45;
}

.chart-wrap {
  display: grid;
  place-items: center;
  padding: 16px;
  border: 1px solid rgba(80, 45, 24, .1);
  border-radius: 18px;
  background: rgba(255, 249, 228, .58);
}

#radar-chart {
  width: min(100%, 360px);
  height: auto;
}

.trait-breakdown {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.trait-card {
  padding: 14px;
}

.trait-card strong {
  display: block;
  color: #2b180d;
  font-size: 24px;
  line-height: 1;
}

.trait-card p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.6;
}

.advice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.advice-grid div {
  padding: 17px;
  border: 1px solid rgba(80, 45, 24, .1);
  border-radius: 18px;
  background: rgba(255, 249, 228, .58);
}

.advice-grid span {
  display: block;
  margin-bottom: 8px;
  color: #8f321f;
  font-weight: 900;
}

.advice-grid p {
  margin: 0;
}

.wide-card {
  grid-column: 1 / -1;
}

.deep-report,
.shadow-panel {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(80, 45, 24, .12);
  border-radius: 18px;
  background: rgba(255, 249, 228, .58);
}

.deep-report h4 {
  margin: 0 0 14px;
  color: #2b180d;
  font-size: 20px;
}

.deep-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.psych-card {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 244, 210, .72);
}

.psych-card span,
.story-item span,
.shadow-panel span {
  display: block;
  margin-bottom: 7px;
  color: #8f321f;
  font-size: 13px;
  font-weight: 900;
}

.psych-card p,
.story-item p,
.shadow-panel p {
  margin: 0;
  color: #4b321f;
  line-height: 1.72;
}

.story-list {
  display: grid;
  gap: 10px;
}

.story-item {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 244, 210, .72);
}

.shadow-panel {
  background: linear-gradient(145deg, rgba(121, 52, 31, .16), rgba(255, 249, 228, .58));
}

.disclaimer {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(80, 45, 24, .16);
  color: rgba(75, 50, 31, .76);
  font-size: 13px;
}

.result-actions {
  justify-content: center;
  padding: 0 16px 18px;
}

.result-actions .primary-button,
.result-actions .ghost-button {
  flex: 0 1 190px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 5;
  min-width: 220px;
  padding: 12px 18px;
  border-radius: 999px;
  color: #20140b;
  background: var(--gold);
  text-align: center;
  font-weight: 900;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, 20px);
  transition: opacity .2s ease, transform .2s ease;
}

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

@keyframes skyDrift {
  from {
    transform: translateX(-4%);
  }

  to {
    transform: translateX(4%);
  }
}

@keyframes heroBackdrop {
  0%,
  100% {
    transform: scale(1.04) translate3d(0, 0, 0);
  }

  50% {
    transform: scale(1.08) translate3d(-1.8%, -1%, 0);
  }
}

@keyframes shipFloatOverlay {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-.2deg);
  }

  50% {
    transform: translate3d(0, -12px, 0) rotate(.35deg);
  }
}

@media (max-width: 860px) {
  .start-screen,
  .result-layout,
  .advice-grid,
  .insight-grid,
  .deep-grid {
    grid-template-columns: 1fr;
  }

  .start-screen {
    align-content: start;
    padding-bottom: 300px;
  }

  .ship-float {
    right: -10vw;
    bottom: 20vh;
    width: clamp(280px, 56vw, 520px);
    opacity: .55;
  }

  .brand-nav {
    border-radius: 18px;
  }

  .hero-art {
    justify-items: start;
  }

  .logo-showcase {
    transform: none;
  }

  .route-card {
    transform: none;
  }

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

  .trait-breakdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quiz-header {
    grid-template-columns: 44px 1fr;
  }

  .score-chip {
    grid-column: 2;
    justify-self: start;
  }

  .quiz-footer {
    gap: 10px;
  }

  .result-actions {
    gap: 10px;
  }

  .quiz-footer .primary-button,
  .quiz-footer .ghost-button,
  .result-actions .primary-button,
  .result-actions .ghost-button {
    flex: 1;
  }
}

@media (max-width: 520px) {
  .screen {
    padding: 16px;
  }

  h1 {
    font-size: clamp(50px, 18vw, 76px);
  }

  .lead {
    font-size: 16px;
  }

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

  .site-logo-nav {
    width: 38px;
    height: 38px;
  }

  .logo-showcase {
    width: 190px;
    padding: 10px;
  }

  .result-header {
    grid-template-columns: 44px 1fr;
  }

  .site-logo-result {
    grid-column: 2;
    width: 58px;
    height: 58px;
    padding: 5px;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }

  .route-card {
    grid-template-columns: 1fr;
  }

  .question-panel {
    padding: 24px 18px;
    border-radius: 18px;
  }

  .question-panel::before {
    inset: 10px;
  }

  .option-button {
    grid-template-columns: 34px 1fr;
    padding: 15px;
  }

  .option-button strong {
    width: 34px;
    height: 34px;
  }

  .trait-breakdown {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .start-screen::before,
  .sky-glow,
  .ship-float {
    animation: none;
  }
}
