:root {
  --ex-dark-bg: #0a0612;
  --ex-dark-panel: rgba(22, 12, 36, 0.72);
  --ex-dark-panel-strong: rgba(30, 16, 49, 0.88);
  --ex-dark-line: rgba(221, 203, 255, 0.18);
  --ex-dark-text: #fffafd;
  --ex-dark-muted: #d2c7df;
  --ex-dark-soft: #aa9bbd;
  --ex-dark-purple: #bd72ff;
  --ex-dark-purple-deep: #7c45e8;
  --ex-dark-pink: #e972b7;
  --ex-dark-shadow: 0 18px 48px rgba(2, 0, 10, 0.34);
}

html.excompat-dark,
html.excompat-dark body {
  min-height: 100%;
  background: var(--ex-dark-bg) !important;
  color: var(--ex-dark-text) !important;
}

html.excompat-dark body {
  position: relative;
  overflow-x: hidden;
  isolation: isolate;
}

html.excompat-dark body::before {
  content: "";
  position: fixed;
  inset: -2px;
  z-index: -2;
  background-image:
    linear-gradient(180deg, rgba(7, 4, 13, 0.18), rgba(7, 4, 13, 0.42)),
    url("/love-halo-v1ns/assets/quiz-bg-calm-stars-v1.webp");
  background-position: 50% 50%;
  background-size: cover;
  background-repeat: no-repeat;
  transform: translateZ(0);
}

html.excompat-dark body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 82% 12%, rgba(137, 83, 206, 0.08), transparent 27%),
    radial-gradient(circle at 12% 88%, rgba(196, 79, 145, 0.07), transparent 31%),
    linear-gradient(180deg, rgba(5, 3, 10, 0.03), rgba(5, 3, 10, 0.2));
}

/* Decision screens explicitly retain the same quiet background. This selector
   stays separate so later per-screen adjustments do not reintroduce the old
   relationship artwork on the start or other quiz routes. */
html.excompat-dark.ex-calm-quiz-bg body::before {
  background-image:
    linear-gradient(180deg, rgba(7, 4, 13, 0.18), rgba(7, 4, 13, 0.42)),
    url("/love-halo-v1ns/assets/quiz-bg-calm-stars-v1.webp");
  background-position: 50% 50%;
  background-size: cover;
}

html.excompat-dark.ex-calm-quiz-bg body::after {
  background:
    radial-gradient(circle at 82% 12%, rgba(137, 83, 206, 0.08), transparent 27%),
    radial-gradient(circle at 12% 88%, rgba(196, 79, 145, 0.07), transparent 31%),
    linear-gradient(180deg, rgba(5, 3, 10, 0.03), rgba(5, 3, 10, 0.2));
}

html.excompat-dark .page {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  background: transparent !important;
  color: var(--ex-dark-text) !important;
}

html.excompat-dark .app-header,
html.excompat-dark .app-header-center,
html.excompat-dark .quiz-logo-bar,
html.excompat-dark .progress-header,
html.excompat-dark .progress-top {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html.excompat-dark .quiz-logo-bar,
html.excompat-dark .app-header,
html.excompat-dark .app-header-center {
  padding-top: max(12px, env(safe-area-inset-top)) !important;
}

html.excompat-dark .progress-header {
  position: relative;
}

html.excompat-dark .mg-info-progress {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 20px 10px;
}

html.excompat-dark .mg-info-progress .progress-top {
  min-height: 44px;
}

html.excompat-dark .progress-header::before {
  content: "";
  position: absolute;
  inset: -26px -18px -12px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 3, 16, 0.72), rgba(8, 3, 16, 0.08));
}

html.excompat-dark .logo,
html.excompat-dark .logo-sm {
  filter: brightness(0) invert(1) drop-shadow(0 4px 14px rgba(255, 255, 255, 0.16));
}

html.excompat-dark .burger,
html.excompat-dark .back {
  color: #f6efff !important;
}

html.excompat-dark .progress-track {
  display: block !important;
  width: 100% !important;
  height: 3px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

html.excompat-dark .progress-fill {
  display: block !important;
  height: 100% !important;
  border-radius: inherit !important;
  background: linear-gradient(90deg, #e86ca8, #9862ee) !important;
  box-shadow: 0 0 8px rgba(190, 112, 255, 0.42);
  transition: width 540ms cubic-bezier(0.22, 1, 0.36, 1) !important;
  will-change: width;
}

html.excompat-dark .progress-top {
  grid-template-columns: 28px minmax(0, 1fr) 28px !important;
  margin-bottom: 9px !important;
}

html.excompat-dark .category,
html.excompat-dark .step-badge,
html.excompat-dark .accent {
  color: #dcc8ff !important;
}

html.excompat-dark .rotator-line,
html.excompat-dark .rotator-line.on {
  color: #bd72ff !important;
  text-shadow:
    0 0 18px rgba(174, 86, 255, 0.42),
    0 3px 22px rgba(68, 19, 126, 0.42) !important;
}

html.excompat-dark .rotator-line.on {
  opacity: 1 !important;
}

html.excompat-dark .prelanding .hero[data-creative-hero] {
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 635 / 448;
  object-fit: cover;
  object-position: center;
}

html.excompat-dark .static-line {
  color: #ffffff !important;
  opacity: 1 !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.52) !important;
}

html.excompat-dark .step-badge {
  display: block !important;
  width: 28px !important;
  min-width: 28px !important;
  height: 1px !important;
  padding: 0 !important;
  border: 0 !important;
  visibility: hidden !important;
  background: none !important;
  box-shadow: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html.excompat-dark .progress-fill {
    transition: none !important;
  }
}

html.excompat-dark .heading,
html.excompat-dark .question,
html.excompat-dark .scan-title,
html.excompat-dark h1,
html.excompat-dark h2,
html.excompat-dark h3 {
  color: var(--ex-dark-text) !important;
  text-shadow: 0 2px 20px rgba(1, 0, 7, 0.48);
}

html.excompat-dark .question-sub,
html.excompat-dark .consent,
html.excompat-dark .privacy,
html.excompat-dark .footer,
html.excompat-dark .static-line,
html.excompat-dark .rotator,
html.excompat-dark p {
  color: var(--ex-dark-muted) !important;
}

html.excompat-dark .heading .static-line {
  color: #ffffff !important;
  opacity: 1 !important;
}

html.excompat-dark .badge-text small {
  color: #d8cce7 !important;
  opacity: 0.88 !important;
}

html.excompat-dark .badge-text b {
  color: #fff !important;
  opacity: 1 !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

html.excompat-dark .option-card,
html.excompat-dark .input,
html.excompat-dark .date-wheel,
html.excompat-dark .scan-upload,
html.excompat-dark .zodiac-info,
html.excompat-dark .chip,
html.excompat-dark .badge,
html.excompat-dark .scan-example,
html.excompat-dark .phone-input,
html.excompat-dark .country-select {
  color: var(--ex-dark-text) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.025)),
    var(--ex-dark-panel) !important;
  border: 1px solid var(--ex-dark-line) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    var(--ex-dark-shadow) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
}

html.excompat-dark .option-card {
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

html.excompat-dark .option-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 18%, rgba(255, 255, 255, 0.08) 48%, transparent 78%);
  opacity: 0.35;
  transform: translateX(-70%);
}

html.excompat-dark .option-card:hover,
html.excompat-dark .option-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(199, 161, 255, 0.52) !important;
  background: rgba(37, 20, 61, 0.86) !important;
}

html.excompat-dark .option-card:active {
  transform: scale(0.985);
}

html.excompat-dark .option-label,
html.excompat-dark .wheel-item.selected,
html.excompat-dark input,
html.excompat-dark select,
html.excompat-dark textarea {
  color: var(--ex-dark-text) !important;
}

html.excompat-dark .option-emoji {
  display: grid;
  place-items: center;
  min-width: 40px;
  min-height: 40px;
  border: 0 !important;
  border-radius: 14px;
  background: rgba(180, 119, 255, 0.08) !important;
  box-shadow: none !important;
  color: #eadcff !important;
  text-shadow: 0 0 16px rgba(190, 118, 255, 0.35);
}

html.excompat-dark .option-emoji img {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 7px 14px rgba(87, 45, 166, 0.28));
}

html.excompat-dark .wheel-item {
  color: rgba(222, 211, 234, 0.46) !important;
}

/* Date and time wheels. The centre band is one fixed element (.date-wheel::before);
   the selected value must not carry a background of its own, because it scrolls with
   the list — two highlights sliding past each other read as loose coloured blocks
   while the wheel spins. The band itself kept the light theme's surface colour, which
   is why it showed up as a white slab on a dark screen. */
html.excompat-dark .date-wheel::before {
  background: rgba(124, 69, 232, 0.16) !important;
  border: 1px solid rgba(207, 176, 255, 0.26) !important;
  border-radius: 14px !important;
}

html.excompat-dark .wheel-item.selected {
  background: none !important;
  border-color: transparent !important;
  text-shadow: 0 0 18px rgba(189, 114, 255, 0.4);
}

html.excompat-dark .zodiac-badge,
html.excompat-dark .zodiac-chip {
  color: #f6eefe !important;
  background: rgba(23, 12, 39, 0.75) !important;
  border-color: rgba(220, 195, 255, 0.22) !important;
}

html.excompat-dark .zodiac-badge {
  display: grid !important;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px !important;
  border: 1px solid rgba(220, 195, 255, 0.2) !important;
  border-radius: 22px !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.02)),
    rgba(24, 13, 40, 0.74) !important;
  box-shadow: var(--ex-dark-shadow) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
}

html.excompat-dark .zodiac-glyph {
  display: grid !important;
  place-items: center;
  width: 58px !important;
  height: 58px !important;
  border-radius: 19px !important;
  color: #fff !important;
  background: linear-gradient(145deg, #a66af2, #6537cf) !important;
  box-shadow: 0 10px 28px rgba(92, 47, 180, 0.36) !important;
  font-family: "Times New Roman", "Noto Sans Symbols 2", serif !important;
  font-variant-emoji: text;
  font-size: 31px !important;
  font-weight: 400 !important;
}

html.excompat-dark .zodiac-info {
  min-width: 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html.excompat-dark .zodiac-info b {
  display: block;
  margin-bottom: 7px;
  color: #fff !important;
  font-size: 20px !important;
  line-height: 1.1;
}

html.excompat-dark .zodiac-chips {
  display: flex !important;
  flex-wrap: wrap;
  gap: 6px;
}

html.excompat-dark .zodiac-chips em {
  padding: 5px 9px !important;
  border: 1px solid rgba(218, 194, 255, 0.18) !important;
  border-radius: 999px !important;
  color: #eadfff !important;
  background: rgba(151, 94, 234, 0.2) !important;
  font-size: 12px !important;
  font-style: normal !important;
}

html.excompat-dark .zodiac-info small {
  display: block;
  margin-top: 8px;
  color: var(--ex-dark-muted) !important;
  font-size: 12px !important;
  line-height: 1.35;
}

html.excompat-dark .scan-example {
  border: 1px solid rgba(222, 203, 255, 0.2) !important;
  border-radius: 24px !important;
  background: rgba(22, 12, 36, 0.82) !important;
  box-shadow: var(--ex-dark-shadow) !important;
  filter: none !important;
}

html.excompat-dark .scan-example.correct {
  filter: none !important;
}

html.excompat-dark .mg-palm-optional-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  margin: 4px auto 8px;
  padding: 0 12px;
  border: 1px solid rgba(202, 168, 255, 0.32);
  border-radius: 999px;
  color: #d8bdff;
  background: rgba(143, 82, 222, 0.14);
  font: 700 11px/1 Inter, system-ui, sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
}

html.excompat-dark .scan-title[data-mg-palm-optional-tuned='1'] {
  max-width: 560px;
  margin: 0 auto 7px;
  font-size: 28px;
  line-height: 1.12;
  text-align: center;
}

html.excompat-dark .mg-palm-optional-copy {
  max-width: 560px;
  margin: 0 auto 14px;
  color: var(--ex-dark-muted) !important;
  font: 500 14px/1.45 Inter, system-ui, sans-serif;
  text-align: center;
}

html.excompat-dark .mg-palm-entry-skip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin: 9px 0 0;
  padding: 12px 18px;
  border: 1px solid rgba(220, 201, 248, 0.3);
  border-radius: 20px;
  color: #eee5f8;
  background: rgba(255, 255, 255, 0.035);
  font: 700 15px/1.2 Inter, system-ui, sans-serif;
  letter-spacing: 0;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

html.excompat-dark .mg-palm-entry-skip:hover {
  border-color: rgba(220, 201, 248, 0.52);
  background: rgba(255, 255, 255, 0.075);
}

html.excompat-dark .mg-palm-entry-skip:active {
  transform: translateY(1px);
}

html.excompat-dark .mg-palm-entry-skip:focus-visible {
  outline: 2px solid #bf83ff;
  outline-offset: 3px;
}

html.excompat-dark .scale-annot-bubble {
  color: #fff !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(28, 15, 47, 0.92) !important;
  border: 1px solid rgba(222, 199, 255, 0.28) !important;
  box-shadow: 0 12px 34px rgba(2, 0, 10, 0.35) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
}

html.excompat-dark .scale-ends {
  color: #f0e8f8 !important;
  font-weight: 700 !important;
  opacity: 1 !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.72);
}

html.excompat-dark .scale-range {
  accent-color: #a75df3;
}

html.excompat-dark .progress-bar-wrap,
html.excompat-dark .progress-bar {
  background: rgba(255, 255, 255, 0.16) !important;
}

html.excompat-dark .progress-pct {
  color: #c989ff !important;
  font-size: 18px !important;
  font-weight: 850 !important;
  opacity: 1 !important;
  text-shadow: 0 0 17px rgba(176, 89, 255, 0.42);
}

html.excompat-dark .page:has(.progress-pct) .question-sub,
html.excompat-dark .page:has(.progress-pct) .scan-status,
html.excompat-dark .page:has(.progress-pct) p {
  color: #eee4f7 !important;
  opacity: 1 !important;
  font-weight: 650 !important;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.74);
}

html.excompat-dark .tc-intro {
  color: var(--ex-dark-text) !important;
  background: rgba(24, 13, 40, 0.68) !important;
  border: 1px solid rgba(220, 195, 255, 0.18) !important;
  box-shadow: var(--ex-dark-shadow) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
}

html.excompat-dark .tc-intro-text {
  color: #eee5f7 !important;
  opacity: 1 !important;
}

html.excompat-dark .tp-card {
  color: #fff !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.02)),
    rgba(25, 13, 42, 0.9) !important;
  border: 1px solid rgba(218, 193, 255, 0.22) !important;
  box-shadow: 0 15px 40px rgba(2, 0, 10, 0.32) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
}

html.excompat-dark .tp-card.on {
  border-color: #a865f5 !important;
  background:
    linear-gradient(145deg, rgba(181, 106, 255, 0.22), rgba(203, 74, 183, 0.12)),
    rgba(31, 15, 52, 0.94) !important;
  box-shadow: 0 16px 44px rgba(112, 54, 211, 0.38), inset 0 0 0 1px rgba(220, 187, 255, 0.16) !important;
}

html.excompat-dark .tp-price,
html.excompat-dark .tp-card.on .tp-price {
  color: #fff !important;
  background: none !important;
  -webkit-text-fill-color: #fff !important;
  opacity: 1 !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}

html.excompat-dark .tp-card.on .tp-price {
  color: #d49bff !important;
  -webkit-text-fill-color: #d49bff !important;
}

html.excompat-dark .tp-cap,
html.excompat-dark .tp-card.on .tp-cap {
  color: #d8cde4 !important;
  opacity: 1 !important;
}

html.excompat-dark .tp-check {
  color: #fff !important;
  background: rgba(159, 92, 240, 0.16) !important;
  border-color: rgba(222, 199, 255, 0.34) !important;
}

html.excompat-dark .palm-shot,
html.excompat-dark .palm-legend-chip {
  color: #fff !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.02)),
    rgba(25, 13, 42, 0.86) !important;
  border: 1px solid rgba(218, 193, 255, 0.2) !important;
  box-shadow: 0 14px 38px rgba(2, 0, 10, 0.28) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
}

html.excompat-dark .palm-shot img {
  background: rgba(12, 7, 22, 0.7) !important;
}

html.excompat-dark .palm-shot figcaption,
html.excompat-dark .palm-legend-chip {
  color: #efe7f8 !important;
  opacity: 1 !important;
}

html.excompat-dark .cta {
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  background: linear-gradient(100deg, #7847ed 0%, #9848e0 50%, #c148bd 100%) !important;
  box-shadow:
    0 14px 38px rgba(113, 48, 214, 0.48),
    0 0 24px rgba(178, 77, 237, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  text-shadow: 0 1px 6px rgba(25, 8, 54, 0.45);
}

html.excompat-dark .cta:hover,
html.excompat-dark .cta:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

html.excompat-dark .prelanding .hero {
  background:
    linear-gradient(180deg, rgba(14, 7, 26, 0.16), rgba(14, 7, 26, 0.62)),
    rgba(20, 10, 34, 0.32) !important;
  border: 1px solid rgba(226, 205, 255, 0.15);
  box-shadow: var(--ex-dark-shadow);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

html.excompat-dark .prelanding .chip,
html.excompat-dark .prelanding .badge {
  color: #f8f1ff !important;
}

html.excompat-dark .prelanding .chip svg,
html.excompat-dark .prelanding .chip [class*="icon"],
html.excompat-dark .prelanding .badge-icon.accent {
  color: #c683ff !important;
}

html.excompat-dark .prelanding .chips {
  display: grid !important;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 9px !important;
  width: 100%;
}

html.excompat-dark[data-creative-id] .prelanding .chips {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

html.excompat-dark[data-creative-id] .prelanding .rotator {
  height: 64px;
}

html.excompat-dark[data-creative-id] .prelanding .rotator-line {
  filter: blur(4px);
  opacity: 0;
  transform: scale(0.985);
  transition:
    opacity 440ms ease,
    filter 440ms ease,
    transform 440ms ease;
  will-change: opacity, filter, transform;
}

html.excompat-dark[data-creative-id] .prelanding .rotator-line.on {
  filter: blur(0);
  opacity: 1 !important;
  transform: scale(1);
}

html.excompat-dark[data-creative-id] .prelanding .heading .static-line {
  margin-top: 9px;
  color: var(--ex-dark-muted) !important;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.46) !important;
}

html.excompat-dark[data-creative-id] .prelanding .heading {
  margin-bottom: 15px;
}

html.excompat-dark .prelanding .chip {
  width: 100% !important;
  min-width: 0 !important;
  justify-content: center !important;
  padding-inline: 10px !important;
  font-size: 13px !important;
  white-space: nowrap;
}

html.excompat-dark[data-creative-id] .prelanding .chip svg {
  flex: 0 0 15px;
}

html.excompat-dark[data-creative-id] .prelanding .cta {
  margin-top: clamp(28px, 4vh, 44px);
}

html.excompat-dark .prelanding .chip:nth-child(3) {
  grid-column: 1 / -1;
  width: min(100%, 278px) !important;
  justify-self: center;
}

html.excompat-dark a {
  color: #caa9ff !important;
}

/* Personalized zodiac bridge: a compact micro-result between birth details and
   the relationship questions. The copy stays fully visible, but is separated
   into three scannable ideas so the screen does not read like a text wall. */
html.excompat-dark .mg-zodiac-page {
  max-width: 520px;
  padding-bottom: max(30px, env(safe-area-inset-bottom));
}

html.excompat-dark .mg-zodiac-page .progress-header {
  padding-bottom: 13px;
}

html.excompat-dark .mg-zodiac-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
}

html.excompat-dark .mg-zodiac-kicker {
  margin: 5px 0 12px;
  color: #e7b7ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
}

html.excompat-dark .mg-zodiac-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1fr);
  align-items: center;
  width: 100%;
  margin: 0 auto 17px;
}

html.excompat-dark .mg-zodiac-sign {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

html.excompat-dark .mg-zodiac-symbol {
  display: grid;
  width: 68px;
  height: 68px;
  margin-bottom: 8px;
  place-items: center;
  border: 1px solid rgba(236, 213, 255, 0.3);
  border-radius: 50%;
  color: #fff;
  background: rgba(33, 18, 53, 0.88);
  box-shadow: 0 12px 30px rgba(4, 0, 12, 0.34), inset 0 0 0 5px rgba(189, 114, 255, 0.06);
  font-family: "Times New Roman", "Noto Sans Symbols 2", serif;
  font-size: 35px;
  font-variant-emoji: text;
  font-weight: 400;
  line-height: 1;
}

html.excompat-dark .mg-zodiac-sign-ex .mg-zodiac-symbol {
  border-color: rgba(249, 184, 213, 0.32);
  box-shadow: 0 12px 30px rgba(4, 0, 12, 0.34), inset 0 0 0 5px rgba(233, 114, 183, 0.06);
}

html.excompat-dark .mg-zodiac-sign b {
  overflow-wrap: anywhere;
  color: #fffafd;
  font-family: var(--font-serif), "PT Serif", Georgia, serif;
  font-size: 17px;
  line-height: 1.2;
}

html.excompat-dark .mg-zodiac-sign small {
  margin-top: 3px;
  color: var(--ex-dark-soft);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
}

html.excompat-dark .mg-zodiac-connection {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2px 30px;
  color: #f1c46f;
}

html.excompat-dark .mg-zodiac-connection i {
  width: 21px;
  height: 1px;
  background: rgba(241, 196, 111, 0.48);
}

html.excompat-dark .mg-zodiac-connection span {
  padding: 0 5px;
  font-size: 15px;
  line-height: 1;
}

html.excompat-dark .mg-zodiac-headline {
  max-width: 470px;
  margin: 0 auto 15px;
  color: #fffafd;
  font-family: var(--font-serif), "PT Serif", Georgia, serif;
  font-size: 24px !important;
  font-weight: 700;
  line-height: 1.12;
  text-align: center;
}

html.excompat-dark .mg-zodiac-insights {
  border-top: 1px solid rgba(221, 203, 255, 0.17);
}

html.excompat-dark .mg-zodiac-insight {
  padding: 15px 2px 16px;
  border-bottom: 1px solid rgba(221, 203, 255, 0.17);
}

html.excompat-dark .mg-zodiac-insight-label {
  margin-bottom: 5px;
  color: #d68dff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
}

html.excompat-dark .mg-zodiac-insight h2 {
  margin: 0 0 6px;
  color: #fffafd;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.28;
}

html.excompat-dark .mg-zodiac-insight p {
  margin: 0;
  color: var(--ex-dark-muted);
  font-size: 14px;
  line-height: 1.55;
}

html.excompat-dark .mg-zodiac-insight-focus {
  margin: 12px 0 0;
  padding: 15px 16px 16px;
  border: 1px solid rgba(234, 184, 255, 0.22);
  border-left: 3px solid #e972b7;
  border-radius: 8px;
  background: rgba(40, 21, 62, 0.72);
  box-shadow: 0 14px 34px rgba(2, 0, 10, 0.25);
}

html.excompat-dark .mg-zodiac-insight-focus .mg-zodiac-insight-label {
  color: #f1c46f;
}

html.excompat-dark .mg-zodiac-cta {
  flex: none;
  margin-top: 22px;
}

html.excompat-dark .mg-zodiac-footnote {
  max-width: 390px;
  margin: 12px auto 0;
  color: var(--ex-dark-soft);
  font-size: 11.5px;
  line-height: 1.45;
  text-align: center;
}

html.excompat-dark .mg-zodiac-loading,
html.excompat-dark .mg-zodiac-error {
  display: flex;
  flex: 1;
  min-height: 420px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

html.excompat-dark .mg-zodiac-loading-orbit,
html.excompat-dark .mg-zodiac-error > span {
  margin-bottom: 20px;
}

html.excompat-dark .mg-zodiac-loading-orbit {
  position: relative;
  width: 100px;
  height: 100px;
  border: 1px solid rgba(196, 158, 255, 0.25);
  border-radius: 50%;
  box-shadow: 0 0 48px rgba(147, 82, 237, 0.2);
}

html.excompat-dark .mg-zodiac-loading-orbit::before {
  position: absolute;
  inset: 13px;
  border: 2px solid rgba(223, 198, 255, 0.18);
  border-top-color: #d69bff;
  border-right-color: #7ea9ff;
  border-radius: 50%;
  animation: mg-zodiac-spin 1.8s linear infinite;
  content: "";
}

html.excompat-dark .mg-zodiac-loading-orbit::after {
  position: absolute;
  inset: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #f4c9ff, #9b58ec 48%, #37176c);
  box-shadow: 0 0 28px rgba(193, 111, 255, 0.62);
  color: #fff;
  content: "✦";
  font-size: 24px;
}

html.excompat-dark .mg-zodiac-error > span {
  color: #f1c46f;
  font-size: 32px;
  animation: mg-zodiac-pulse 1.5s ease-in-out infinite;
}

html.excompat-dark .mg-zodiac-loading b,
html.excompat-dark .mg-zodiac-error h1 {
  color: #fffafd;
  font-family: var(--font-serif), "PT Serif", Georgia, serif;
  font-size: 24px;
  line-height: 1.2;
}

html.excompat-dark .mg-zodiac-loading > span:last-child,
html.excompat-dark .mg-zodiac-error p {
  max-width: 330px;
  margin: 7px 0 0;
  color: var(--ex-dark-muted);
  font-size: 14px;
  line-height: 1.5;
}

html.excompat-dark .mg-zodiac-error-cta {
  flex: none;
  margin-top: 24px;
}

html.excompat-dark .mg-zodiac-noscript {
  padding: 24px;
  color: #fff;
  text-align: center;
}

@keyframes mg-zodiac-pulse {
  50% { opacity: 0.45; transform: scale(0.92); }
}

@keyframes mg-zodiac-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  html.excompat-dark .mg-zodiac-loading-orbit::before,
  html.excompat-dark .mg-zodiac-error > span {
    animation: none;
  }
}

@media (min-width: 700px) {
  html.excompat-dark .mg-zodiac-page {
    padding-inline: 30px;
  }

  html.excompat-dark .mg-zodiac-insight p {
    font-size: 14.5px;
  }

  html.excompat-dark .mg-zodiac-headline {
    font-size: 24px !important;
  }
}

@media (max-width: 380px) {
  html.excompat-dark .mg-zodiac-pair {
    grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr);
  }

  html.excompat-dark .mg-zodiac-symbol {
    width: 58px;
    height: 58px;
    font-size: 27px;
  }

  html.excompat-dark .mg-zodiac-connection i {
    width: 14px;
  }

  html.excompat-dark .mg-zodiac-sign b {
    font-size: 15px;
  }

  html.excompat-dark .mg-zodiac-headline {
    font-size: 22px !important;
  }
}

@media (max-width: 520px) {
  html.excompat-dark body::before {
    background-position: 50% 46%;
  }

  html.excompat-dark .page {
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }

  /* The exported scan examples are single composite images, so their artwork and
     rounded card are the same element. Keep their contents effectively full-size
     and recover the needed CTA space mostly from the two oversized card gaps. */
  html.excompat-dark .scan-title {
    margin-bottom: 7px;
  }

  html.excompat-dark .mg-palm-optional-copy {
    margin-bottom: 12px;
    font-size: 13px;
  }

  html.excompat-dark .scan-example {
    width: 100%;
    height: min(205px, calc((100vw - 40px) * 0.55));
    margin-bottom: 7px;
    object-fit: cover;
    object-position: center 60%;
  }

  html.excompat-dark .scan-example.correct {
    object-position: center 65%;
  }

  html.excompat-dark .scan-upload {
    margin-bottom: 5px;
  }

  html.excompat-dark .option-card,
  html.excompat-dark .input,
  html.excompat-dark .date-wheel,
  html.excompat-dark .scan-upload {
    border-radius: 20px !important;
  }
}

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