/* Futuristic skin. One near-black field, off-white type, one moon-sign accent. */
:root {
  --night: #07060c;
  --ink: #f3efe6;
  --muted: #a39e96;
  --accent: #d7c4a3;
  --gold: var(--accent);
  --purple: var(--accent);
  --rose: var(--accent);
  --mint: var(--accent);
  --panel: rgba(10, 8, 16, .62);
  --line: color-mix(in srgb, var(--accent) 42%, transparent);
}
html[data-moon-sign="aries"] { --accent: #ff8f72; }
html[data-moon-sign="taurus"] { --accent: #69e0ae; }
html[data-moon-sign="gemini"] { --accent: #8ad8ff; }
html[data-moon-sign="cancer"] { --accent: #d8b6ff; }
html[data-moon-sign="leo"] { --accent: #f2c45a; }
html[data-moon-sign="virgo"] { --accent: #c3e09a; }
html[data-moon-sign="libra"] { --accent: #f6bcd4; }
html[data-moon-sign="scorpio"] { --accent: #f29ab4; }
html[data-moon-sign="sagittarius"] { --accent: #f2ae78; }
html[data-moon-sign="capricorn"] { --accent: #9ad4d4; }
html[data-moon-sign="aquarius"] { --accent: #8eb8ff; }
html[data-moon-sign="pisces"] { --accent: #c0b2ff; }

html { color-scheme: dark; }
body {
  background: var(--night) !important;
  color: var(--ink);
}
#cosmos-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
#cosmos-veil {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--accent) 28%, transparent), rgba(7, 6, 12, .92) 58%);
}
body.cosmos-shift #cosmos-veil { animation: cosmos-shift .72s ease; }
#entry-gate,
#app-shell { position: relative; z-index: 1; }

.aurora { opacity: .08 !important; background: var(--accent) !important; }
.cosmos-image { opacity: .22; }

.answer-card,
.council-panel,
.discover-tile,
.quick-card,
.conversation-frame,
.phone-form,
.workspace-card,
.pathway,
.today-card,
.signal-card,
.reading-collection,
.rishi-presence,
.entry-copy .about-rishivan {
  background: var(--panel) !important;
  border: 1px solid var(--line) !important;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 16%, transparent), 0 18px 40px rgba(0, 0, 0, .28), inset 0 0 24px color-mix(in srgb, var(--accent) 6%, transparent) !important;
  backdrop-filter: blur(16px);
}

#council .royal-reading-stage {
  background: linear-gradient(165deg, rgba(12, 9, 18, .94), rgba(7, 6, 12, .96)) !important;
  border: 1px solid var(--line) !important;
}
#council .royal-reading-stage .council-timeline li {
  background: linear-gradient(155deg, rgba(18, 14, 26, .94), rgba(8, 7, 14, .9)) !important;
  border-color: var(--line) !important;
  color: var(--ink) !important;
}
#council .royal-reading-stage .council-timeline strong,
#council .royal-reading-stage .timeline-classical,
#council .royal-reading-stage #answer-content p,
#council .royal-reading-stage #answer-content li,
#council .royal-reading-stage .response-headline,
#council .royal-reading-stage .council-asked-question p {
  color: var(--ink) !important;
}
#council .royal-reading-stage .timeline-date,
#council .royal-reading-stage .timeline-highlight,
#council .royal-reading-stage .council-timeline .timeline-why summary {
  color: var(--accent) !important;
}

.cosmos-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--accent);
}
.cosmos-icon svg { width: 24px; height: 24px; overflow: visible; }
.discover-tile:hover .cosmos-icon,
.pathway:hover .cosmos-icon,
.workspace-card:hover .cosmos-icon,
.journey-tabs button:hover .cosmos-icon {
  transform: rotate(16deg);
  filter: drop-shadow(0 0 6px var(--accent));
}
.cosmos-icon { transition: transform .45s ease, filter .45s ease; }

.cosmos-hero-orb { display: grid; place-items: center; margin: 0 0 8px; }
.cosmos-core {
  width: 86px;
  height: 86px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 72%, white 8%);
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 252, 246, .92), var(--accent) 26%, rgba(8, 6, 12, .15) 64%, transparent 72%);
  box-shadow: 0 0 22px color-mix(in srgb, var(--accent) 48%, transparent), inset 0 0 16px color-mix(in srgb, var(--accent) 30%, transparent);
  animation: cosmos-breathe 7.6s ease-in-out infinite;
  cursor: pointer;
}
.cosmos-core-council {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 52px;
  height: 52px;
  pointer-events: none;
  animation: cosmos-breathe-center 7.6s ease-in-out infinite;
}
body.cosmos-mode-guide .royal-ask .cosmos-core { animation: cosmos-steady 5.5s ease-in-out infinite; }
body.cosmos-mode-council .royal-ask > .cosmos-hero-orb { display: none !important; }
.cosmos-sentinel-core { width: 46px; height: 46px; }
body.cosmos-mode-sentinel .cosmos-sentinel-core { animation: cosmos-pulse 1.4s ease-in-out infinite; }
body.cosmos-mode-council #council .royal-ask.has-reading {
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow: visible !important;
}
body.cosmos-mode-council #council .royal-ask.has-reading .royal-reading-stage {
  flex: 1 1 auto !important;
  height: auto !important;
  min-height: 220px;
  max-height: min(520px, 62vh);
  overflow: auto;
}
.entry-core { animation: cosmos-breathe 7.6s ease-in-out infinite; }

body.cosmos-mode-council #council .rishi-grid {
  position: relative !important;
  display: block !important;
  container-type: size;
  width: min(340px, 100%) !important;
  height: auto !important;
  aspect-ratio: 1;
  margin: 6px auto 2px !important;
  overflow: visible !important;
}
body.cosmos-mode-council #council .rishi-grid > .cosmos-rishi {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: 84px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: translate(-50%, -50%) rotate(var(--orbit)) translateY(calc(-50cqi + 52px)) rotate(calc(var(--orbit) * -1));
}
body.cosmos-mode-council #council .rishi-grid > .cosmos-rishi .vision-rishi-portrait,
body.cosmos-mode-council #council .rishi-grid > .cosmos-rishi em { display: none !important; }
body.cosmos-mode-council #council .royal-ask .rishi-grid > .cosmos-rishi b,
body.cosmos-mode-council #council .rishi-grid > .cosmos-rishi b {
  color: var(--ink);
  font: 600 13px/1.15 "DM Sans", sans-serif;
  letter-spacing: .02em;
  text-align: center;
}
body.cosmos-mode-council #council .royal-ask .rishi-grid > .cosmos-rishi small,
body.cosmos-mode-council #council .rishi-grid > .cosmos-rishi small {
  display: block !important;
  color: var(--muted);
  font: 500 10px/1.15 "DM Sans", sans-serif;
  letter-spacing: .03em;
  text-align: center;
}
body.cosmos-mode-council #council .rishi-grid > .cosmos-rishi::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #fff, var(--accent) 46%, rgba(7, 6, 12, .2) 72%);
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 55%, transparent);
}
body.cosmos-debating #council .rishi-grid > .cosmos-rishi::before {
  animation: cosmos-pass 1.6s linear infinite;
  animation-delay: calc(var(--i) * .18s);
}
body.cosmos-mode-council #council .rishi-grid > .cosmos-rishi.cosmos-speaking::before {
  box-shadow: 0 0 16px var(--accent);
}
body.cosmos-mode-council #council .rishi-grid > .cosmos-rishi.cosmos-speaking::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 28px;
  height: 28px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  animation: cosmos-ring 1.15s ease-out infinite;
}
body.cosmos-mode-council #council .rishi-grid > .cosmos-rishi.cosmos-speaking small { color: var(--accent); }
body.cosmos-synthesize #council .rishi-grid > .cosmos-rishi { opacity: .38; }
body.cosmos-synthesize .cosmos-core-council { animation: cosmos-bright-center 1s ease forwards; }

@keyframes cosmos-breathe {
  0%, 100% { transform: scale(1); opacity: .84; }
  50% { transform: scale(1.055); opacity: 1; }
}
@keyframes cosmos-breathe-center {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: .86; }
  50% { transform: translate(-50%, -50%) scale(1.06); opacity: 1; }
}
@keyframes cosmos-steady {
  0%, 100% { box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 40%, transparent), inset 0 0 14px color-mix(in srgb, var(--accent) 24%, transparent); }
  50% { box-shadow: 0 0 26px color-mix(in srgb, var(--accent) 62%, transparent), inset 0 0 18px color-mix(in srgb, var(--accent) 34%, transparent); }
}
@keyframes cosmos-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 35%, transparent); }
  45% { transform: scale(1.08); box-shadow: 0 0 28px var(--accent); }
}
@keyframes cosmos-pass {
  0%, 100% { filter: brightness(1); }
  35% { filter: brightness(1.7); box-shadow: 0 0 14px var(--accent); }
}
@keyframes cosmos-ring {
  from { transform: scale(.7); opacity: .8; }
  to { transform: scale(1.7); opacity: 0; }
}
@keyframes cosmos-bright-center {
  to {
    transform: translate(-50%, -50%) scale(1.14);
    box-shadow: 0 0 36px var(--accent), inset 0 0 18px color-mix(in srgb, var(--accent) 40%, transparent);
    opacity: 1;
  }
}
@keyframes cosmos-shift {
  0% { opacity: 0; }
  32% { opacity: .62; }
  100% { opacity: 0; }
}

@media (max-width: 640px) {
  .cosmos-core { width: 72px; height: 72px; }
}

.morning-oracle p,
.council-debate,
.council-debate small { color: var(--ink); }
.morning-oracle p#morning-oracle-avoid,
.council-debate small { color: var(--muted); }
.council-debate {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}
.council-debate span,
.morning-oracle .card-label { letter-spacing: .14em; }
.council-debate ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.council-debate li { display: flex; flex-direction: column; min-width: 92px; }
.council-debate b { color: var(--accent); font-weight: 560; }
.council-chat { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin: 2px 0 14px; }
.council-conclusion { width: 100%; box-sizing: border-box; margin: 2px 0 14px; padding: 18px 20px; border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent); border-radius: 18px; background: color-mix(in srgb, var(--accent) 8%, transparent); }
.council-conclusion > p { margin: 10px 0 0; white-space: pre-line; font-size: 15px; line-height: 1.65; }
.council-conclusion .council-why { margin-top: 14px; }
.council-conclusion .council-why summary { cursor: pointer; color: var(--accent); font-size: 12px; }
.council-conclusion .council-why p { margin-top: 8px; white-space: pre-wrap; font-size: 13px; line-height: 1.55; }
.council-bubble {
  max-width: min(92%, 540px);
  padding: 10px 14px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
  border-radius: 16px 16px 16px 5px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  animation: council-bubble-in .42s ease both;
}
.council-bubble .who {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font: 600 11px/1.2 "DM Mono", ui-monospace, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.council-bubble p { margin: 0; font-size: 15px; line-height: 1.5; }
.council-bubble.prajna { align-self: stretch; max-width: 100%; border-radius: 16px; }
.council-bubble .council-why { margin-top: 8px; }
.council-bubble .council-why summary { cursor: pointer; color: var(--accent); font-size: 12px; }
.council-bubble .council-why p { margin-top: 8px; white-space: pre-wrap; font-size: 13px; line-height: 1.55; }
.council-years { margin: 8px 0 14px; padding: 0; list-style: none; }
.council-years li { margin: 0 0 8px; line-height: 1.5; }
@keyframes council-bubble-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .council-bubble { animation: none; }
}
.rishi-findings { margin: 0 0 8px; }
.rishi-findings .rishi-finding { border-bottom: 1px solid var(--line); padding: 7px 0; }
.rishi-findings summary { cursor: pointer; color: var(--muted); font-size: 14px; line-height: 1.45; }
.rishi-findings .prajna summary,
.rishi-findings .prajna .response-headline { color: var(--ink); }
.rishi-findings .prajna[open] summary { color: var(--accent); }
#morning-oracle-clear { margin-top: 8px; }
.vision-home-dashboard > #morning-oracle { grid-column: 1 / -1; text-align: left; }

@media (prefers-reduced-motion: reduce) {
  #cosmos-veil,
  .cosmos-core,
  .cosmos-core-council,
  .entry-core,
  .cosmos-icon,
  body.cosmos-debating #council .rishi-grid > .cosmos-rishi::before,
  body.cosmos-mode-council #council .rishi-grid > .cosmos-rishi.cosmos-speaking::after {
    animation: none !important;
    transition: none !important;
  }
}
