/* Compass — the scene is the stage; the conversation lives inside it. */
.compass {
  --compass-silver: #d0deee;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: calc(var(--header-h, 88px) + 34px) clamp(70px, 6vw, 112px) 92px;
  overflow: hidden;
  color: #edf3fa;
  background: #07101b;
  scroll-margin-top: 0;
}
.compass [hidden] { display: none !important; }
.compass::after { display: none; }
.compass-scene, .compass-shade { position: absolute; inset: 0; pointer-events: none; }
.compass-scene {
  z-index: -3;
  opacity: 0;
  background-color: #07101b;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: var(--compass-scene-position, center);
  transform: scale(1.012);
  transition: opacity 1.15s ease;
  animation: compass-world-drift 32s ease-in-out infinite alternate;
  will-change: transform, opacity;
}
.compass-scene.is-current { opacity: 1; }
.compass-shade {
  z-index: -2;
  background:
    radial-gradient(ellipse at 100% 76%, rgba(2, 8, 16, .82) 0, rgba(2, 8, 16, .53) 24%, rgba(2, 8, 16, .14) 43%, transparent 64%),
    linear-gradient(0deg, rgba(2, 8, 16, .48) 0, transparent 30%),
    linear-gradient(180deg, rgba(2, 8, 16, .18) 0, transparent 17%);
}
.compass-shell {
  position: relative;
  z-index: 1;
  direction: rtl;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: min(440px, 38vw);
  min-width: 0;
  margin-left: auto;
  margin-right: 0;
  padding: 0;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .35);
}
[data-language='en'] .compass-shell { direction: ltr; }
.compass-intro {
  direction: inherit;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
  row-gap: 2px;
  text-align: start;
}
.compass-emblem { width: 22px; height: 22px; margin: 0; opacity: .9; }
.compass-emblem svg { display: block; width: 100%; height: 100%; fill: none; stroke: #cedff2; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.compass-emblem svg circle:nth-child(2) { stroke: rgba(206, 223, 242, .35); }
.compass-emblem .compass-needle { fill: rgba(206, 223, 242, .22); stroke: #eff6ff; stroke-width: 1.25; }
.compass-label { margin: 0; color: #c5d8ef; font: 14px/1.6 'Amiri', Georgia, serif; }
.compass-label .ui-en { font: 9px/1.5 Arial, sans-serif; letter-spacing: .22em; }
.compass-intro h2 { grid-column: 1 / -1; justify-self: start; max-width: 100%; margin: 4px 0 0; padding: 4px 12px; border-radius: 20px; background: rgba(5, 17, 32, .72); font: 400 clamp(28px, 2.35vw, 34px)/1.5 'Aref Ruqaa', 'Amiri', Georgia, serif; text-wrap: balance; }
[data-language='en'] .compass-intro h2 { font: 400 clamp(27px, 2.25vw, 33px)/1.15 'Cormorant Garamond', Georgia, serif; }
.compass-description { grid-column: 1 / -1; justify-self: start; max-width: 380px; margin: 7px 0 0; padding: 4px 10px; border: 0; border-radius: 16px; background: rgba(5, 17, 32, .72); color: #d2dfed; font: 14px/1.7 'Amiri', Georgia, serif; }
.compass-description .ui-en { font: 12px/1.65 Georgia, serif; }
.compass-invitation { display: none; }
.compass-card {
  direction: inherit;
  position: relative;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
}
.compass-card::before { display: none; }
.compass-card-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 8px; }
.compass-step-label { padding: 1px 7px; border-radius: 12px; background: rgba(5, 17, 32, .76); color: #c6d7e9; font: 12px/1.6 'Amiri', Georgia, serif; }
.compass-step-label .ui-en { font: 8px/1.5 Arial, sans-serif; letter-spacing: .13em; }
#compass-progress-text { direction: ltr; padding: 2px 7px; border-radius: 12px; background: rgba(5, 17, 32, .76); color: #c6d7e9; font: 10px/1.5 Arial, sans-serif; letter-spacing: .12em; white-space: nowrap; }
.compass-meter { height: 1px; overflow: hidden; background: rgba(205, 225, 246, .25); }
#compass-progress-fill { display: block; width: 0; height: 100%; background: #deedff; transition: width .4s ease; }
.compass-feedback, .compass-help { display: none; min-height: 0; margin: 0; padding: 0; }
.compass-questions { margin-top: 18px; }
#compass-question { margin: 0; padding: 9px 17px; border: 1px solid rgba(203, 225, 248, .22); border-radius: 25px; background: rgba(5, 17, 32, .86); box-shadow: 0 4px 15px rgba(0, 0, 0, .14); color: #f3f7fc; font: 400 clamp(28px, 2.3vw, 33px)/1.5 'Amiri', Georgia, serif; text-wrap: pretty; }
[data-language='en'] #compass-question { font: 400 clamp(25px, 2.15vw, 31px)/1.28 'Cormorant Garamond', Georgia, serif; }
#compass-question:focus { outline: none; }
.compass-options { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 18px; }
.compass-options:has(> .compass-option:nth-child(5)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.compass-option {
  direction: inherit;
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 6px 14px;
  padding-inline-end: 33px;
  border: 1px solid rgba(203, 225, 248, .36);
  border-radius: 24px;
  color: #edf5ff;
  background: rgba(5, 17, 32, .84);
  box-shadow: 0 3px 12px rgba(0, 0, 0, .12);
  backdrop-filter: none;
  text-align: start;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.compass-option::after { content: ''; position: absolute; inset-inline-end: 14px; top: calc(50% - 3px); width: 6px; height: 6px; border: 1px solid #bed4ee; border-radius: 50%; }
.compass-option:hover { color: #fff; border-color: #e4f0ff; background: rgba(11, 31, 52, .94); }
.compass-option.is-selected, .compass-option[aria-pressed='true'] { border-color: #ecf5ff; background: rgba(14, 37, 60, .96); }
.compass-option.is-selected::after, .compass-option[aria-pressed='true']::after { background: #e6f2ff; border-color: #e6f2ff; }
.compass-option:disabled { cursor: default; }
.compass-option-title { display: block; width: 100%; font: 400 21px/1.4 'Amiri', Georgia, serif; }
[data-language='en'] .compass-option-title { font: 400 16px/1.4 'Cormorant Garamond', Georgia, serif; }
.compass-option-detail { display: none; }
.compass-option-mark, .compass-option > mark { position: absolute; inset-inline-end: 12px; top: calc(50% - 8px); width: 16px; height: 16px; background: none; color: #d9eaff; font: 10px/16px Arial, sans-serif; }
.compass-option:has(.compass-option-mark:not(:empty))::after, .compass-option:has(> mark:not(:empty))::after { display: none; }
.compass-options:has(> .compass-option:nth-child(5)) .compass-option { padding-inline: 12px; padding-inline-end: 27px; }
.compass-options:has(> .compass-option:nth-child(5)) .compass-option::after { inset-inline-end: 11px; }
.compass-options:has(> .compass-option:nth-child(5)) .compass-option-title { font-size: 20px; }
[data-language='en'] .compass-options:has(> .compass-option:nth-child(5)) .compass-option-title { font-size: 15px; }
.compass-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; padding: 0; border: 0; }
.compass-controls button { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 4px 8px; border: 0; border-radius: 16px; color: #c6d7e9; background: rgba(5, 17, 32, .76); box-shadow: none; font: 13px/1.5 'Amiri', Georgia, serif; cursor: pointer; text-align: start; }
[data-language='en'] .compass-controls button { font: 10px/1.5 Arial, sans-serif; }
.compass-controls button:hover { color: #f0f7ff; }
.compass-controls button:disabled { opacity: .3; cursor: default; }
.compass-controls svg { display: block; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
[data-language='en'] .compass-back svg { transform: rotate(180deg); }
.compass-option:focus-visible, .compass-controls button:focus-visible, #compass-discover:focus-visible { outline: 2px solid #e4f1ff; outline-offset: 4px; }

/* The book arrives within the same landscape, with no enclosing panel. */
.compass-result { padding: 9px 0 0; }
.compass-result-header { margin: 0 0 19px; text-align: center; }
.compass-result-kicker { width: fit-content; max-width: 100%; margin: 0 auto; padding: 6px 14px; border-radius: 24px; background: rgba(5, 17, 32, .84); color: #e4f1ff; font: 400 27px/1.5 'Amiri', Georgia, serif; text-shadow: 0 2px 6px #020810, 0 0 22px rgba(2,8,16,.9); }
[data-language='en'] .compass-result-kicker { font: 400 27px/1.2 'Cormorant Garamond', Georgia, serif; }
.compass-result-kicker::after { content: ''; display: block; width: 38px; height: 1px; margin: 13px auto 0; background: #c1d7f1; opacity: .7; }
.compass-result-layout { direction: ltr; display: grid; grid-template-columns: 210px minmax(0, 1fr); align-items: center; gap: 31px; }
.compass-result-cover-wrap { position: relative; display: grid; place-items: center; padding: 10px 0; isolation: isolate; }
.compass-result-cover-wrap::before, .compass-result-cover-wrap::after { display: none; }
.compass-result-cover { display: block; width: min(210px, 100%); max-height: 318px; height: auto; object-fit: contain; border-radius: 2px; box-shadow: none; filter: drop-shadow(0 22px 26px rgba(0, 0, 0, .4)); transform: perspective(1100px) rotateY(-5deg); }
.compass-result-copy { direction: rtl; min-width: 0; text-align: right; }
[data-language='en'] .compass-result-copy { direction: ltr; text-align: left; }
.compass-result-title { display: flex; flex-direction: column; align-items: flex-start; margin: 0 0 15px; font-weight: 400; }
.compass-result-title .ar, .compass-result-title .en { width: fit-content; max-width: 100%; padding: 3px 12px; border-radius: 18px; background: rgba(5, 17, 32, .76); }
.compass-result-title .ar { display: block; margin: 0; color: #f2f7fd; font: 400 33px/1.5 'Aref Ruqaa', 'Amiri', Georgia, serif; }
.compass-result-title .en { display: block; margin-top: 5px; color: #bfd2e8; font: 400 22px/1.15 'Cormorant Garamond', Georgia, serif; }
[data-language='en'] .compass-result-title .en { color: #f2f7fd; font-size: 29px; }
[data-language='en'] .compass-result-title .ar { color: #bfd2e8; font-size: 24px; }
.compass-result-explanation { margin: 15px 0 18px; color: #d1dfef; font: 17px/1.85 'Amiri', Georgia, serif; }
.compass-result-explanation p { margin: 0; padding: 7px 12px; border-radius: 18px; background: rgba(5, 17, 32, .84); }
[data-language='en'] .compass-result-explanation { font: 14px/1.7 Georgia, serif; }
.compass-result-evidence-label, .compass-result-reasons { display: none; }
#compass-discover { width: 100%; max-width: 350px; min-height: 49px; margin-top: 0; padding: 11px 16px; border-radius: 24px; font-size: 16px; text-shadow: none; box-shadow: none; }
[data-language='en'] #compass-discover { font: 12px/1.5 Arial, sans-serif; }
.compass-result-note { width: fit-content; max-width: 100%; margin: 12px 0 0; padding: 3px 9px; border-radius: 14px; background: rgba(5, 17, 32, .76); color: #c0d3e9; font: 12px/1.7 'Amiri', Georgia, serif; }
[data-language='en'] .compass-result-note { font: 10px/1.65 Georgia, serif; }
.compass.is-result .compass-shell { width: min(720px, 59vw); max-width: 720px; gap: 0; }
.compass.is-result .compass-shade { background: linear-gradient(90deg,transparent 22%,rgba(2,8,16,.3) 45%,rgba(2,8,16,.7) 100%),linear-gradient(0deg,rgba(2,8,16,.38),transparent 55%); }
.compass.is-result .compass-intro, .compass.is-result .compass-card-top, .compass.is-result .compass-meter { display: none; }
.compass.is-result .compass-controls { margin-top: 25px; }
.is-result #compass-result { animation: compass-result-arrive .75s ease both; }
.is-result .compass-result-cover { animation: compass-book-arrive 1s cubic-bezier(.18, .7, .2, 1) .08s both; }
.compass-fallback { margin: 25px 0 0; text-align: center; font-size: 14px; }
.compass-world-caption { position: absolute; z-index: 1; left: clamp(28px, 5vw, 88px); bottom: 53px; max-width: 45%; margin: 0; padding: 3px 9px; border-radius: 14px; background: rgba(5, 17, 32, .76); color: #c7dbef; font: 13px/1.8 'Amiri', Georgia, serif; text-shadow: 0 2px 15px rgba(0, 0, 0, .35); }
.compass-world-caption > span { display: block; margin-top: 2px; color: #93abc5; font-size: 10px; line-height: 1.7; }
[data-language='en'] .compass-world-caption { font: 11px/1.7 Georgia, serif; }
[data-language='en'] .compass-world-caption > span { font-size: 9px; }
@keyframes compass-world-drift { from { transform: scale(1.012) translate3d(0, 0, 0); } to { transform: scale(1.03) translate3d(-.4%, .3%, 0); } }
@keyframes compass-result-arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes compass-book-arrive { from { opacity: 0; transform: perspective(1100px) rotateY(-12deg) translateY(16px) scale(.96); } to { opacity: 1; transform: perspective(1100px) rotateY(-5deg) translateY(0) scale(1); } }

@media (min-width: 981px) and (max-height: 780px) {
  .compass { padding-top: calc(var(--header-h, 88px) + 22px); padding-bottom: 58px; }
  .compass-shell { gap: 14px; }
  .compass-description { display: none; }
  .compass-intro h2 { font-size: 29px; }
  [data-language='en'] .compass-intro h2 { font-size: 28px; }
  .compass-questions { margin-top: 14px; }
  #compass-question { font-size: 28px; line-height: 1.4; }
  [data-language='en'] #compass-question { font-size: 27px; }
  .compass-options { margin-top: 14px; gap: 7px; }
  .compass-option { min-height: 40px; }
  .compass-option-title { font-size: 20px; }
  .compass-result-cover { max-height: 280px; width: 185px; }
}
@media (min-width: 601px) and (max-width: 1100px) {
  .compass { padding-inline: 58px; }
  .compass-shell { width: min(420px, 49vw); }
  .compass-intro h2 { font-size: 30px; }
  [data-language='en'] .compass-intro h2 { font-size: 29px; }
  .compass.is-result .compass-shell { width: min(650px, 75vw); }
  .compass-result-layout { grid-template-columns: 185px minmax(0, 1fr); gap: 26px; }
  .compass-result-cover { width: 185px; }
}
@media (max-width: 600px) {
  .compass {
    min-height: 100svh;
    padding: 92px 22px 84px;
    align-items: flex-end;
    scroll-margin-top: 0;
  }
  .compass-scene { background-position: var(--compass-scene-position-mobile, 40% center); }
  .compass-shade {
    background:
      linear-gradient(0deg, rgba(2, 8, 16, .9) 0, rgba(2, 8, 16, .75) 27%, rgba(2, 8, 16, .26) 48%, transparent 65%),
      linear-gradient(180deg, rgba(2, 8, 16, .13), transparent 25%);
  }
  .compass-shell { width: 100%; max-width: none; gap: 14px; margin: 0; }
  .compass-intro { grid-template-columns: 18px minmax(0, 1fr); column-gap: 8px; row-gap: 1px; }
  .compass-emblem { width: 18px; height: 18px; }
  .compass-label { font-size: 12px; line-height: 1.5; }
  .compass-label .ui-en { font-size: 8px; letter-spacing: .16em; }
  .compass-intro h2 { margin-top: 2px; font-size: 28px; line-height: 1.45; }
  [data-language='en'] .compass-intro h2 { font-size: 28px; line-height: 1.1; }
  .compass-description, .compass-invitation { display: none; }
  .compass-world-caption { display: none; }
  .compass-card-top { margin-bottom: 7px; gap: 9px; }
  .compass-step-label { font-size: 11px; }
  .compass-step-label .ui-en { font-size: 7px; letter-spacing: .08em; }
  #compass-progress-text { font-size: 9px; letter-spacing: .08em; }
  .compass-questions { margin-top: 14px; }
  #compass-question { font-size: 27px; line-height: 1.45; }
  [data-language='en'] #compass-question { font-size: 25px; line-height: 1.25; }
  .compass-options { gap: 7px; margin-top: 14px; }
  .compass-option { min-height: 43px; padding: 6px 11px; padding-inline-end: 26px; }
  .compass-option::after { inset-inline-end: 11px; width: 5px; height: 5px; top: calc(50% - 2.5px); }
  .compass-option-title { font-size: 20px; line-height: 1.4; }
  [data-language='en'] .compass-option-title { font-size: 15px; line-height: 1.4; }
  .compass-options:has(> .compass-option:nth-child(5)) .compass-option { min-height: 44px; padding: 6px 9px; padding-inline-end: 21px; }
  .compass-options:has(> .compass-option:nth-child(5)) .compass-option::after { inset-inline-end: 8px; }
  .compass-options:has(> .compass-option:nth-child(5)) .compass-option-title { font-size: 19px; line-height: 1.4; }
  [data-language='en'] .compass-options:has(> .compass-option:nth-child(5)) .compass-option-title { font-size: 14px; line-height: 1.35; }
  .compass-controls { margin-top: 11px; gap: 14px; }
  .compass-controls button { min-height: 30px; font-size: 12px; }
  [data-language='en'] .compass-controls button { font-size: 9px; }
  .compass-controls svg { width: 15px; height: 15px; }
  .compass.is-result { padding-top: 90px; padding-bottom: 80px; align-items: center; }
  .compass.is-result .compass-shade { background: linear-gradient(180deg,rgba(2,8,16,.5),rgba(2,8,16,.2) 36%,rgba(2,8,16,.85) 80%,rgba(2,8,16,.9)); }
  .compass.is-result .compass-shell { width: 100%; max-width: none; }
  .compass-result { padding-top: 0; }
  .compass-result-header { margin-bottom: 13px; }
  .compass-result-kicker { font-size: 23px; line-height: 1.5; }
  [data-language='en'] .compass-result-kicker { font-size: 24px; }
  .compass-result-kicker::after { width: 29px; margin-top: 9px; }
  .compass-result-layout { display: flex; flex-direction: column; gap: 12px; }
  .compass-result-cover-wrap { width: 100%; padding: 6px 0; }
  .compass-result-cover { width: 180px; max-height: 270px; }
  .compass-result-copy { width: 100%; text-align: center; }
  [data-language='en'] .compass-result-copy { text-align: center; }
  .compass-result-title { align-items: center; margin-bottom: 10px; }
  .compass-result-title .ar { font-size: 29px; line-height: 1.4; }
  .compass-result-title .en { font-size: 19px; line-height: 1.15; margin-top: 3px; }
  [data-language='en'] .compass-result-title .en { font-size: 25px; }
  [data-language='en'] .compass-result-title .ar { font-size: 21px; }
  .compass-result-explanation { margin: 11px 0 14px; font-size: 15px; line-height: 1.7; }
  [data-language='en'] .compass-result-explanation { font-size: 12px; line-height: 1.65; }
  #compass-discover { max-width: none; min-height: 47px; padding: 10px 12px; font-size: 15px; }
  [data-language='en'] #compass-discover { font-size: 11px; }
  .compass-result-note { margin: 8px auto 0; font-size: 11px; line-height: 1.6; }
  [data-language='en'] .compass-result-note { font-size: 9px; }
  .compass.is-result .compass-controls { margin-top: 17px; }
}
@media (max-width: 360px) {
  .compass { padding-inline: 18px; }
  .compass-intro h2 { font-size: 26px; }
  .compass-options:has(> .compass-option:nth-child(5)) .compass-option-title { font-size: 18px; }
  [data-language='en'] .compass-options:has(> .compass-option:nth-child(5)) .compass-option-title { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .compass-scene { transition: none; animation: none; transform: none; }
  #compass-progress-fill, .compass-option { transition: none; }
  .is-result #compass-result, .is-result .compass-result-cover { animation: none; }
}

.compass-world-caption { padding: 4px 11px; border-radius: 18px; background: rgba(5,17,32,.82); }
