* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  background: #e7e2eb;
  font-family: Arial, sans-serif;
}

/* INTRO */

.welcome {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at 50% 25%, #f8f3ff 0, #e7e2eb 56%, #d8cee4 100%);
  transition: opacity .4s ease, visibility .4s ease;
}

.welcome.dismissed {
  opacity: 0;
  visibility: hidden;
}

.welcome-card {
  width: min(760px, 100%);
  padding: 44px;
  border: 1px solid rgba(74, 55, 98, .14);
  border-radius: 28px;
  background: rgba(255, 255, 255, .63);
  box-shadow: 0 25px 80px rgba(62, 42, 85, .14);
  text-align: center;
  backdrop-filter: blur(18px);
}

.welcome-kicker {
  color: #755c98;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 2.4px;
}

.welcome h1 {
  margin: 9px 0 10px;
  color: #2b2038;
  font-family: Georgia, serif;
  font-size: clamp(38px, 7vw, 58px);
  font-weight: normal;
}

.welcome-copy {
  max-width: 540px;
  margin: 0 auto;
  color: #5c5267;
  font-size: 15px;
  line-height: 1.6;
}

.welcome-guide {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 32px 0;
}

.guide-step {
  padding: 20px 14px;
  border-radius: 18px;
  background: rgba(239, 233, 247, .72);
}

.guide-step svg {
  width: 82px;
  height: 62px;
  fill: none;
  stroke: #755c98;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.guide-step svg circle {
  fill: #fff;
}

.guide-step .hold-ring {
  stroke-dasharray: 5 4;
}

.guide-step strong,
.guide-step span {
  display: block;
}

.guide-step strong {
  margin: 8px 0 5px;
  color: #372945;
  font-size: 13px;
}

.guide-step span {
  color: #6f6577;
  font-size: 11px;
  line-height: 1.45;
}

.start-button {
  width: auto;
  height: auto;
  padding: 13px 34px;
  border-radius: 999px;
  background: #59436f;
  box-shadow: 0 5px 0 #372945, 0 10px 25px rgba(55, 41, 69, .2);
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 2px;
}

.welcome-note {
  margin: 17px 0 0;
  color: #827788;
  font-size: 10px;
}

/* DEVICE */

.device-frame {
  position: relative;
  width: min(671px, calc(100vw - 24px));
  aspect-ratio: 1236 / 1273;
  flex: 0 0 auto;
}

.device-frame.real-size {
  width: min(4.19375in, calc(100vw - 24px));
}

.device {
  position: absolute;
  inset: 0 auto auto 0;
  width: 671px;
  height: 691px;
  transform: scale(var(--device-scale, 1));
  transform-origin: top left;
}

.device-view-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
}

.device-frame.alternate-view .device {
  display: none;
}

.device-shell {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
}

/* SCREEN */

.screen {
  --accent: #ad91ff;
  --accent-soft: #7860b7;

  position: absolute;
  left: 209px;
  top: 242px;
  z-index: 1;

  width: 240px;
  height: 259px;

  overflow: hidden;

  border-radius: 28px;
  background: #0d0c13;
  color: white;

  transition:
    box-shadow .35s ease,
    background .35s ease;
}

.screen.off {
  background: #050507;
  box-shadow: inset 0 0 35px #000;
}

.screen.off #screenContent {
  opacity: 0;
}

.screen.edge-left {
  animation: edgeLeft .28s ease;
}

.screen.edge-right {
  animation: edgeRight .28s ease;
}

@keyframes edgeLeft {
  25% { transform: translateX(-6px) rotate(-1deg); }
  50% { transform: translateX(4px) rotate(.6deg); }
  75% { transform: translateX(-2px); }
}

@keyframes edgeRight {
  25% { transform: translateX(6px) rotate(1deg); }
  50% { transform: translateX(-4px) rotate(-.6deg); }
  75% { transform: translateX(2px); }
}

.screen.info {
  --accent: #a993ff;
  --accent-soft: #685a9d;
}

.screen.tools {
  --accent: #ff9cae;
  --accent-soft: #a9586d;
}

#screenContent {
  width: 100%;
  height: 100%;
}

/* PAGE */

.page {
  position: relative;
  height: 100%;
  padding: 13px 16px 11px;

  display: flex;
  flex-direction: column;
}

.page.slide-left {
  animation: slideLeft .18s ease;
}

.page.slide-right {
  animation: slideRight .18s ease;
}

@keyframes slideLeft {
  from {
    opacity: 0;
    transform: translateX(22px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideRight {
  from {
    opacity: 0;
    transform: translateX(-22px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* TOP */

.mode-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;

  font-size: 9px;
  letter-spacing: 1.5px;
}

.mode-name {
  color: var(--accent);
  font-weight: bold;
}

.mode-name,
.planet,
.moon-phase {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.mode-icon,
.planet svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.date {
  opacity: .45;
}

.title {
  margin-top: 11px;

  color: var(--accent);

  text-align: center;
  font-size: 21px;
  font-weight: bold;
  letter-spacing: .5px;
}

.subtitle {
  margin-top: 4px;

  text-align: center;
  font-size: 10px;

  opacity: .5;
}

/* GENERIC CONTENT */

.body-text {
  margin: auto 3px;

  text-align: center;

  font-size: 15px;
  line-height: 1.45;
}

.small-text {
  font-size: 11px;
  line-height: 1.45;

  opacity: .72;
}

/* DAY AT A GLANCE */

.ratings {
  margin-top: 11px;
}

.rating {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 5px 3px;

  border-bottom: 1px solid rgba(255,255,255,.08);

  font-size: 12px;
}

.rating:last-child {
  border-bottom: 0;
}

.stars {
  color: var(--accent);
  letter-spacing: 1px;
}

/* DO / DON'T */

.guidance {
  margin-top: 14px;
}

.guidance-single {
  margin: auto 0;
}

.guidance-box {
  padding: 9px 15px;

  border: 1px solid rgba(255,255,255,.1);
  border-radius: 9px;

  font-size: 15px;
  line-height: 1.65;
}

.guidance-heading {
  margin-bottom: 2px;
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  font-size: 17px;
}

.guidance-heading span {
  color: currentColor;
  opacity: .25;
  transition: color .18s ease, opacity .18s ease;
}

.guidance-heading .active {
  color: var(--accent);
  opacity: 1;
}

/* SKY */

.sky-list {
  margin-top: 14px;
}

.sky-list-expanded {
  margin: auto 0;
}

.sky-row {
  display: flex;
  justify-content: space-between;

  padding: 8px 5px;

  border-bottom: 1px solid rgba(255,255,255,.07);

  font-size: 14px;
}

.sky-row:last-child {
  border-bottom: 0;
}

.moon-card {
  margin-top: 11px;
  padding: 6px 9px;

  text-align: center;

  border: 1px solid var(--accent-soft);
  border-radius: 8px;

  font-size: 11px;
}

.moon-card-expanded {
  margin: auto 0;
  padding: 22px 14px;
  font-size: 16px;
  line-height: 1.4;
}

.moon-card-expanded .planet svg {
  width: 20px;
  height: 20px;
}

.moon-copy {
  display: block;
  margin-top: 14px;
  font-size: 14px;
  opacity: .72;
}

/* TRANSITS */

.transit {
  margin-top: 11px;
  padding: 9px;

  border-left: 2px solid var(--accent);
  background: rgba(255,255,255,.035);

  font-size: 11px;
}

.transit strong {
  color: var(--accent);
}

.transit-expanded {
  margin: auto 0;
  padding: 22px 17px;
  font-size: 15px;
  line-height: 1.5;
}

.transit-expanded strong,
.transit-expanded span {
  display: block;
}

.transit-expanded strong {
  margin-bottom: 12px;
  font-size: 17px;
}

/* REFLECTION */

.quote-card {
  margin-top: 9px;
  padding: 6px 12px;

  border: 1px solid var(--accent-soft);
  border-radius: 10px;

  text-align: center;

  font-size: 12px;
  line-height: 1.5;
}

.reflect-label {
  margin-top: 8px;

  color: var(--accent);

  font-size: 9px;
  letter-spacing: 1.5px;
  text-align: center;
}

.reflection-content {
  margin: auto 0;
}

.quote-card-expanded {
  margin-top: 12px;
  padding: 18px 14px;
  font-size: 16px;
  line-height: 1.55;
}

/* QUEST */

.streak {
  margin-top: 14px;

  display: flex;
  justify-content: center;
  gap: 7px;
}

.dot {
  width: 9px;
  height: 9px;

  border: 1px solid #727272;
  border-radius: 50%;
}

.dot.filled {
  background: #55c978;
  border-color: #55c978;
}

.quest-card {
  margin: auto 0;

  padding: 17px 12px;

  border: 1px solid var(--accent-soft);
  border-radius: 11px;

  text-align: center;

  font-size: 15px;
  line-height: 1.45;
}

.quest-action {
  margin-bottom: 7px;

  color: var(--accent);

  text-align: center;

  font-size: 10px;
}

.streak-count {
  margin-top: 16px;

  color: #ffbf65;

  font-size: 15px;
  letter-spacing: 1.5px;
  font-weight: bold;
  text-align: center;
}

.quest-complete {
  margin: auto 0;

  text-align: center;
}

.check {
  font-size: 27px;
  color: #55c978;
}

.streak-pop {
  animation: streakPop .45s ease;
}

@keyframes streakPop {
  0% {
    transform: scale(.6);
    opacity: 0;
  }

  60% {
    transform: scale(1.18);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* TAROT */

.tarot-card {
  width: 82px;
  height: 122px;

  margin: 22px auto 10px;

  display: flex;
  justify-content: center;
  align-items: center;

  border: 2px solid var(--accent-soft);
  border-radius: 8px;

  background:
    radial-gradient(circle at center,
      rgba(255,255,255,.08),
      rgba(255,255,255,.01));

  color: var(--accent);

  font-size: 34px;
}

.tarot-card.reveal {
  width: 64px;
  height: 88px;
  margin-top: 10px;
  margin-bottom: 6px;
  font-size: 28px;
  animation: tarotFlip .55s ease;
}

@keyframes tarotFlip {
  0% {
    transform: rotateY(90deg) scale(.9);
  }

  100% {
    transform: rotateY(0);
  }
}

.tarot-name {
  text-align: center;

  color: var(--accent);

  font-size: 17px;
  font-weight: bold;
}

.tarot-meaning {
  margin-top: 4px;

  text-align: center;
  font-size: 10px;

  opacity: .6;
}

.tarot-reading {
  margin-top: 8px;
  text-align: center;
  font-size: 12px;
  line-height: 1.35;
  opacity: .72;
}

/* ORACLE */

.oracle-symbol {
  margin: 29px auto 12px;

  width: 75px;
  height: 75px;

  display: flex;
  justify-content: center;
  align-items: center;

  border: 1px solid var(--accent-soft);
  border-radius: 50%;

  color: var(--accent);

  font-size: 28px;
}

.oracle-symbol.thinking {
  animation: oraclePulse .65s infinite alternate;
}

.oracle-intro-symbol {
  width: 62px;
  height: 62px;
  min-width: 62px;
  min-height: 62px;
  margin: 15px auto 8px;
  flex: 0 0 62px;
  aspect-ratio: 1;
  border-radius: 999px;
  animation: oraclePulse 2.4s ease-in-out infinite alternate;
}

.oracle-symbol .mode-icon {
  width: 28px;
  height: 28px;
}

.oracle-thinking-message {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: .4px;
  animation: fadeIn .35s ease;
}

@keyframes oraclePulse {
  from {
    transform: scale(.92) rotate(-5deg);
    opacity: .45;
  }

  to {
    transform: scale(1.08) rotate(5deg);
    opacity: 1;
  }
}

.oracle-answer {
  margin: auto 5px;

  text-align: center;

  font-size: 13px;
  line-height: 1.45;
}

.oracle-answer strong,
.oracle-answer span {
  display: block;
}

.oracle-answer strong {
  margin-bottom: 7px;
  color: var(--accent);
  font-size: 19px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.oracle-title {
  font-size: 18px;
}

.oracle-step {
  margin-top: 5px;
  text-align: center;
  font-size: 8px;
  letter-spacing: 1.3px;
  opacity: .45;
}

.oracle-choice {
  min-height: 88px;
  margin: auto 0;
  padding: 16px 12px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--accent-soft);
  border-radius: 11px;
  text-align: center;
}

.oracle-choice-label {
  color: var(--accent);
  font-size: 18px;
  font-weight: bold;
}

.oracle-choice-copy {
  margin-top: 7px;
  font-size: 10px;
  line-height: 1.4;
  opacity: .62;
}

.oracle-confirm {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 9px;
  letter-spacing: .8px;
}

.oracle-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
  opacity: .5;
  font-size: 9px;
}

.oracle-controls > span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.oracle-controls .counter {
  color: var(--accent);
  opacity: 1;
}

.oracle-topic-label {
  margin-top: 8px;
  color: var(--accent);
  text-align: center;
  font-size: 8px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* COMPATIBILITY */

.compatibility-title {
  overflow: hidden;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compatibility-orbits {
  position: relative;
  width: 76px;
  height: 62px;
  margin: 10px auto 2px;
  flex-shrink: 0;
}

.compatibility-orbits::before,
.compatibility-orbits span {
  position: absolute;
  border: 1px solid var(--accent);
  border-radius: 50%;
}

.compatibility-orbits::before {
  content: "";
  inset: 8px 18px;
  opacity: .35;
}

.compatibility-orbits span {
  top: 19px;
  width: 24px;
  height: 24px;
  background: rgba(255, 156, 174, .12);
  box-shadow: 0 0 13px rgba(255, 156, 174, .25);
}

.compatibility-orbits span:first-child { left: 17px; }
.compatibility-orbits span:last-child { right: 17px; }

.compatibility-intro-copy {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.4;
}

.compatibility-enter {
  margin-top: 6px;
}

.compatibility-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: row;
  gap: 5px;
  align-content: start;
  margin: 9px 0 24px;
}

.compatibility-person {
  min-width: 0;
  padding: 6px 4px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-align: center;
  opacity: .48;
}

.compatibility-person.active,
.compatibility-actions .active,
.compatibility-delete-options .active {
  border-color: var(--accent-soft);
  background: rgba(255, 156, 174, .09);
  opacity: 1;
}

.compatibility-person span,
.compatibility-person strong {
  display: block;
}

.compatibility-person span {
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 14px;
}

.compatibility-person strong {
  overflow: hidden;
  margin-top: 2px;
  font-size: 7px;
  letter-spacing: .5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compatibility-controls {
  position: absolute;
  right: 16px;
  bottom: 11px;
  left: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  font-size: 8px;
  opacity: .58;
}

.compatibility-controls span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.compatibility-name {
  overflow: hidden;
  min-height: 31px;
  margin-top: 18px;
  color: var(--accent);
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 1px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compatibility-key {
  min-width: 80px;
  margin: 14px auto 8px;
  padding: 10px;
  border: 1px solid var(--accent-soft);
  border-radius: 10px;
  color: var(--accent);
  font-size: 15px;
  font-weight: bold;
  text-align: center;
}

.compatibility-name + .compatibility-key + .settings-editor-hint {
  text-align: center;
}

.compatibility-input-modes {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: auto 0 8px;
}

.compatibility-input-modes div {
  padding: 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 9px;
  letter-spacing: .8px;
  opacity: .5;
}

.compatibility-input-modes .active,
.compatibility-name-actions .active {
  border-color: var(--accent-soft);
  background: rgba(255, 156, 174, .09);
  color: var(--accent);
  opacity: 1;
}

.compatibility-mode-hint {
  margin-bottom: 28px;
  text-align: center;
}

.compatibility-name-slots {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  margin: 12px 0 10px;
}

.compatibility-name-slots span {
  height: 27px;
  padding-top: 6px;
  border-bottom: 1px solid var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: bold;
  text-align: center;
}

.compatibility-name-slots span.active {
  border: 1px solid var(--accent);
  border-radius: 5px;
  background: rgba(255, 156, 174, .1);
}

.compatibility-name-actions {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.compatibility-name-actions span {
  padding: 6px 7px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 8px;
  letter-spacing: 0;
  opacity: .55;
}

.compatibility-editor {
  min-height: 86px;
}

.compatibility-signs {
  margin-top: 4px;
  color: var(--accent);
  font-size: 7px;
  letter-spacing: .7px;
  text-align: center;
}

.compatibility-actions {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: auto 0 23px;
}

.compatibility-actions div {
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 8px;
  letter-spacing: .7px;
  opacity: .5;
}

.compatibility-result-head {
  margin-top: 6px;
  text-align: center;
}

.compatibility-result-head strong,
.compatibility-result-head span {
  display: block;
}

.compatibility-result-head strong {
  color: var(--accent);
  font-size: 20px;
  letter-spacing: 1px;
}

.compatibility-result-head span {
  margin-top: 4px;
  font-size: 8px;
  opacity: .62;
}

.compatibility-dimensions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.compatibility-dimensions div {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}

.compatibility-dimensions strong {
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 1px;
}

.compatibility-notes {
  margin-top: 7px;
  font-size: 7px;
  line-height: 1.45;
  opacity: .72;
}

.compatibility-notes strong {
  color: var(--accent);
  font-size: 6px;
  letter-spacing: .5px;
}

.compatibility-reading-kicker {
  margin-top: 10px;
  flex-shrink: 0;
  color: var(--accent);
  font-size: 8px;
  letter-spacing: 1px;
  text-align: center;
}

.compatibility-reading-copy,
.compatibility-guidance-single {
  margin: auto 0 12px;
  padding: 17px 13px;
  border: 1px solid var(--accent-soft);
  border-radius: 11px;
  font-family: Georgia, serif;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

.compatibility-reading-copy {
  margin: 14px 0 3px;
  flex-shrink: 0;
}

.compatibility-guidance-single {
  color: var(--accent);
  font-size: 17px;
}

.compatibility-next-page {
  margin-top: 12px;
  margin-bottom: 22px;
  flex-shrink: 0;
}

.compatibility-dimensions + .compatibility-next-page {
  margin-top: 18px;
}

.compatibility-reading-copy + .compatibility-next-page {
  margin-top: 5px;
}

.compatibility-guidance-loader {
  margin: auto 8px;
  text-align: center;
}

.compatibility-guidance-loader > span {
  display: block;
  color: var(--accent);
  animation: oraclePulse 1.1s ease-in-out infinite alternate;
}

.compatibility-guidance-loader .mode-icon {
  width: 34px;
  height: 34px;
}

.compatibility-guidance-loader p {
  margin: 13px 0 0;
  font-family: Georgia, serif;
  font-size: 13px;
  line-height: 1.4;
}

.compatibility-guidance {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: auto 0 8px;
}

.compatibility-guidance div {
  min-height: 75px;
  padding: 9px 7px;
  border: 1px solid var(--accent-soft);
  border-radius: 9px;
}

.compatibility-guidance strong,
.compatibility-guidance span {
  display: block;
}

.compatibility-guidance strong {
  margin-bottom: 7px;
  color: var(--accent);
  font-size: 8px;
}

.compatibility-guidance span {
  font-size: 8px;
  line-height: 1.35;
}

.compatibility-dynamic,
.compatibility-delete {
  margin-bottom: 27px;
  font-size: 8px;
  line-height: 1.45;
  text-align: center;
  opacity: .65;
}

.compatibility-profile {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: auto 0;
  padding: 13px;
  border: 1px solid var(--accent-soft);
  border-radius: 10px;
  text-align: center;
}

.compatibility-profile strong {
  color: var(--accent);
  font-size: 15px;
}

.compatibility-profile span {
  font-size: 8px;
  opacity: .7;
}

.compatibility-delete {
  margin: auto 14px 13px;
}

.compatibility-delete-options {
  display: flex;
  gap: 7px;
  margin: 0 auto 32px;
}

.compatibility-delete-options span {
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 8px;
  opacity: .5;
}

.compatibility-match-options {
  margin-bottom: 27px;
}

/* SETTINGS */

.settings-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: auto 0;
}

.settings-row {
  min-width: 0;
  padding: 3px 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  opacity: .52;
}

.settings-row.active {
  border-color: var(--accent-soft);
  background: rgba(169, 147, 255, .08);
  opacity: 1;
}

.settings-row span,
.settings-row strong {
  display: block;
}

.settings-row span {
  margin-bottom: 2px;
  font-size: 7px;
  letter-spacing: 1px;
}

.settings-row strong {
  overflow: hidden;
  color: var(--accent);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-date-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: auto 0;
}

.settings-date-list.compact {
  gap: 1px;
}

.settings-date-list.compact .settings-date-row {
  padding-block: 2px;
}

.settings-date-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 9px;
  opacity: .5;
}

.settings-date-row.active {
  border-color: var(--accent-soft);
  background: rgba(169, 147, 255, .08);
  opacity: 1;
}

.settings-date-row span {
  font-size: 7px;
  letter-spacing: 1px;
}

.settings-date-row strong {
  color: var(--accent);
  font-size: 11px;
}

.timezone-meta {
  min-width: 0;
  margin-top: 5px;
  text-align: center;
}

.timezone-meta strong,
.timezone-meta span {
  display: block;
}

.timezone-meta strong {
  overflow: hidden;
  color: var(--accent);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timezone-meta span {
  margin-top: 2px;
  font-size: 8px;
  letter-spacing: .6px;
  opacity: .65;
}

.timezone-map {
  width: 100%;
  height: 82px;
  margin: auto 0 4px;
  overflow: visible;
}

.timezone-ocean {
  fill: rgba(169, 147, 255, .06);
  stroke: var(--accent-soft);
  stroke-width: 1;
}

.timezone-grid {
  fill: none;
  stroke: currentColor;
  stroke-width: .5;
  opacity: .12;
}

.timezone-land {
  fill: currentColor;
  opacity: .3;
}

.timezone-highlight {
  fill: var(--accent);
  opacity: .2;
}

.timezone-marker {
  fill: var(--accent);
  stroke: currentColor;
  stroke-width: 1;
}

.settings-confirm {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-bottom: 9px;
  color: var(--accent);
  font-size: 9px;
  letter-spacing: .8px;
}

.settings-title {
  font-size: 18px;
}

.settings-step {
  margin-top: 5px;
  color: var(--accent);
  font-size: 8px;
  letter-spacing: 1.2px;
  text-align: center;
}

.settings-editor {
  min-height: 91px;
  margin: auto 0;
  padding: 15px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px solid var(--accent-soft);
  border-radius: 11px;
  text-align: center;
}

.settings-editor-value {
  max-width: 100%;
  color: var(--accent);
  font-size: 20px;
  font-weight: bold;
  line-height: 1.15;
}

.settings-editor-hint {
  margin-top: 8px;
  font-size: 9px;
  opacity: .55;
}

.settings-controls {
  position: absolute;
  right: 16px;
  bottom: 11px;
  left: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  font-size: 8px;
  opacity: .55;
  white-space: nowrap;
}

.settings-controls span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.settings-controls .counter {
  color: var(--accent);
  opacity: 1;
}

/* FOOTER */

.footer {
  position: absolute;
  right: 16px;
  bottom: 11px;
  left: 16px;

  font-size: 10px;

  opacity: .5;
}

.footer,
.quest-action {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

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

.footer-direction {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  width: 55px;
  white-space: nowrap;
}

.footer-direction:last-child {
  justify-content: flex-end;
}

.page-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}

.page-dot {
  width: 6px;
  height: 6px;
  border: 1px solid var(--accent);
  border-radius: 50%;
}

.page-dot.active {
  background: var(--accent);
}

.subpage-nav {
  position: absolute;
  right: 16px;
  bottom: 28px;
  left: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--accent);
  font-size: 9px;
  letter-spacing: .4px;
}

.subpage-nav span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.page:has(.footer) {
  padding-bottom: 30px;
}

.page:has(.subpage-nav) {
  padding-bottom: 50px;
}

.page:has(.settings-controls),
.page:has(.compatibility-controls) {
  padding-bottom: 29px;
}

.ui-icon {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.center-mark {
  display: inline-block;
  width: 7px;
  height: 7px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.footer .counter {
  margin: 0 9px;

  color: var(--accent);

  opacity: 1;
}

/* MODE SWITCH */

.mode-switch-overlay {
  position: absolute;
  inset: 0;

  z-index: 20;

  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;

  background: #0d0c13;

  animation: modeSwitch .45s ease;
}

.mode-switch-symbol {
  font-size: 38px;
  color: var(--accent);
}

.mode-switch-text {
  margin-top: 9px;

  color: var(--accent);

  font-size: 12px;
  letter-spacing: 2px;
}

@keyframes modeSwitch {
  0% {
    opacity: 0;
    transform: scale(.9);
  }

  35% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* MORNING BOOT */

.boot-screen {
  position: absolute;
  inset: 0;

  z-index: 50;

  display: flex;
  align-items: center;
  flex-direction: column;

  padding-top: 14px;

  overflow: hidden;
  background: radial-gradient(circle at 50% 38%, #1c1730 0, #090910 55%);

  transition: opacity .5s ease;
}

.boot-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.boot-screen.booting {
  transition: none;
}

.boot-sky {
  width: 215px;
  height: 165px;
}

.moon-glow {
  opacity: 0;
}

.moon-core {
  fill: #f6f1ff;
  opacity: 0;
}

.dust {
  fill: #d8ceff;
  opacity: .5;
}

.boot-screen:not(.hidden) .moon-glow {
  animation: moonWake 1.7s .3s ease forwards;
}

.boot-screen:not(.hidden) .moon-core {
  animation: moonWake 1s .55s ease forwards;
}

.boot-screen:not(.hidden) .dust {
  animation: dustDrift 2.4s ease-in-out infinite alternate;
}

@keyframes moonWake {
  from { opacity: 0; transform: scale(.3); transform-origin: 120px 87px; }
  to { opacity: .85; transform: scale(1); transform-origin: 120px 87px; }
}

@keyframes dustDrift {
  to { transform: translateY(-5px); opacity: .9; }
}

.star {
  fill: white;
  opacity: 0;
}

.boot-screen:not(.hidden) .star { animation: starAppear .7s forwards; }
.boot-screen:not(.hidden) .s1 { animation-delay: .10s; }
.boot-screen:not(.hidden) .s2 { animation-delay: .22s; }
.boot-screen:not(.hidden) .s3 { animation-delay: .34s; }
.boot-screen:not(.hidden) .s4 { animation-delay: .46s; }
.boot-screen:not(.hidden) .s5 { animation-delay: .58s; }
.boot-screen:not(.hidden) .s6 { animation-delay: .70s; }
.boot-screen:not(.hidden) .s7 { animation-delay: .82s; }
.boot-screen:not(.hidden) .s8 { animation-delay: .94s; }

@keyframes starAppear {
  from {
    opacity: 0;
    transform: scale(.2);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.constellation {
  fill: none;

  stroke: #a993ff;
  stroke-width: 1.25;
  filter: drop-shadow(0 0 4px #a993ff);

  stroke-dasharray: 500;
  stroke-dashoffset: 500;

}

.boot-screen:not(.hidden) .constellation {
  animation: drawConstellation 1.25s .6s forwards;
}

@keyframes drawConstellation {
  to {
    stroke-dashoffset: 0;
  }
}

.boot-title {
  margin-top: -9px;

  font-size: 12px;
  letter-spacing: 3px;

  color: #a993ff;

  opacity: 0;

}

.boot-screen:not(.hidden) .boot-title {
  animation: fadeIn .5s 1.2s forwards;
}

.boot-date {
  margin-top: 7px;

  font-size: 10px;

  opacity: 0;

}

.boot-screen:not(.hidden) .boot-date {
  animation: fadeIn .5s 1.4s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* BUTTONS */

.buttons {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

button {
  width: 48px;
  height: 48px;

  border: 0;
  border-radius: 50%;

  background: #8f7ca7;
  color: white;

  font-size: 17px;

  cursor: pointer;

  box-shadow:
    0 4px 0 #675977,
    0 6px 9px rgba(0,0,0,.2);

  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

button:active {
  transform: translateY(3px);

  box-shadow:
    0 1px 0 #675977;
}

.buttons button {
  position: absolute;
  top: 518px;
  width: 69px;
  height: 69px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  color: transparent;
  pointer-events: auto;
}

.buttons button::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0);
  transition: background .15s ease, box-shadow .15s ease;
}

.buttons button:hover::after {
  background: rgba(255, 255, 255, .12);
}

.buttons button:focus-visible {
  outline: 3px solid #755c98;
  outline-offset: 3px;
}

.buttons button:active {
  transform: none;
  box-shadow: none;
}

.buttons button:active::after {
  background: rgba(92, 55, 103, .2);
  box-shadow: inset 0 3px 8px rgba(70, 36, 62, .25);
}

#leftBtn {
  left: 196px;
}

#selectBtn {
  left: 289px;
  top: 523px;
  width: 70px;
  height: 74px;
}

#rightBtn {
  left: 381px;
}

.prototype-disclaimer {
  max-width: min(420px, calc(100vw - 32px));
  margin: 8px 0 0;
  color: #817687;
  font-size: 10px;
  line-height: 1.4;
  text-align: center;
}

.sim-info {
  margin-top: 17px;

  color: #666;

  font-size: 12px;
}

.display-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 18px;
}

.style-picker,
.real-size-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #6d6274;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 1.2px;
}

.real-size-toggle {
  cursor: pointer;
}

.real-size-toggle input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #755c98;
  cursor: pointer;
}

.style-picker select {
  padding: 7px 26px 7px 9px;
  border: 1px solid rgba(74, 55, 98, .2);
  border-radius: 7px;
  background: rgba(255, 255, 255, .55);
  color: #51455b;
  font: inherit;
  letter-spacing: .4px;
}

.style-picker option:disabled {
  color: #aaa2ad;
}

body[data-display-style="paper"] .screen {
  --accent: #614875;
  --accent-soft: #9c8aa5;
  background-color: #e8e2d4;
  background-image: repeating-linear-gradient(0deg, rgba(63, 50, 48, .025) 0, rgba(63, 50, 48, .025) 1px, transparent 1px, transparent 3px);
  color: #302b2b;
  box-shadow: inset 0 0 20px rgba(60, 48, 40, .13);
  font-family: Georgia, serif;
}

body[data-display-style="paper"] .screen.off {
  background: #050507;
  box-shadow: inset 0 0 35px #000;
}

body[data-display-style="paper"] .screen.tools {
  --accent: #874b57;
  --accent-soft: #b99598;
}

body[data-display-style="paper"] .rating,
body[data-display-style="paper"] .sky-row {
  border-color: rgba(48, 43, 43, .12);
}

body[data-display-style="paper"] .transit {
  background: rgba(48, 43, 43, .045);
}

body[data-display-style="paper"] .mode-switch-overlay {
  background: #e8e2d4;
}

body[data-display-style="paper"] .boot-screen {
  background: radial-gradient(circle at 50% 38%, #f4efe4, #d8cfbf 65%);
  color: #302b2b;
}

body[data-display-style="paper"] .compatibility-intro-copy {
  font-size: 13px;
}

/* GOLDEN COSMOS */

body[data-display-style^="cosmos"] .screen {
  --accent: #ffe08a;
  --accent-soft: rgba(255, 220, 139, .58);
  background-color: #3d327d;
  background-image:
    linear-gradient(rgba(34, 25, 92, .08), rgba(48, 29, 92, .04)),
    url("designs/design1/background.png");
  background-position: center;
  background-size: cover;
  color: #fff8eb;
  box-shadow:
    inset 0 0 0 1px rgba(255, 226, 157, .45),
    inset 0 0 24px rgba(26, 15, 72, .35);
  font-family: "Trebuchet MS", Arial, sans-serif;
  text-shadow: 0 1px 3px rgba(30, 18, 72, .72);
}

body[data-display-style^="cosmos"] .screen.tools {
  --accent: #ffd399;
  --accent-soft: rgba(255, 198, 158, .58);
}

body[data-display-style^="cosmos"] .screen.off {
  background: #050507;
  box-shadow: inset 0 0 35px #000;
}

body[data-display-style^="cosmos"] .mode-bar {
  color: #f9e5c4;
  text-shadow: 0 1px 4px #2b1b66;
}

body[data-display-style^="cosmos"] .mode-name {
  color: var(--accent);
}

body[data-display-style^="cosmos"] .date {
  color: #fff4df;
  opacity: .72;
}

body[data-display-style^="cosmos"] .title {
  color: #fff8eb;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: normal;
  letter-spacing: .2px;
  text-shadow: 0 2px 5px rgba(31, 18, 78, .85);
}

body[data-display-style^="cosmos"] .subtitle,
body[data-display-style^="cosmos"] .reflect-label,
body[data-display-style^="cosmos"] .oracle-step,
body[data-display-style^="cosmos"] .oracle-topic-label,
body[data-display-style^="cosmos"] .settings-step {
  color: var(--accent);
  opacity: .9;
}

body[data-display-style^="cosmos"] .body-text {
  color: #fff8ed;
  font-size: 15px;
  line-height: 1.5;
}

body[data-display-style^="cosmos"] .compatibility-intro-title {
  font-size: 20px;
}

body[data-display-style^="cosmos"] .compatibility-orbits {
  height: 50px;
  margin-top: 3px;
}

body[data-display-style^="cosmos"] .compatibility-orbits::before {
  inset-block: 3px;
}

body[data-display-style^="cosmos"] .compatibility-orbits span {
  top: 13px;
}

body[data-display-style^="cosmos"] .compatibility-intro-copy {
  margin-top: 2px;
  padding: 7px 10px;
  font-size: 11px;
  line-height: 1.35;
}

body[data-display-style^="cosmos"] .compatibility-enter {
  margin-top: 9px;
}

body[data-display-style^="cosmos"] .compatibility-reading-title,
body[data-display-style^="cosmos"] .compatibility-name-title {
  min-height: 29px;
  overflow: visible;
  line-height: 1.2;
  flex-shrink: 0;
}

body[data-display-style^="cosmos"] .compatibility-reading-copy {
  padding: 13px 12px;
}

body[data-display-style^="cosmos"] .rating,
body[data-display-style^="cosmos"] .sky-row {
  border-color: rgba(255, 232, 190, .2);
}

body[data-display-style^="cosmos"] .rating,
body[data-display-style^="cosmos"] .sky-row,
body[data-display-style^="cosmos"] .small-text {
  color: #fff8ed;
}

body[data-display-style^="cosmos"] .stars {
  color: #ffe27f;
  filter: drop-shadow(0 0 3px rgba(255, 210, 103, .45));
}

body[data-display-style^="cosmos"] .guidance-box,
body[data-display-style^="cosmos"] .moon-card,
body[data-display-style^="cosmos"] .quote-card,
body[data-display-style^="cosmos"] .quest-card,
body[data-display-style^="cosmos"] .oracle-choice,
body[data-display-style^="cosmos"] .settings-editor,
body[data-display-style^="cosmos"] .settings-row.active,
body[data-display-style^="cosmos"] .settings-date-row.active {
  border-color: rgba(255, 221, 150, .56);
  background: linear-gradient(145deg, rgba(49, 33, 112, .58), rgba(110, 70, 147, .34));
  box-shadow:
    inset 0 1px rgba(255, 244, 220, .12),
    0 5px 14px rgba(31, 17, 76, .16);
  backdrop-filter: blur(2px);
}

body[data-display-style^="cosmos"] .guidance-heading .active,
body[data-display-style^="cosmos"] .oracle-choice-label,
body[data-display-style^="cosmos"] .tarot-name,
body[data-display-style^="cosmos"] .transit strong,
body[data-display-style^="cosmos"] .oracle-answer strong,
body[data-display-style^="cosmos"] .quest-action,
body[data-display-style^="cosmos"] .subpage-nav {
  color: var(--accent);
}

body[data-display-style^="cosmos"] .guidance-heading span:not(.active) {
  color: #fff8ed;
  opacity: .35;
}

body[data-display-style^="cosmos"] .transit {
  border-left-color: #ffe08a;
  background: linear-gradient(90deg, rgba(49, 33, 112, .68), rgba(104, 64, 145, .28));
  box-shadow: 0 5px 14px rgba(31, 17, 76, .14);
}

body[data-display-style^="cosmos"] .tarot-card,
body[data-display-style^="cosmos"] .oracle-symbol {
  border-color: rgba(255, 222, 151, .72);
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 221, 142, .18), transparent 48%),
    linear-gradient(145deg, rgba(50, 34, 115, .76), rgba(116, 72, 151, .48));
  color: #ffe28f;
  box-shadow:
    inset 0 0 15px rgba(255, 213, 125, .12),
    0 0 12px rgba(255, 205, 112, .14);
}

body[data-display-style^="cosmos"] .tarot-meaning,
body[data-display-style^="cosmos"] .tarot-reading,
body[data-display-style^="cosmos"] .oracle-choice-copy {
  color: #fff5e4;
  opacity: .78;
}

body[data-display-style^="cosmos"] .page-dot {
  border-color: #ffe6a7;
  box-shadow: 0 0 3px rgba(255, 220, 130, .45);
}

body[data-display-style^="cosmos"] .page-dot.active {
  background: #ffe08a;
}

body[data-display-style^="cosmos"] .footer,
body[data-display-style^="cosmos"] .oracle-controls {
  color: #fff2d9;
  opacity: .72;
}

body[data-display-style^="cosmos"] .streak .dot {
  border-color: rgba(255, 236, 195, .66);
}

body[data-display-style^="cosmos"] .streak .dot.filled {
  border-color: #ffe08a;
  background: #ffe08a;
  box-shadow: 0 0 5px rgba(255, 216, 116, .55);
}

body[data-display-style^="cosmos"] .streak-count,
body[data-display-style^="cosmos"] .check,
body[data-display-style^="cosmos"] .oracle-thinking-message {
  color: #ffe08a;
}

body[data-display-style="cosmos"] .streak-count {
  margin-top: 10px;
  margin-bottom: 6px;
}

body[data-display-style^="cosmos"] .mode-switch-overlay {
  background:
    linear-gradient(rgba(39, 27, 94, .3), rgba(55, 35, 100, .2)),
    url("designs/design1/background.png") center / cover;
}

body[data-display-style^="cosmos"] .boot-screen {
  background:
    linear-gradient(rgba(35, 24, 89, .22), rgba(62, 38, 106, .16)),
    url("designs/design1/background.png") center / cover;
  color: #fff8eb;
}

body[data-display-style^="cosmos"] .boot-title {
  color: #ffe08a;
  text-shadow: 0 1px 4px #2b1b66;
}

body[data-display-style^="cosmos"] .boot-screen .moon-core {
  fill: #fff0bd;
}

body[data-display-style^="cosmos"] .boot-screen .constellation {
  stroke: #ffe08a;
  filter: drop-shadow(0 0 4px #f5bd6f);
}

/* Keep the bright artwork while backing longer text with readable panels. */
body[data-display-style="cosmos"] .body-text,
body[data-display-style="cosmos"] .ratings,
body[data-display-style="cosmos"] .sky-list,
body[data-display-style="cosmos"] .guidance-box,
body[data-display-style="cosmos"] .moon-card,
body[data-display-style="cosmos"] .quote-card,
body[data-display-style="cosmos"] .quest-card,
body[data-display-style="cosmos"] .oracle-choice,
body[data-display-style="cosmos"] .transit,
body[data-display-style="cosmos"] .tarot-reading,
body[data-display-style="cosmos"] .oracle-answer,
body[data-display-style="cosmos"] .quest-complete,
body[data-display-style="cosmos"] .settings-editor,
body[data-display-style="cosmos"] .settings-row.active,
body[data-display-style="cosmos"] .settings-date-row.active {
  border: 1px solid rgba(255, 226, 165, .25);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(28, 18, 82, .78), rgba(66, 39, 108, .62));
  box-shadow: 0 5px 14px rgba(24, 14, 67, .18);
  backdrop-filter: blur(2px);
}

body[data-display-style="cosmos"] .title + .ratings,
body[data-display-style="cosmos"] .title + .transit,
body[data-display-style="cosmos"] .subtitle + .body-text {
  margin-top: 7px;
}

body[data-display-style="cosmos"] .title + .guidance,
body[data-display-style="cosmos"] .title + .sky-list,
body[data-display-style="cosmos"] .title + .moon-card,
body[data-display-style="cosmos"] .title + .reflection-content {
  margin-top: 4px;
}

body[data-display-style="cosmos"] .body-text,
body[data-display-style="cosmos"] .oracle-answer,
body[data-display-style="cosmos"] .quest-complete {
  padding: 11px 12px;
}

body[data-display-style="cosmos"] .ratings,
body[data-display-style="cosmos"] .sky-list {
  padding: 4px 8px;
}

body[data-display-style="cosmos"] .tarot-reading {
  padding: 6px 9px;
}

body[data-display-style="cosmos"] .quote-card-expanded {
  padding: 9px 12px;
  font-size: 15px;
}

body[data-display-style="cosmos"] .compatibility-intro-copy {
  padding: 7px 10px;
}

body[data-display-style="cosmos"] .compatibility-name-slots {
  padding: 8px;
  border: 1px solid rgba(255, 226, 165, .38);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(13, 9, 55, .96), rgba(31, 18, 72, .94));
  box-shadow: 0 5px 14px rgba(12, 7, 44, .4);
}

body[data-display-style="cosmos"] .compatibility-grid,
body[data-display-style="cosmos"] .compatibility-actions,
body[data-display-style="cosmos"] .compatibility-input-modes,
body[data-display-style="cosmos"] .compatibility-dimensions {
  padding: 7px;
  border: 1px solid rgba(255, 226, 165, .3);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(13, 9, 55, .95), rgba(31, 18, 72, .92));
  box-shadow: 0 5px 14px rgba(12, 7, 44, .38);
}

body[data-display-style="cosmos"] .settings-row,
body[data-display-style="cosmos"] .settings-date-row,
body[data-display-style="cosmos"] .compatibility-person,
body[data-display-style="cosmos"] .compatibility-actions div,
body[data-display-style="cosmos"] .compatibility-input-modes div,
body[data-display-style="cosmos"] .compatibility-name-actions span,
body[data-display-style="cosmos"] .compatibility-delete-options span {
  border-color: rgba(255, 226, 165, .18);
  background: rgba(12, 8, 49, .86);
  opacity: .82;
}

body[data-display-style="cosmos"] .compatibility-mode-hint,
body[data-display-style="cosmos"] .compatibility-reading-copy,
body[data-display-style="cosmos"] .compatibility-guidance-single,
body[data-display-style="cosmos"] .compatibility-guidance-loader,
body[data-display-style="cosmos"] .compatibility-profile,
body[data-display-style="cosmos"] .compatibility-delete {
  border: 1px solid rgba(255, 226, 165, .3);
  border-radius: 10px;
  background: rgba(12, 8, 49, .9);
  text-shadow: 0 1px 3px rgba(15, 8, 48, .9);
}

body[data-display-style="cosmos"] .compatibility-mode-hint {
  padding: 6px;
}

body[data-display-style="cosmos"] .compatibility-guidance-loader,
body[data-display-style="cosmos"] .compatibility-delete {
  padding: 12px;
}

body[data-display-style="cosmos"] .settings-row.active,
body[data-display-style="cosmos"] .settings-date-row.active,
body[data-display-style="cosmos"] .compatibility-person.active,
body[data-display-style="cosmos"] .compatibility-actions .active,
body[data-display-style="cosmos"] .compatibility-input-modes .active,
body[data-display-style="cosmos"] .compatibility-name-actions .active,
body[data-display-style="cosmos"] .compatibility-delete-options .active {
  border-color: rgba(255, 226, 165, .86);
  background: linear-gradient(145deg, rgba(59, 38, 117, .98), rgba(102, 59, 126, .94));
  box-shadow: inset 0 0 0 1px rgba(255, 239, 197, .12), 0 0 8px rgba(255, 211, 125, .2);
  opacity: 1;
}

body[data-display-style="cosmos"] .reflection-content,
body[data-display-style="cosmos"] .reflect-label {
  margin-top: 0;
}

/* This variation leaves layouts open and improves contrast at the image level. */
body[data-display-style="cosmos-dark"] .screen {
  background-image:
    linear-gradient(rgba(20, 14, 61, .56), rgba(31, 18, 65, .6)),
    url("designs/design1/background.png");
}

body[data-display-style="cosmos-dark"] .mode-switch-overlay,
body[data-display-style="cosmos-dark"] .boot-screen {
  background:
    linear-gradient(rgba(20, 14, 61, .6), rgba(31, 18, 65, .64)),
    url("designs/design1/background.png") center / cover;
}

body[data-display-style="cosmos-dark"] .compatibility-enter {
  margin-top: 11px;
}

@media (max-width: 620px) {
  body { padding: 12px 0; }
  .welcome { padding: 14px; overflow-y: auto; }
  .welcome-card { padding: 27px 18px; }
  .welcome-guide { grid-template-columns: 1fr; gap: 8px; margin: 22px 0; }
  .guide-step { display: grid; grid-template-columns: 67px 1fr; column-gap: 8px; padding: 10px 13px; text-align: left; }
  .guide-step svg { grid-row: 1 / 3; width: 62px; height: 48px; }
  .guide-step strong { align-self: end; margin: 0 0 3px; }
  .sim-info { max-width: 290px; text-align: center; line-height: 1.5; }
  .display-controls { margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .oracle-intro-symbol {
    animation: none;
  }
}
