:root {
  --ink: #071024;
  --night: #050d27;
  --night-2: #07133f;
  --royal: #173dc7;
  --blue: #416cf2;
  --gold: #ffc82e;
  --gold-2: #ffe17a;
  --white: #f8faff;
  --muted: #a9b7d7;
  --line: rgba(157, 178, 231, .17);
  --surface: rgba(13, 29, 74, .82);
  --display: "Sora", sans-serif;
  --body: "Manrope", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 76px;
  --footer-h: 34px;
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--night);
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 17% 22%, rgba(39, 83, 207, .22), transparent 31%),
    radial-gradient(circle at 86% 72%, rgba(67, 28, 164, .2), transparent 35%),
    linear-gradient(135deg, #050d27 0%, #07143c 50%, #070b28 100%);
  color: var(--white);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

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

button {
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(255, 200, 46, .9);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform .2s;
}

.skip-link:focus {
  transform: none;
}

.compass-app {
  display: grid;
  min-height: 100dvh;
  grid-template-rows: var(--header-h) minmax(0, 1fr) var(--footer-h);
}

.app-header {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 8px clamp(16px, 2vw, 38px);
  border-bottom: 1px solid var(--line);
  background: rgba(4, 11, 34, .78);
  backdrop-filter: blur(22px);
}

.app-brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
}

.app-brand__logo {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px;
  background: #0a1746;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .22);
}

.app-brand__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-brand__name {
  display: grid;
  line-height: .95;
  text-transform: uppercase;
}

.app-brand__name strong {
  color: var(--gold);
  font-family: var(--display);
  font-size: .96rem;
  letter-spacing: .16em;
}

.app-brand__name small {
  margin-top: 5px;
  font-family: var(--display);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .14em;
}

.app-signature {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #9eabd0;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .055em;
}

.app-signature span {
  width: 34px;
  height: 1px;
  background: var(--gold);
}

.app-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.header-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .035);
  color: #dbe3f8;
  font-size: .7rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}

.header-link:hover {
  border-color: rgba(255, 200, 46, .42);
  background: rgba(255, 200, 46, .08);
  color: var(--gold-2);
}

.header-link--home span {
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1;
}

.simulator-shell {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(255px, .33fr) minmax(0, 1fr);
  gap: clamp(9px, .8vw, 14px);
  padding: clamp(9px, .8vw, 14px);
}

.aurelion-panel,
.experience-panel {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 22px 60px rgba(0, 5, 25, .32);
  isolation: isolate;
}

.aurelion-panel {
  display: grid;
  grid-template-rows: auto minmax(150px, 1fr) auto auto;
  gap: clamp(10px, 1.2vh, 16px);
  padding: clamp(18px, 1.6vw, 30px);
  background:
    radial-gradient(circle at 50% 43%, rgba(35, 87, 225, .32), transparent 39%),
    linear-gradient(165deg, rgba(11, 29, 82, .96), rgba(5, 13, 40, .98));
}

.aurelion-panel::before {
  position: absolute;
  inset: 0;
  z-index: -4;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, .36) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(255, 218, 105, .35) 0 1px, transparent 1.5px);
  background-position: 13px 19px, 67px 81px;
  background-size: 74px 74px, 119px 119px;
  content: "";
  opacity: .28;
}

.aurelion-panel__glow {
  position: absolute;
  z-index: -3;
  right: -20%;
  bottom: -15%;
  width: 90%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(91, 49, 190, .23);
  filter: blur(45px);
}

.aurelion-panel__orbit {
  position: absolute;
  z-index: -2;
  top: 24%;
  left: 50%;
  aspect-ratio: 1;
  border: 1px solid rgba(125, 154, 255, .12);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit-one { width: 75%; }
.orbit-two { width: 105%; }

.aurelion-heading {
  position: relative;
  z-index: 2;
}

.aurelion-heading p,
.aurelion-heading strong {
  margin: 0;
}

.aurelion-heading p {
  color: #f5d96e;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.aurelion-heading p span {
  margin-right: 5px;
}

.aurelion-heading strong {
  display: block;
  margin-top: 4px;
  font-family: var(--display);
  font-size: clamp(1.2rem, 1.45vw, 1.75rem);
}

.aurelion-figure {
  position: relative;
  display: grid;
  min-height: 0;
  place-items: end center;
  margin: 0;
}

.aurelion-figure__halo {
  position: absolute;
  top: 9%;
  left: 50%;
  width: min(80%, 280px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 213, 75, .2);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(43, 91, 230, .42), rgba(27, 51, 127, .08) 55%, transparent 70%);
  box-shadow: 0 0 50px rgba(54, 102, 242, .18);
  transform: translateX(-50%);
}

.aurelion-figure img {
  position: relative;
  z-index: 2;
  display: block;
  max-width: 100%;
  height: 100%;
  max-height: 44vh;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 18px 25px rgba(0, 0, 0, .35));
}

.aurelion-figure img.is-missing {
  display: none;
}

.aurelion-fallback {
  position: absolute;
  z-index: 1;
  top: 17%;
  display: none;
  width: min(72%, 220px);
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid rgba(255, 215, 81, .38);
  border-radius: 50%;
  background: linear-gradient(145deg, #173eaa, #081849);
  box-shadow: 0 20px 55px rgba(0, 0, 0, .34);
}

.aurelion-figure img.is-missing + .aurelion-fallback {
  display: grid;
}

.aurelion-fallback span {
  position: absolute;
  top: 15%;
  right: 18%;
  color: var(--gold);
  font-size: 1.4rem;
}

.aurelion-fallback strong {
  color: var(--gold);
  font-family: var(--display);
  font-size: 5rem;
}

.guide-bubble {
  position: relative;
  z-index: 3;
  padding: clamp(13px, 1.1vw, 18px);
  border: 1px solid rgba(139, 167, 235, .24);
  border-radius: 18px;
  background: rgba(10, 25, 68, .8);
  box-shadow: 0 14px 35px rgba(0, 0, 0, .23);
  backdrop-filter: blur(14px);
}

.guide-bubble::before {
  position: absolute;
  top: -7px;
  left: 32px;
  width: 13px;
  height: 13px;
  border-top: 1px solid rgba(139, 167, 235, .24);
  border-left: 1px solid rgba(139, 167, 235, .24);
  background: #0b1b4b;
  content: "";
  transform: rotate(45deg);
}

.guide-bubble__eyebrow {
  color: var(--gold);
  font-size: .52rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.guide-bubble p {
  margin: 7px 0 0;
  color: #dbe4fa;
  font-size: clamp(.69rem, .73vw, .84rem);
  font-weight: 600;
  line-height: 1.55;
}

.answer-memory {
  position: relative;
  z-index: 2;
  padding-top: 4px;
}

.answer-memory > p {
  margin: 0 0 8px;
  color: #7183ad;
  font-size: .5rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.answer-memory > div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.memory-chip {
  max-width: 100%;
  padding: 5px 8px;
  overflow: hidden;
  border: 1px solid rgba(127, 153, 218, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  color: #b9c6e4;
  font-size: .51rem;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.experience-panel {
  background:
    radial-gradient(circle at 82% 18%, rgba(44, 79, 198, .17), transparent 31%),
    radial-gradient(circle at 12% 88%, rgba(68, 35, 173, .18), transparent 39%),
    linear-gradient(145deg, rgba(8, 21, 59, .98), rgba(5, 12, 37, .99));
}

.experience-panel__texture {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(116, 147, 225, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(116, 147, 225, .035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 60% 50%, #000, transparent 80%);
}

.screen {
  width: 100%;
  min-height: 100%;
  padding: clamp(25px, 3.2vw, 58px);
}

.screen.is-entering {
  animation: screen-in .42s var(--ease) both;
}

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

.screen-label {
  margin: 0;
  color: var(--gold);
  font-size: clamp(.56rem, .57vw, .68rem);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.screen-label span {
  margin-right: 5px;
}

.welcome-screen {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .62fr) minmax(250px, .38fr);
  align-items: center;
  gap: clamp(25px, 4vw, 70px);
}

.welcome-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.welcome-copy h1 {
  max-width: 800px;
  margin: clamp(14px, 2vh, 22px) 0 0;
  font-family: var(--display);
  font-size: clamp(2.7rem, 4.6vw, 6.5rem);
  line-height: .95;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.welcome-copy h1 em {
  color: var(--gold);
  font-style: normal;
}

.welcome-lead {
  max-width: 670px;
  margin: clamp(17px, 2.3vh, 28px) 0 0;
  color: #b7c4df;
  font-size: clamp(.82rem, .95vw, 1.08rem);
  line-height: 1.65;
}

.welcome-lead strong {
  color: #eff3ff;
}

.welcome-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(18px, 2.5vh, 30px);
}

.welcome-facts span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, .035);
  color: #8797bb;
  font-size: .65rem;
  font-weight: 700;
}

.welcome-facts b {
  color: var(--gold-2);
  font-family: var(--display);
}

.welcome-actions,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: clamp(22px, 3vh, 34px);
}

.primary-button,
.secondary-button,
.icon-button,
.back-button,
.close-comparison {
  display: inline-flex;
  min-height: 47px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 13px;
  font-size: .72rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform .22s var(--ease), box-shadow .22s, border-color .22s, background .22s;
}

.primary-button {
  padding: 0 19px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: var(--ink);
  box-shadow: 0 12px 30px rgba(255, 200, 46, .2);
}

.primary-button span {
  font-size: 1rem;
}

.primary-button:hover {
  box-shadow: 0 16px 38px rgba(255, 200, 46, .34);
  transform: translateY(-2px);
}

.secondary-button,
.icon-button,
.back-button,
.close-comparison {
  padding: 0 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .035);
  color: #d7e0f6;
}

.secondary-button:hover,
.icon-button:hover,
.back-button:hover,
.close-comparison:hover {
  border-color: rgba(255, 200, 46, .42);
  background: rgba(255, 200, 46, .08);
  color: var(--gold-2);
}

.privacy-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 16px 0 0;
  color: #68799e;
  font-size: .59rem;
  font-weight: 600;
}

.privacy-note span {
  color: #6de1b1;
}

.welcome-compass {
  position: relative;
  display: grid;
  place-items: center;
  justify-self: center;
  width: min(30vw, 410px);
  aspect-ratio: 1;
}

.compass-rings {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  border: 1px solid rgba(111, 145, 241, .16);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(43, 81, 192, .2) 0 12%, transparent 13% 40%, rgba(53, 91, 201, .07) 41% 42%, transparent 43% 100%);
  box-shadow: inset 0 0 70px rgba(39, 75, 178, .09), 0 0 70px rgba(21, 59, 169, .08);
}

.compass-rings::before,
.compass-rings::after {
  position: absolute;
  border: 1px solid rgba(133, 157, 225, .13);
  border-radius: 50%;
  content: "";
}

.compass-rings::before { inset: 9%; }
.compass-rings::after { inset: 28%; }

.compass-star {
  color: var(--gold);
  font-size: clamp(4rem, 8vw, 8rem);
  text-shadow: 0 0 35px rgba(255, 200, 46, .28);
  transform: rotate(9deg);
}

.compass-rings i {
  position: absolute;
  color: #6679aa;
  font-size: .65rem;
  font-style: normal;
  font-weight: 800;
}

.compass-rings .north { top: 6%; }
.compass-rings .east { right: 6%; }
.compass-rings .south { bottom: 6%; }
.compass-rings .west { left: 6%; }

.welcome-compass > p {
  position: absolute;
  bottom: -9px;
  margin: 0;
  color: #dbe5fa;
  font-family: var(--display);
  font-size: clamp(.8rem, 1vw, 1.1rem);
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.welcome-compass > p span {
  display: block;
  margin-bottom: 2px;
  color: var(--gold);
  font-family: var(--body);
  font-size: .5rem;
  letter-spacing: .12em;
}

.question-screen {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: clamp(18px, 2.1vh, 27px);
}

.question-progress {
  display: grid;
  grid-template-columns: auto minmax(180px, 360px);
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.question-progress > div:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}

.question-progress span,
.question-progress strong {
  font-size: .59rem;
  font-weight: 800;
}

.question-progress span {
  color: var(--gold);
  letter-spacing: .07em;
  text-transform: uppercase;
}

.question-progress strong {
  color: #8292b8;
}

.progress-track {
  position: relative;
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, .08);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), #fff0a2);
  box-shadow: 0 0 14px rgba(255, 200, 46, .38);
  transition: width .45s var(--ease);
}

.question-copy h2 {
  max-width: 950px;
  margin: 9px 0 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 3.7rem);
  line-height: 1.04;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.question-copy > p:last-child {
  max-width: 760px;
  margin: 10px 0 0;
  color: #9cacca;
  font-size: clamp(.72rem, .78vw, .9rem);
  line-height: 1.55;
}

.option-grid {
  display: grid;
  align-content: center;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, .8vw, 13px);
}

.option-card {
  position: relative;
  display: grid;
  min-height: clamp(104px, 14vh, 145px);
  grid-template-columns: 42px minmax(0, 1fr);
  align-content: center;
  align-items: center;
  gap: 11px;
  padding: clamp(13px, 1.2vw, 20px);
  overflow: hidden;
  border: 1px solid rgba(139, 163, 220, .17);
  border-radius: 17px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015)),
    rgba(11, 27, 69, .72);
  color: #edf2ff;
  text-align: left;
  cursor: pointer;
  isolation: isolate;
  transition: transform .22s var(--ease), border-color .22s, background .22s, box-shadow .22s;
}

.option-card::before {
  position: absolute;
  z-index: -1;
  right: -20%;
  bottom: -60%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(58, 99, 221, .17);
  content: "";
  filter: blur(24px);
}

.option-card:hover {
  border-color: rgba(101, 140, 245, .48);
  background-color: rgba(16, 39, 100, .82);
  transform: translateY(-3px);
}

.option-card[aria-pressed="true"] {
  border-color: rgba(255, 200, 46, .76);
  background:
    radial-gradient(circle at 0 0, rgba(255, 200, 46, .16), transparent 43%),
    linear-gradient(145deg, rgba(43, 73, 157, .7), rgba(11, 28, 70, .92));
  box-shadow: 0 12px 32px rgba(0, 0, 0, .2), inset 0 0 0 1px rgba(255, 200, 46, .13);
}

.option-card__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(112, 145, 234, .24);
  border-radius: 13px;
  background: rgba(48, 83, 185, .18);
  color: #a9c1ff;
  font-size: 1.35rem;
}

.option-card[aria-pressed="true"] .option-card__icon {
  border-color: rgba(255, 200, 46, .35);
  background: rgba(255, 200, 46, .12);
  color: var(--gold);
}

.option-card__copy {
  min-width: 0;
}

.option-card strong,
.option-card small {
  display: block;
}

.option-card strong {
  font-family: var(--display);
  font-size: clamp(.7rem, .78vw, .9rem);
  line-height: 1.3;
}

.option-card small {
  margin-top: 5px;
  color: #8495bb;
  font-size: clamp(.54rem, .56vw, .65rem);
  line-height: 1.4;
}

.option-card__check {
  position: absolute;
  top: 11px;
  right: 11px;
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border: 1px solid rgba(144, 166, 218, .25);
  border-radius: 50%;
  color: transparent;
  font-size: .55rem;
}

.option-card[aria-pressed="true"] .option-card__check {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
}

.question-actions {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  padding-top: clamp(12px, 1.5vh, 20px);
  border-top: 1px solid rgba(139, 163, 220, .12);
}

.question-actions p {
  margin: 0;
  color: #66779e;
  font-size: .58rem;
  font-weight: 700;
  text-align: center;
}

.analysis-screen {
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.analysis-compass {
  position: relative;
  display: grid;
  width: clamp(150px, 18vw, 250px);
  aspect-ratio: 1;
  place-items: center;
  margin-bottom: 30px;
  border: 1px solid rgba(115, 147, 231, .18);
  border-radius: 50%;
}

.analysis-compass::before,
.analysis-compass::after {
  position: absolute;
  border: 1px solid rgba(115, 147, 231, .14);
  border-radius: 50%;
  content: "";
}

.analysis-compass::before { inset: 14%; }
.analysis-compass::after { inset: 32%; }

.analysis-compass span {
  z-index: 2;
  color: var(--gold);
  font-size: clamp(3.8rem, 7vw, 7rem);
  animation: compass-search 2.4s var(--ease) infinite;
}

.analysis-compass i {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7e9eff;
  box-shadow: 0 0 14px currentColor;
}

.analysis-compass i:nth-of-type(1) { top: 10%; left: 33%; }
.analysis-compass i:nth-of-type(2) { right: 8%; bottom: 36%; animation-delay: .25s; }
.analysis-compass i:nth-of-type(3) { bottom: 12%; left: 23%; animation-delay: .45s; }

@keyframes compass-search {
  0%, 100% { transform: rotate(-9deg) scale(.94); }
  50% { transform: rotate(16deg) scale(1.04); }
}

.analysis-screen h2 {
  margin: 10px 0 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.5vw, 4rem);
  letter-spacing: -.04em;
}

.analysis-screen > p:not(.screen-label) {
  max-width: 580px;
  margin: 14px 0 0;
  color: #9daccc;
  font-size: .82rem;
  line-height: 1.6;
}

.analysis-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.analysis-steps span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #66789f;
  font-size: .55rem;
  font-weight: 800;
}

.analysis-steps span.is-done {
  border-color: rgba(90, 218, 168, .35);
  color: #73dfb7;
}

.result-screen {
  display: block;
  overflow-y: auto;
}

.result-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.result-heading h2 {
  margin: 7px 0 0;
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.5vw, 3rem);
  letter-spacing: -.04em;
}

.match-score {
  position: relative;
  display: grid;
  width: 96px;
  height: 96px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--gold) var(--score), rgba(255, 255, 255, .08) 0);
  box-shadow: 0 0 35px rgba(255, 200, 46, .11);
}

.match-score::before {
  position: absolute;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #0a1945;
  content: "";
}

.match-score span,
.match-score p {
  position: relative;
  z-index: 1;
}

.match-score span {
  align-self: end;
  color: var(--gold);
  font-family: var(--display);
  line-height: 1;
}

.match-score strong {
  font-size: 1.45rem;
}

.match-score small {
  font-size: .58rem;
}

.match-score p {
  align-self: start;
  margin: 3px 0 0;
  color: #7e8fb5;
  font-size: .43rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.best-match {
  display: grid;
  grid-template-columns: minmax(210px, .35fr) minmax(0, .65fr);
  gap: clamp(20px, 2.5vw, 42px);
  margin-top: 24px;
  padding: clamp(16px, 1.7vw, 28px);
  border: 1px solid rgba(142, 165, 224, .18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 0 100%, color-mix(in srgb, var(--park-accent, #416cf2) 22%, transparent), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018)),
    rgba(10, 25, 66, .72);
}

.best-match__visual {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 39%, color-mix(in srgb, var(--park-accent, #416cf2) 45%, transparent), transparent 32%),
    linear-gradient(160deg, rgba(32, 65, 157, .48), rgba(5, 14, 43, .92));
}

.best-match__visual::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(4, 11, 34, .04) 38%, rgba(4, 11, 34, .2) 58%, rgba(4, 11, 34, .92) 100%),
    linear-gradient(90deg, rgba(7, 19, 63, .08), transparent 45%);
  content: "";
  pointer-events: none;
}

.best-match__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.04) contrast(1.03);
}

.park-monogram {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: grid;
  width: 128px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  background: rgba(5, 15, 47, .54);
  color: #fff;
  font-family: var(--display);
  font-size: 2.7rem;
  font-weight: 800;
  letter-spacing: -.08em;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .25);
  transform: translate(-50%, -50%);
}

.best-match__visual > p {
  position: absolute;
  right: 14px;
  bottom: 13px;
  left: 14px;
  z-index: 3;
  margin: 0;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .8);
}

.best-match__visual > p span,
.best-match__visual > p strong {
  display: block;
}

.best-match__visual > p span {
  color: var(--gold);
  font-size: .5rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.best-match__visual > p strong {
  margin-top: 3px;
  font-family: var(--display);
  font-size: .66rem;
}

.best-match__copy {
  align-self: center;
}

.result-overline {
  margin: 0;
  color: #7f91b7;
  font-size: .54rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.best-match__copy h3 {
  margin: 7px 0 0;
  color: var(--gold);
  font-family: var(--display);
  font-size: clamp(2rem, 3.25vw, 4rem);
  line-height: 1;
  letter-spacing: -.05em;
}

.result-highlight {
  margin: 12px 0 0;
  color: #eef3ff;
  font-family: var(--display);
  font-size: clamp(.86rem, 1vw, 1.15rem);
  font-weight: 700;
  line-height: 1.45;
}

.result-summary {
  max-width: 780px;
  margin: 8px 0 0;
  color: #aebbd8;
  font-size: .72rem;
  line-height: 1.6;
}

.reason-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.reason-list li {
  position: relative;
  padding: 11px 10px 10px 30px;
  border: 1px solid rgba(133, 159, 222, .15);
  border-radius: 12px;
  background: rgba(255, 255, 255, .035);
  color: #c9d4ed;
  font-size: .58rem;
  font-weight: 700;
  line-height: 1.4;
}

.reason-list li::before {
  position: absolute;
  top: 11px;
  left: 10px;
  display: grid;
  width: 14px;
  height: 14px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 200, 46, .12);
  color: var(--gold);
  content: "✓";
  font-size: .48rem;
  font-weight: 900;
}

.result-watch {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 11px;
  padding: 10px 12px;
  border-left: 2px solid var(--gold);
  border-radius: 0 10px 10px 0;
  background: rgba(255, 200, 46, .055);
}

.result-watch > span {
  display: grid;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 200, 46, .4);
  border-radius: 50%;
  color: var(--gold);
  font-family: serif;
  font-size: .66rem;
  font-weight: 800;
}

.result-watch p {
  margin: 0;
  color: #8f9fc0;
  font-size: .56rem;
  line-height: 1.5;
}

.result-watch strong,
.result-watch p span {
  display: block;
}

.result-watch strong {
  margin-bottom: 2px;
  color: #dbe4fa;
}

.result-actions {
  margin-top: 15px;
}

.alternatives,
.comparison {
  margin-top: 22px;
}

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

.section-heading span {
  color: var(--gold);
  font-size: .48rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.section-heading h3 {
  margin: 3px 0 0;
  font-family: var(--display);
  font-size: clamp(.95rem, 1.3vw, 1.4rem);
}

.section-heading > p {
  max-width: 390px;
  margin: 0;
  color: #68799f;
  font-size: .55rem;
  text-align: right;
}

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

.alternative-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, .03);
}

.alternative-card__rank {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 200, 46, .23);
  border-radius: 11px;
  color: var(--gold);
  font-family: var(--display);
  font-size: .62rem;
}

.alternative-card strong,
.alternative-card small {
  display: block;
}

.alternative-card p {
  min-width: 0;
  margin: 0;
}

.alternative-card strong {
  font-family: var(--display);
  font-size: .7rem;
}

.alternative-card small {
  margin-top: 3px;
  color: #7889ad;
  font-size: .52rem;
}

.alternative-card__score {
  color: #e9efff;
  font-family: var(--display);
  font-size: .82rem;
  font-weight: 800;
}

.alternative-card a {
  grid-column: 2 / -1;
  width: fit-content;
  color: var(--gold);
  font-size: .55rem;
  font-weight: 800;
}

.comparison {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(5, 15, 45, .55);
}

.close-comparison {
  min-height: 35px;
  font-size: .56rem;
}

.comparison-table {
  overflow-x: auto;
}

.comparison-table table {
  width: 100%;
  min-width: 670px;
  border-collapse: collapse;
  font-size: .57rem;
}

.comparison-table th,
.comparison-table td {
  padding: 10px;
  border-bottom: 1px solid rgba(134, 158, 219, .12);
  text-align: center;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  color: #7f90b6;
  text-align: left;
}

.comparison-table th:not(:first-child) {
  color: var(--gold-2);
  font-family: var(--display);
}

.comparison-meter {
  display: inline-flex;
  gap: 2px;
}

.comparison-meter i {
  width: 13px;
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .09);
}

.comparison-meter i.is-on {
  background: var(--gold);
}

.result-footer {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(139, 163, 220, .12);
}

.result-footer > p {
  flex: 1;
  margin: 0;
  color: #66779b;
  font-size: .5rem;
  line-height: 1.5;
}

.app-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 15px;
  padding: 0 clamp(16px, 2vw, 38px);
  border-top: 1px solid rgba(147, 170, 227, .1);
  background: rgba(3, 9, 29, .78);
  color: #52638b;
  font-size: .48rem;
}

.app-footer > p {
  margin: 0;
}

.app-footer > p:first-child span {
  margin-right: 5px;
  color: var(--gold);
  font-size: .4rem;
}

.app-footer > p:last-child {
  text-align: right;
}

.app-footer nav {
  display: flex;
  gap: 15px;
}

.app-footer a:hover {
  color: var(--gold);
}

.toast {
  position: fixed;
  z-index: 90;
  right: 18px;
  bottom: 48px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 200, 46, .3);
  border-radius: 11px;
  background: #0e2157;
  color: #eef3ff;
  font-size: .67rem;
  font-weight: 800;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .32);
}

.toast.is-visible {
  display: block !important;
  animation: toast-in .25s var(--ease) both;
}

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

.noscript-message {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-content: center;
  padding: 30px;
  background: var(--night);
  text-align: center;
}

.noscript-message a {
  color: var(--gold);
}

@media (min-width: 1041px) and (max-height: 760px) {
  :root {
    --header-h: 66px;
    --footer-h: 30px;
  }

  .app-brand__logo {
    width: 46px;
    height: 46px;
  }

  .screen {
    padding-block: 24px;
  }

  .aurelion-panel {
    padding-block: 18px;
  }

  .aurelion-figure img {
    max-height: 35vh;
  }

  .option-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .option-card {
    min-height: 92px;
  }
}

@media (max-width: 1040px) {
  .compass-app {
    display: block;
  }

  .app-header {
    position: sticky;
    top: 0;
    min-height: 68px;
  }

  .simulator-shell {
    display: block;
  }

  .aurelion-panel {
    display: grid;
    min-height: auto;
    grid-template-columns: auto minmax(120px, .35fr) minmax(0, .65fr);
    grid-template-rows: auto auto;
    align-items: center;
    margin-bottom: 9px;
  }

  .aurelion-heading {
    grid-column: 1;
  }

  .aurelion-figure {
    min-height: 170px;
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .aurelion-figure img {
    max-height: 190px;
  }

  .guide-bubble {
    grid-column: 3;
    grid-row: 1;
  }

  .answer-memory {
    grid-column: 3;
    grid-row: 2;
  }

  .experience-panel {
    min-height: calc(100dvh - 260px);
  }

  .screen {
    min-height: inherit;
  }

  .app-footer {
    min-height: 34px;
  }
}

@media (max-width: 760px) {
  .app-header {
    grid-template-columns: 1fr auto;
    padding-inline: 12px;
  }

  .app-signature {
    display: none;
  }

  .app-brand__logo {
    width: 45px;
    height: 45px;
  }

  .simulator-shell {
    padding: 7px;
  }

  .aurelion-panel,
  .experience-panel {
    border-radius: 18px;
  }

  .aurelion-panel {
    grid-template-columns: 82px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 9px;
    padding: 12px;
  }

  .aurelion-heading {
    display: none;
  }

  .aurelion-figure {
    min-height: 112px;
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .aurelion-figure img {
    max-height: 120px;
  }

  .guide-bubble {
    grid-column: 2;
    grid-row: 1;
    padding: 11px;
  }

  .guide-bubble::before {
    top: 23px;
    left: -7px;
    border-top: 0;
    border-bottom: 1px solid rgba(139, 167, 235, .24);
  }

  .guide-bubble p {
    font-size: .66rem;
  }

  .answer-memory {
    grid-column: 2;
    grid-row: 2;
  }

  .screen {
    padding: 22px 16px;
  }

  .welcome-screen {
    display: block;
    min-height: 620px;
  }

  .welcome-copy h1 {
    font-size: clamp(2.6rem, 13vw, 4.8rem);
  }

  .welcome-compass {
    position: absolute;
    right: -40px;
    bottom: 30px;
    z-index: -1;
    width: 250px;
    opacity: .38;
  }

  .question-progress {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .question-copy h2 {
    font-size: clamp(1.7rem, 8vw, 2.7rem);
  }

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

  .option-card {
    min-height: 118px;
    grid-template-columns: 35px minmax(0, 1fr);
    padding: 12px;
  }

  .option-card__icon {
    width: 35px;
    height: 35px;
    font-size: 1.05rem;
  }

  .question-actions {
    grid-template-columns: auto 1fr;
  }

  .question-actions p {
    display: none;
  }

  .primary-button--next {
    justify-self: end;
  }

  .result-heading {
    align-items: flex-start;
  }

  .match-score {
    width: 82px;
    height: 82px;
  }

  .match-score::before {
    width: 66px;
    height: 66px;
  }

  .best-match {
    grid-template-columns: 1fr;
  }

  .best-match__visual {
    min-height: 235px;
  }

  .reason-list {
    grid-template-columns: 1fr;
  }

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

  .section-heading {
    align-items: flex-start;
  }

  .section-heading > p {
    display: none;
  }

  .result-footer {
    flex-wrap: wrap;
  }

  .result-footer > p {
    flex-basis: 100%;
  }

  .app-footer {
    grid-template-columns: 1fr auto;
    min-height: 36px;
  }

  .app-footer nav {
    display: none;
  }
}

@media (max-width: 460px) {
  .app-brand__name {
    display: none;
  }

  .header-link {
    min-height: 38px;
    padding-inline: 10px;
    font-size: .61rem;
  }

  .welcome-facts span {
    min-height: 34px;
    padding-inline: 8px;
    font-size: .55rem;
  }

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

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

  .option-card {
    min-height: 86px;
  }

  .question-screen {
    gap: 16px;
  }

  .question-actions .primary-button,
  .question-actions .back-button {
    padding-inline: 12px;
    font-size: .64rem;
  }

  .result-heading h2 {
    font-size: 1.35rem;
  }

  .match-score {
    width: 72px;
    height: 72px;
  }

  .match-score::before {
    width: 58px;
    height: 58px;
  }

  .match-score strong {
    font-size: 1.15rem;
  }

  .best-match__copy h3 {
    font-size: 2rem;
  }

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

  .result-footer .back-button,
  .result-footer .secondary-button {
    flex: 1;
    padding-inline: 10px;
    font-size: .58rem;
  }
}

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