:root {
  --ink: #080a12;
  --ink-soft: #0e1220;
  --panel: rgba(18, 22, 35, 0.78);
  --panel-solid: #121625;
  --line: rgba(196, 210, 237, 0.14);
  --line-strong: rgba(196, 210, 237, 0.3);
  --paper: #eef2f8;
  --muted: #929bac;
  --faint: #667085;
  --blue: #a6c8ff;
  --blue-bright: #cfe0ff;
  --amber: #dfaa5c;
  --amber-bright: #ffd89b;
  --violet: #9c8cdc;
  --danger: #df8f8f;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  min-height: 100%;
  overflow-x: hidden;
  background: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  overflow-x: hidden;
  color: var(--paper);
  background:
    radial-gradient(circle at 72% -10%, rgba(58, 76, 130, 0.24), transparent 38%),
    radial-gradient(circle at 7% 57%, rgba(76, 52, 112, 0.15), transparent 34%),
    linear-gradient(180deg, #090c15 0%, #070910 48%, #0a0d16 100%);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  color: inherit;
}

button {
  border: 0;
}

button,
a,
label,
input,
textarea {
  touch-action: manipulation;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--amber-bright);
  outline-offset: 3px;
}

.hidden {
  display: none !important;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.72'/%3E%3C/svg%3E");
}

.aurora {
  position: fixed;
  z-index: -2;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.12;
  pointer-events: none;
}

.aurora-one {
  top: 14%;
  right: -220px;
  background: var(--blue);
}

.aurora-two {
  bottom: 10%;
  left: -240px;
  background: var(--violet);
}

.onboarding {
  position: fixed;
  inset: 0;
  z-index: 400;
  overflow-x: hidden;
  overflow-y: auto;
  color: var(--paper);
  background:
    radial-gradient(circle at 72% 8%, rgba(77, 102, 168, 0.25), transparent 28%),
    radial-gradient(circle at 8% 76%, rgba(117, 73, 137, 0.15), transparent 32%),
    #070a12;
  overscroll-behavior: contain;
}

.onboarding-noise {
  position: fixed;
  inset: 0;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.72'/%3E%3C/svg%3E");
}

.onboarding-topbar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(100%, 520px);
  min-height: calc(64px + var(--safe-top));
  margin: 0 auto;
  padding: calc(12px + var(--safe-top)) 18px 10px;
  background: linear-gradient(180deg, rgba(7, 10, 18, 0.98), rgba(7, 10, 18, 0.8), transparent);
  backdrop-filter: blur(14px);
}

.onboarding-brand {
  display: flex;
  align-items: center;
  gap: 9px;
}

.onboarding-brand .brand-mark {
  width: 30px;
  height: 30px;
}

.onboarding-brand strong {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.13em;
}

.onboarding-progress {
  display: flex;
  gap: 5px;
}

.onboarding-progress span {
  width: 17px;
  height: 2px;
  border-radius: 4px;
  background: rgba(190, 207, 235, 0.18);
  transition: background 220ms ease, box-shadow 220ms ease;
}

.onboarding-progress span.is-active {
  background: var(--amber-bright);
  box-shadow: 0 0 8px rgba(223, 170, 92, 0.55);
}

.onboarding-skip {
  justify-self: end;
  min-width: 68px;
  min-height: 44px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  font-size: 10px;
}

.onboarding-stage {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  min-height: calc(100dvh - 64px - var(--safe-top));
  margin: 0 auto;
}

.onboarding-step {
  display: none;
  min-height: calc(100dvh - 64px - var(--safe-top));
  padding: 22px 24px calc(34px + var(--safe-bottom));
}

.onboarding-step.is-active {
  display: flex;
  flex-direction: column;
  animation: onboarding-enter 440ms cubic-bezier(0.22, 0.82, 0.24, 1) both;
}

@keyframes onboarding-enter {
  from {
    opacity: 0;
    transform: translateX(14px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.onboarding-step > .section-kicker {
  margin-bottom: 8px;
}

.onboarding-step h1,
.onboarding-step h2 {
  margin: 0 0 13px;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.025em;
}

.onboarding-step h1 {
  font-size: clamp(38px, 11vw, 52px);
  line-height: 0.98;
}

.onboarding-step h2 {
  font-size: clamp(32px, 9vw, 43px);
  line-height: 1.03;
}

.onboarding-step h3 {
  margin: 24px 0 11px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
}

.onboarding-lead,
.onboarding-legend {
  margin: 0;
  color: #aeb7c8;
  font-size: 13px;
  line-height: 1.58;
}

.onboarding-visual {
  position: relative;
  width: 150px;
  height: 132px;
  margin: 2px auto 17px;
}

.intro-orbit {
  position: absolute;
  inset: 13px;
  border: 1px solid rgba(166, 200, 255, 0.24);
  border-radius: 50%;
}

.intro-orbit-one {
  transform: rotate(24deg) scaleX(0.62);
}

.intro-orbit-two {
  transform: rotate(-42deg) scaleX(0.62);
}

.intro-point {
  position: absolute;
  top: 32px;
  right: 34px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--amber-bright);
  box-shadow: 0 0 22px rgba(242, 195, 122, 0.7);
  animation: onboarding-point 3.8s ease-in-out infinite;
}

@keyframes onboarding-point {
  50% {
    transform: translate(-57px, 51px) scale(0.72);
    opacity: 0.7;
  }
}

.onboarding-purpose {
  display: grid;
  gap: 7px;
  margin: 20px 0 14px;
}

.onboarding-purpose div {
  display: grid;
  grid-template-columns: 33px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 39px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 20, 33, 0.55);
}

.onboarding-purpose strong {
  color: var(--amber);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
}

.onboarding-purpose span {
  color: #d6dce8;
  font-size: 11px;
}

.onboarding-why {
  margin: 0 0 22px;
  padding-left: 12px;
  color: var(--muted);
  border-left: 1px solid rgba(223, 170, 92, 0.5);
  font-size: 11px;
  line-height: 1.5;
}

.onboarding-step > .onboarding-next {
  margin-top: auto;
}

.onboarding-sigils {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin: 28px 0 16px;
}

.onboarding-sigils button {
  display: grid;
  min-width: 0;
  min-height: 128px;
  padding: 16px 5px 12px;
  place-items: center;
  color: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 36%, rgba(117, 145, 196, 0.16), transparent 40%),
    rgba(12, 16, 27, 0.78);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.onboarding-sigils button > span {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 300;
}

.onboarding-sigils button small {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.onboarding-sigils button.is-selected {
  border-color: rgba(242, 195, 122, 0.65);
  background:
    radial-gradient(circle at 50% 36%, rgba(223, 170, 92, 0.23), transparent 46%),
    rgba(32, 25, 20, 0.78);
  box-shadow: inset 0 0 22px rgba(223, 170, 92, 0.08);
  transform: translateY(-3px);
}

.onboarding-seal,
.onboarding-proof,
.onboarding-final-route {
  border: 1px solid rgba(223, 170, 92, 0.28);
  background:
    linear-gradient(125deg, rgba(223, 170, 92, 0.08), transparent 42%),
    rgba(10, 13, 22, 0.72);
}

.onboarding-seal {
  padding: 14px;
  border-radius: 15px;
}

.onboarding-seal span,
.onboarding-seal strong,
.onboarding-seal small {
  display: block;
}

.onboarding-seal span,
.onboarding-final-route small {
  margin-bottom: 5px;
  color: var(--amber);
  font-size: 7px;
  font-weight: 750;
  letter-spacing: 0.16em;
}

.onboarding-seal strong {
  margin-bottom: 4px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
}

.onboarding-seal small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.onboarding-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  align-items: center;
  margin-top: auto;
  padding-top: 22px;
}

.onboarding-actions .primary-button {
  min-width: 0;
}

.primary-button:disabled {
  cursor: not-allowed;
  filter: saturate(0.25);
  opacity: 0.42;
}

.onboarding-proof {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
  margin: 23px 0 0;
  padding: 13px;
  border-radius: 15px;
}

.onboarding-proof > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--amber-bright);
  border: 1px solid rgba(223, 170, 92, 0.35);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 26px;
}

.onboarding-proof small,
.onboarding-proof strong {
  display: block;
}

.onboarding-proof small {
  margin-bottom: 4px;
  color: var(--faint);
  font-size: 7px;
  letter-spacing: 0.14em;
}

.onboarding-proof strong {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
}

.onboarding-paths {
  display: grid;
  gap: 9px;
}

.onboarding-paths button {
  display: grid;
  grid-template-columns: 51px 1fr;
  gap: 2px 12px;
  min-height: 82px;
  padding: 12px 13px;
  color: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(12, 16, 27, 0.72);
  text-align: left;
}

.onboarding-paths button > span {
  grid-row: 1 / 3;
  display: grid;
  width: 49px;
  height: 49px;
  place-items: center;
  color: var(--amber-bright);
  border: 1px solid rgba(223, 170, 92, 0.3);
  border-radius: 50%;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}

.onboarding-paths strong,
.onboarding-paths small {
  display: block;
}

.onboarding-paths strong {
  align-self: end;
  font-size: 12px;
}

.onboarding-paths small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.onboarding-paths button.is-selected {
  border-color: rgba(166, 200, 255, 0.52);
  background:
    linear-gradient(120deg, rgba(85, 117, 174, 0.15), transparent 52%),
    rgba(14, 20, 33, 0.9);
}

.onboarding-legend {
  padding: 13px 14px;
  border: 1px solid rgba(166, 200, 255, 0.2);
  border-radius: 15px;
  background: rgba(18, 25, 40, 0.54);
}

.onboarding-glossary {
  display: grid;
  gap: 1px;
  margin: 14px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--line);
}

.onboarding-glossary div {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(10, 13, 22, 0.96);
}

.onboarding-glossary strong {
  color: var(--amber-bright);
  font-size: 10px;
}

.onboarding-glossary span {
  color: #aab3c4;
  font-size: 9px;
  line-height: 1.4;
}

.onboarding-final-route {
  padding: 12px 14px;
  border-radius: 14px;
}

.onboarding-final-route strong {
  display: block;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
}

.onboarding-disclaimer {
  margin: 12px 8px 0;
  color: var(--faint);
  font-size: 8px;
  line-height: 1.45;
  text-align: center;
}

.app-shell {
  position: relative;
  width: min(100%, 520px);
  min-height: 100dvh;
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: calc(70px + var(--safe-top));
  padding: calc(13px + var(--safe-top)) 20px 10px;
  background: linear-gradient(180deg, rgba(8, 10, 18, 0.97), rgba(8, 10, 18, 0.82) 72%, transparent);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  color: var(--paper);
  background: transparent;
  text-align: left;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(201, 218, 244, 0.35);
  border-radius: 50%;
  box-shadow: inset 0 0 15px rgba(153, 189, 245, 0.08);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span {
  position: absolute;
  content: "";
  border: 1px solid rgba(199, 217, 245, 0.55);
  border-radius: 50%;
}

.brand-mark::before {
  width: 22px;
  height: 30px;
  transform: rotate(45deg);
}

.brand-mark::after {
  width: 22px;
  height: 30px;
  transform: rotate(-45deg);
}

.brand-mark span {
  width: 6px;
  height: 6px;
  border: 0;
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-copy strong {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.13em;
}

.brand-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sound-toggle,
.signal-toggle,
.avatar-button {
  display: grid;
  height: 44px;
  padding: 0;
  place-items: center;
  color: var(--paper);
  background: transparent;
  border-radius: 50%;
}

.avatar-button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  background: rgba(17, 21, 33, 0.72);
  font-family: var(--serif);
  font-size: 17px;
}

.signal-toggle {
  position: relative;
  width: 44px;
  border: 1px solid var(--line-strong);
  background: rgba(17, 21, 33, 0.72);
}

.signal-toggle.is-live {
  border-color: rgba(223, 170, 92, 0.48);
  background: rgba(94, 62, 28, 0.16);
  box-shadow: inset 0 0 18px rgba(223, 170, 92, 0.07);
}

.signal-glyph {
  color: var(--blue);
  font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  font-size: 17px;
  line-height: 1;
}

.signal-toggle.is-live .signal-glyph {
  color: var(--amber-bright);
  animation: signal-breathe 2.8s ease-in-out infinite;
}

.signal-status-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 6px;
  height: 6px;
  border: 1px solid #080a12;
  border-radius: 50%;
  background: var(--faint);
}

.signal-toggle.is-live .signal-status-dot {
  background: var(--amber-bright);
  box-shadow: 0 0 8px rgba(242, 195, 122, 0.8);
}

@keyframes signal-breathe {
  0%,
  100% {
    opacity: 0.62;
    transform: scale(0.88);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

.sound-toggle {
  grid-template-columns: auto auto;
  gap: 6px;
  width: auto;
  min-width: 74px;
  padding: 0 11px;
  border: 1px solid rgba(223, 170, 92, 0.34);
  border-radius: 22px;
  background: rgba(94, 62, 28, 0.15);
}

.sound-toggle.is-muted {
  border-color: var(--line);
  background: rgba(17, 21, 33, 0.72);
}

.sound-glyph {
  font-size: 16px;
  line-height: 1;
}

.sound-label {
  color: var(--amber-bright);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.reality-wire {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 28px 1fr 16px;
  gap: 10px;
  align-items: center;
  width: calc(100% - 36px);
  min-height: 58px;
  margin: -2px 18px 7px;
  padding: 9px 12px;
  color: var(--paper);
  border: 1px solid rgba(145, 178, 229, 0.15);
  border-radius: 15px;
  background:
    radial-gradient(circle at 9% 50%, rgba(141, 182, 244, 0.12), transparent 28%),
    rgba(11, 14, 24, 0.77);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  text-align: left;
  backdrop-filter: blur(14px);
  transition: border-color 280ms ease, background 280ms ease, transform 180ms ease;
}

.reality-wire.has-arrival {
  border-color: rgba(223, 170, 92, 0.35);
  background:
    radial-gradient(circle at 9% 50%, rgba(223, 170, 92, 0.15), transparent 30%),
    rgba(14, 15, 24, 0.86);
}

.reality-wire:active {
  transform: scale(0.99);
}

.reality-pulse {
  position: relative;
  display: block;
  width: 27px;
  height: 27px;
  border: 1px solid rgba(156, 191, 244, 0.38);
  border-radius: 50%;
}

.reality-pulse::before,
.reality-pulse::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.reality-pulse::before {
  inset: 7px;
  background: var(--blue);
  box-shadow: 0 0 11px rgba(164, 198, 247, 0.58);
}

.reality-pulse::after {
  inset: 2px;
  border: 1px solid rgba(164, 198, 247, 0.18);
  animation: reality-ping 2.6s ease-out infinite;
}

.reality-wire.has-arrival .reality-pulse {
  border-color: rgba(223, 170, 92, 0.55);
}

.reality-wire.has-arrival .reality-pulse::before {
  background: var(--amber-bright);
  box-shadow: 0 0 12px rgba(223, 170, 92, 0.7);
}

@keyframes reality-ping {
  0% {
    opacity: 0.9;
    transform: scale(0.72);
  }
  75%,
  100% {
    opacity: 0;
    transform: scale(1.65);
  }
}

.reality-message {
  min-width: 0;
}

.reality-message small,
.reality-message strong {
  display: block;
}

.reality-message small {
  margin-bottom: 3px;
  color: var(--blue);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.reality-message strong {
  overflow: hidden;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reality-arrow {
  color: var(--faint);
  font-family: var(--serif);
  font-size: 23px;
}

main {
  padding: 0 18px calc(106px + var(--safe-bottom));
}

.view {
  display: none;
  animation: view-in 500ms ease both;
}

.view.is-active {
  display: block;
}

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  animation: reveal-up 720ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.reveal-delay-1 {
  animation-delay: 100ms;
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.day-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 7px;
  color: var(--faint);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.day-line {
  width: 30px;
  height: 1px;
  background: var(--line-strong);
}

.oracle-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: calc(100dvh - 202px - var(--safe-top));
  padding: 15px 4px 32px;
  text-align: center;
}

.orbit-stage {
  position: relative;
  width: min(72vw, 300px);
  aspect-ratio: 1;
  margin: -4px 0 -8px;
}

.eclipse,
.eclipse-glow,
.eclipse-core,
.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.eclipse {
  width: 51%;
  height: 51%;
}

.eclipse-glow {
  width: 112%;
  height: 112%;
  background: conic-gradient(
    from 215deg,
    transparent 0 12%,
    rgba(171, 203, 255, 0.8) 24%,
    rgba(255, 218, 157, 0.6) 32%,
    transparent 45% 100%
  );
  filter: blur(5px);
  animation: corona 9s ease-in-out infinite;
}

.eclipse-core {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 60% 35%, rgba(34, 40, 58, 0.35), transparent 40%),
    #05070d;
  border: 1px solid rgba(194, 217, 251, 0.28);
  box-shadow:
    inset -12px -8px 34px rgba(32, 43, 70, 0.55),
    0 0 35px rgba(119, 158, 220, 0.16);
}

.orbit {
  border: 1px solid rgba(155, 182, 225, 0.18);
}

.orbit-a {
  width: 82%;
  height: 43%;
  transform: translate(-50%, -50%) rotate(-18deg);
}

.orbit-b {
  width: 76%;
  height: 76%;
  border-style: dotted;
  animation: spin 26s linear infinite;
}

.orbit-c {
  width: 97%;
  height: 55%;
  transform: translate(-50%, -50%) rotate(58deg);
}

.orbit-stage::before,
.orbit-stage::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 115%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(139, 167, 213, 0.25), transparent);
  transform: translate(-50%, -50%);
}

.orbit-stage::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.wandering-star {
  position: absolute;
  top: 26%;
  right: 17%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber-bright);
  box-shadow:
    0 0 8px var(--amber),
    0 0 18px rgba(223, 170, 92, 0.8);
  animation: star-pulse 3.4s ease-in-out infinite;
}

@keyframes corona {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(-8deg) scale(0.98);
    opacity: 0.68;
  }
  50% {
    transform: translate(-50%, -50%) rotate(8deg) scale(1.04);
    opacity: 1;
  }
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes star-pulse {
  0%,
  100% {
    transform: scale(0.8);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
  }
}

.eyebrow,
.section-kicker {
  display: block;
  color: var(--amber);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.18em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
}

.oracle-hero h1 {
  margin: 11px 0 13px;
  font-size: clamp(32px, 9vw, 43px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.hero-copy {
  max-width: 325px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.primary-button,
.secondary-button,
.text-button {
  cursor: pointer;
}

.primary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  min-height: 58px;
  padding: 15px 20px;
  color: #16130f;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 40%),
    linear-gradient(105deg, #d29a51, #f4d29d 55%, #c78f48);
  border: 1px solid rgba(255, 230, 190, 0.56);
  border-radius: 18px;
  box-shadow:
    0 10px 35px rgba(209, 154, 81, 0.13),
    inset 0 1px rgba(255, 255, 255, 0.5);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.01em;
}

.primary-button:active {
  transform: scale(0.987);
}

.ritual-cta {
  max-width: 310px;
}

.button-glyph {
  font-size: 18px;
}

.text-button {
  min-height: 44px;
  padding: 10px 14px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
}

.forecast-section {
  padding: 22px 0 10px;
  animation: forecast-in 900ms ease both;
}

@keyframes forecast-in {
  from {
    opacity: 0;
    filter: blur(12px);
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

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

.section-heading h1,
.section-heading h2 {
  margin: 4px 0 0;
  font-size: 31px;
  line-height: 1.05;
}

.seal-button {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 76px;
  min-height: 44px;
  padding: 8px 0;
  color: var(--muted);
  background: transparent;
}

.seal-button span {
  font-size: 8px;
  letter-spacing: 0.16em;
}

.seal-button strong {
  margin-top: 2px;
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 500;
}

.signal-card {
  position: relative;
  overflow: hidden;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 35%),
    rgba(17, 21, 33, 0.74);
  backdrop-filter: blur(16px);
}

.signal-primary::after {
  position: absolute;
  right: -42px;
  bottom: -72px;
  width: 180px;
  height: 180px;
  content: "";
  border: 1px solid rgba(168, 199, 248, 0.13);
  border-radius: 50%;
  box-shadow:
    0 0 0 14px rgba(168, 199, 248, 0.028),
    0 0 0 40px rgba(168, 199, 248, 0.02);
}

.signal-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 20px;
}

.truth-tag {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 4px 7px;
  border: 1px solid currentColor;
  border-radius: 6px;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.15em;
  line-height: 1;
}

.truth-tag.pattern {
  color: #9dbff4;
  background: rgba(97, 145, 221, 0.08);
}

.truth-tag.myth {
  color: #e2af6a;
  background: rgba(217, 159, 81, 0.08);
}

.truth-tag.chance {
  color: #b6a9e7;
  background: rgba(148, 127, 211, 0.08);
}

.signal-strength {
  color: var(--faint);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.06em;
}

.signal-card h3 {
  margin: 21px 0 9px;
  font-size: 28px;
}

.signal-card p {
  position: relative;
  z-index: 1;
  max-width: 330px;
  margin-bottom: 18px;
  color: #bdc4d0;
  font-size: 14px;
  line-height: 1.55;
}

.card-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 25px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--amber);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mini-orbit {
  position: relative;
  width: 30px;
  height: 14px;
  border: 1px solid rgba(166, 200, 255, 0.35);
  border-radius: 50%;
  transform: rotate(-14deg);
}

.mini-orbit::after {
  position: absolute;
  top: 4px;
  right: 2px;
  width: 4px;
  height: 4px;
  content: "";
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 7px var(--amber);
}

.signal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.compact-card {
  min-height: 207px;
  padding: 17px;
}

.compact-card h3 {
  margin-top: 25px;
  font-size: 23px;
}

.compact-card p {
  margin-bottom: 0;
  font-size: 12px;
  line-height: 1.55;
}

.signal-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.signal-dot.amber {
  background: var(--amber);
  box-shadow: 0 0 9px var(--amber);
}

.signal-dot.blue {
  background: var(--violet);
  box-shadow: 0 0 9px var(--violet);
}

.anomaly-card {
  display: grid;
  grid-template-columns: 54px 1fr 44px;
  align-items: center;
  gap: 13px;
  margin-top: 10px;
  padding: 16px 14px;
  border: 1px solid rgba(223, 170, 92, 0.2);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(110deg, rgba(122, 82, 41, 0.16), transparent 45%),
    rgba(19, 20, 29, 0.82);
}

.anomaly-symbol {
  position: relative;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(223, 170, 92, 0.27);
  border-radius: 50%;
}

.anomaly-symbol::before,
.anomaly-symbol span {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.anomaly-symbol::before {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(223, 170, 92, 0.45);
}

.anomaly-symbol span {
  width: 15px;
  height: 15px;
  background: #080910;
  box-shadow: 5px -2px 0 -1px var(--amber);
}

.anomaly-card h3 {
  margin: 4px 0 4px;
  font-size: 19px;
}

.anomaly-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.round-action {
  width: 44px;
  height: 44px;
  color: var(--amber);
  background: transparent;
  font-size: 20px;
}

.daily-loop {
  position: relative;
  overflow: hidden;
  margin-top: 12px;
  padding: 18px;
  border: 1px solid rgba(160, 185, 232, 0.24);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 88% 6%, rgba(111, 143, 205, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(34, 43, 67, 0.58), rgba(12, 15, 25, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.daily-loop::after {
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 210px;
  height: 210px;
  content: "";
  border: 1px solid rgba(167, 199, 248, 0.11);
  border-radius: 50%;
  box-shadow:
    0 0 0 20px rgba(167, 199, 248, 0.025),
    0 0 0 52px rgba(167, 199, 248, 0.018);
  pointer-events: none;
}

.loop-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}

.loop-header h3 {
  max-width: 250px;
  margin: 5px 0 0;
  font-size: 23px;
  line-height: 1.05;
}

.loop-progress {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border: 1px solid rgba(223, 170, 92, 0.4);
  border-radius: 50%;
  color: var(--amber-bright);
  background: rgba(119, 78, 33, 0.12);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}

.loop-stage {
  position: relative;
  z-index: 1;
  padding-top: 16px;
  animation: forecast-in 520ms ease both;
}

.loop-step {
  color: var(--blue);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.loop-stage > p {
  margin: 8px 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.sigil-choices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.sigil-choices button {
  min-height: 88px;
  color: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background: rgba(8, 11, 19, 0.58);
}

.sigil-choices button:active {
  border-color: var(--amber);
  background: rgba(118, 77, 32, 0.18);
  transform: scale(0.97);
}

.sigil-choices span {
  display: block;
  margin-bottom: 8px;
  color: var(--amber-bright);
  font-family: var(--serif);
  font-size: 30px;
}

.sigil-choices small {
  color: var(--faint);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.mission-seal {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 13px;
  align-items: center;
  margin-top: 12px;
}

.mission-seal > span {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(223, 170, 92, 0.38);
  border-radius: 50%;
  color: var(--amber-bright);
  font-family: var(--serif);
  font-size: 25px;
  box-shadow: 0 0 24px rgba(223, 170, 92, 0.09);
}

.mission-seal small,
.mission-seal strong {
  display: block;
}

.mission-seal small {
  margin-bottom: 4px;
  color: var(--faint);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.mission-seal strong {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.22;
}

.echo-lock {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px 10px;
  margin-top: 16px;
  padding: 13px 14px;
  border: 1px solid rgba(164, 190, 233, 0.16);
  border-radius: 13px;
  background: rgba(8, 11, 19, 0.48);
}

.echo-lock span {
  color: var(--blue);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.echo-lock strong {
  grid-row: span 2;
  color: var(--paper);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 19px;
  font-weight: 500;
}

.echo-lock small {
  color: var(--faint);
  font-size: 8px;
}

#loop-echo-stage blockquote {
  margin: 13px 0 18px;
  padding: 15px 0 15px 16px;
  border-left: 1px solid var(--amber);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.18;
}

.echo-outcomes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.echo-outcomes button {
  min-height: 43px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 11, 19, 0.6);
  font-size: 10px;
}

.echo-outcomes button:active {
  color: var(--ink);
  border-color: var(--amber);
  background: var(--amber);
}

.loop-complete {
  text-align: center;
}

.fragment-mark {
  width: fit-content;
  margin: 13px auto 11px;
  padding: 7px 11px;
  color: var(--amber-bright);
  border: 1px solid rgba(223, 170, 92, 0.35);
  border-radius: 9px;
  background: rgba(118, 77, 32, 0.12);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.13em;
}

.loop-complete h4 {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
}

.secondary-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 66px;
  margin-top: 12px;
  padding: 13px 17px;
  color: var(--paper);
  background: rgba(16, 20, 32, 0.72);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  text-align: left;
  text-decoration: none;
}

.secondary-button small {
  display: block;
  margin-bottom: 2px;
  color: var(--faint);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.16em;
}

.truth-footnote {
  margin: 18px 18px 2px;
  color: var(--faint);
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

.threshold-availability {
  margin: 11px 8px 0;
  padding: 10px 12px;
  color: var(--amber-bright);
  border: 1px solid rgba(223, 170, 92, 0.22);
  border-radius: 12px;
  background: rgba(101, 66, 29, 0.12);
  font-size: 10px;
  line-height: 1.45;
  text-align: center;
}

.bottom-nav {
  position: fixed;
  z-index: 40;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(100%, 520px);
  min-height: calc(72px + var(--safe-bottom));
  margin: 0 auto;
  padding: 4px 18px calc(7px + var(--safe-bottom));
  background: linear-gradient(180deg, rgba(8, 10, 18, 0.18), rgba(8, 10, 18, 0.96) 30%);
  backdrop-filter: blur(22px);
  border-top: 1px solid rgba(195, 211, 239, 0.08);
}

.nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 58px;
  padding: 0;
  color: #606a7b;
  background: transparent;
  font-size: 9px;
  font-weight: 650;
}

.nav-item.is-active {
  color: var(--paper);
}

.nav-item.is-active::before {
  position: absolute;
  top: 3px;
  width: 22px;
  height: 1px;
  content: "";
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber);
}

.nav-alert {
  position: absolute;
  top: 12px;
  left: calc(50% + 8px);
  width: 7px;
  height: 7px;
  border: 1px solid #f8d79c;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 11px rgba(223, 170, 92, 0.9);
  animation: star-pulse 1.8s ease-in-out infinite;
}

.nav-icon {
  position: relative;
  width: 20px;
  height: 20px;
}

.sun-glyph {
  border: 1px solid currentColor;
  border-radius: 50%;
}

.sun-glyph::after {
  position: absolute;
  inset: 5px;
  content: "";
  border-radius: 50%;
  background: currentColor;
}

.chronicle-glyph {
  border: 1px solid currentColor;
  border-radius: 50% 50% 48% 52%;
}

.chronicle-glyph::before,
.chronicle-glyph::after {
  position: absolute;
  width: 1px;
  height: 8px;
  content: "";
  background: currentColor;
}

.chronicle-glyph::before {
  top: 2px;
  left: 8px;
  transform: rotate(35deg);
}

.chronicle-glyph::after {
  right: 7px;
  bottom: 2px;
  transform: rotate(35deg);
}

.threshold-nav {
  transform: translateY(-7px);
}

.nav-portal {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #16110b;
  background: linear-gradient(135deg, var(--amber-bright), #bb7d36);
  border: 2px solid rgba(255, 224, 174, 0.65);
  border-radius: 50%;
  box-shadow: 0 5px 25px rgba(222, 168, 91, 0.22);
  font-family: var(--serif);
  font-size: 25px;
}

.threshold-intro {
  padding: 14px 4px 16px;
  text-align: center;
}

.memory-card {
  margin-bottom: 12px;
  padding: 13px 15px;
  border: 1px solid rgba(223, 170, 92, 0.25);
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(112, 74, 31, 0.13), rgba(18, 24, 39, 0.72));
}

.memory-card strong {
  display: block;
  margin: 5px 0 3px;
  color: var(--amber-bright);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.memory-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.threshold-glyph {
  position: relative;
  display: grid;
  width: 72px;
  height: 72px;
  margin: 0 auto 13px;
  place-items: center;
  border: 1px solid rgba(167, 198, 246, 0.22);
  border-radius: 50%;
}

.threshold-glyph::before,
.threshold-glyph::after,
.threshold-glyph span {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.threshold-glyph::before {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(167, 198, 246, 0.3);
}

.threshold-glyph::after {
  width: 25px;
  height: 49px;
  border: 1px solid rgba(223, 170, 92, 0.7);
  transform: rotate(35deg);
}

.threshold-glyph span {
  width: 9px;
  height: 9px;
  background: var(--amber);
  box-shadow: 0 0 14px var(--amber);
  transform: translate(21px, -11px);
}

.threshold-intro h1 {
  margin: 7px 0 10px;
  font-size: 34px;
  line-height: 1.02;
}

.threshold-intro p {
  max-width: 360px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.threshold-form {
  padding-top: 10px;
}

.field-label,
fieldset legend {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 9px;
  color: var(--faint);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.16em;
}

.intention-field {
  position: relative;
}

.intention-field textarea {
  width: 100%;
  min-height: 84px;
  resize: none;
  padding: 17px 48px 17px 17px;
  color: var(--paper);
  background: rgba(17, 21, 34, 0.82);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  font-size: 16px;
  line-height: 1.4;
  outline: 0;
}

.intention-field textarea:focus {
  border-color: rgba(223, 170, 92, 0.55);
  box-shadow: 0 0 0 3px rgba(223, 170, 92, 0.08);
}

.intention-field textarea::placeholder {
  color: #5e6677;
}

.intention-mark {
  position: absolute;
  top: 20px;
  right: 17px;
  color: var(--amber);
  font-family: var(--serif);
  font-size: 22px;
}

fieldset {
  margin: 22px 0 0;
  padding: 0;
  border: 0;
}

.choice-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.choice-chip {
  min-height: 46px;
  padding: 10px 7px;
  color: var(--muted);
  background: rgba(16, 20, 31, 0.68);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 12px;
}

.choice-chip.is-selected {
  color: var(--amber-bright);
  border-color: rgba(223, 170, 92, 0.46);
  background: rgba(117, 78, 33, 0.14);
}

.safety-check {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 11px;
  margin: 23px 1px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.safety-check input {
  position: absolute;
  opacity: 0;
}

.check-box {
  position: relative;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
}

.safety-check input:checked + .check-box {
  border-color: var(--amber);
  background: var(--amber);
}

.safety-check input:checked + .check-box::after {
  position: absolute;
  top: 3px;
  left: 7px;
  width: 5px;
  height: 10px;
  content: "";
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
}

.threshold-result {
  padding-top: 14px;
  text-align: center;
  animation: forecast-in 800ms ease both;
}

.result-seal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--faint);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.result-seal strong {
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 500;
}

.map-oracle {
  position: relative;
  overflow: hidden;
  width: 238px;
  height: 238px;
  margin: 24px auto 18px;
  border: 1px solid rgba(165, 198, 247, 0.18);
  border-radius: 50%;
  background:
    linear-gradient(rgba(138, 169, 216, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 169, 216, 0.04) 1px, transparent 1px),
    radial-gradient(circle, rgba(37, 49, 74, 0.42), rgba(8, 11, 19, 0.82) 68%);
  background-size: 24px 24px, 24px 24px, auto;
  box-shadow: inset 0 0 45px rgba(92, 133, 198, 0.08);
}

.radar-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(166, 200, 255, 0.14);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.radar-one {
  width: 34%;
  height: 34%;
}

.radar-two {
  width: 64%;
  height: 64%;
}

.radar-three {
  width: 92%;
  height: 92%;
}

.radar-sweep {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 47%;
  height: 47%;
  background: conic-gradient(from -22deg, rgba(223, 170, 92, 0.22), transparent 44%);
  transform-origin: 0 0;
  animation: radar 7s linear infinite;
}

.map-oracle.is-searching .radar-sweep {
  animation-duration: 1.5s;
}

@keyframes radar {
  to {
    transform: rotate(360deg);
  }
}

.map-point {
  position: absolute;
  top: 37%;
  left: 62%;
  width: 8px;
  height: 8px;
  border: 2px solid #1b1309;
  border-radius: 50%;
  background: var(--amber-bright);
  box-shadow: 0 0 0 5px rgba(223, 170, 92, 0.13), 0 0 13px var(--amber);
  opacity: 0;
  transition: opacity 600ms ease, transform 600ms ease;
}

.map-oracle.has-point .map-point {
  opacity: 1;
  transform: scale(1);
}

.map-line {
  position: absolute;
  display: block;
  height: 1px;
  background: rgba(143, 173, 219, 0.13);
  transform-origin: left center;
}

.line-one {
  top: 29%;
  left: 12%;
  width: 100px;
  transform: rotate(22deg);
}

.line-two {
  top: 70%;
  left: 31%;
  width: 128px;
  transform: rotate(-43deg);
}

.line-three {
  top: 50%;
  left: 10%;
  width: 190px;
  transform: rotate(88deg);
}

.result-copy h2 {
  margin: 6px 0 8px;
  font-size: 29px;
  line-height: 1.08;
}

.result-copy p {
  max-width: 330px;
  margin: 0 auto 18px;
  color: var(--muted);
  font-size: 12px;
}

.omen-card {
  padding: 16px;
  border: 1px solid rgba(223, 170, 92, 0.22);
  border-radius: var(--radius-md);
  background: rgba(94, 61, 25, 0.09);
  text-align: left;
}

.omen-card span,
.omen-card small {
  display: block;
  color: var(--faint);
  font-size: 8px;
  letter-spacing: 0.13em;
}

.omen-card strong {
  display: block;
  margin: 8px 0 5px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
}

.route-panel {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(223, 170, 92, 0.28);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 14% 10%, rgba(223, 170, 92, 0.11), transparent 34%),
    rgba(12, 15, 24, 0.86);
  text-align: left;
}

.route-heading {
  display: flex;
  gap: 11px;
  align-items: center;
}

.route-heading h3 {
  margin: 3px 0 0;
  font-size: 22px;
  line-height: 1.08;
}

.route-orbit {
  display: grid;
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  place-items: center;
  color: var(--amber-bright);
  border: 1px solid rgba(223, 170, 92, 0.45);
  border-radius: 50%;
  background: rgba(223, 170, 92, 0.07);
  font-family: var(--serif);
  font-size: 22px;
}

.route-primary {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 11px;
  align-items: center;
  min-height: 69px;
  margin-top: 14px;
  padding: 11px 14px;
  color: #101219;
  border: 1px solid #f2d39f;
  border-radius: 16px;
  background: linear-gradient(115deg, #f3d7a8, #d9a75d);
  box-shadow: 0 10px 28px rgba(151, 99, 37, 0.2);
  text-decoration: none;
}

.route-primary small,
.route-primary span {
  display: block;
}

.route-primary small {
  margin-bottom: 2px;
  color: rgba(16, 18, 25, 0.6);
  font-size: 7px;
  font-weight: 850;
  letter-spacing: 0.15em;
}

.route-primary > span:nth-child(2) {
  font-size: 13px;
  font-weight: 800;
}

.route-provider-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(16, 18, 25, 0.3);
  border-radius: 12px;
  font-family: var(--serif);
  font-size: 23px;
}

.route-alternatives {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.route-alternatives a {
  min-height: 55px;
  padding: 10px 11px;
  color: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: rgba(20, 24, 37, 0.72);
  text-decoration: none;
}

.route-alternatives strong,
.route-alternatives small {
  display: block;
}

.route-alternatives strong {
  margin-bottom: 2px;
  font-size: 11px;
}

.route-alternatives small {
  color: var(--faint);
  font-size: 8px;
}

.route-panel > p {
  margin: 12px 2px 0;
  color: var(--faint);
  font-size: 9px;
  line-height: 1.45;
}

.threshold-result .primary-button {
  margin-top: 12px;
}

.sealed-signs {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.sealed-signs li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  align-items: start;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.25;
}

.sealed-signs li span {
  color: var(--amber);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.threshold-recovery,
.arrival-panel,
.threshold-complete {
  margin-top: 14px;
  padding: 17px;
  border: 1px solid rgba(154, 180, 225, 0.2);
  border-radius: var(--radius-md);
  background: rgba(16, 20, 32, 0.72);
  text-align: left;
}

.threshold-recovery p,
.arrival-panel p,
.threshold-complete p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.recovery-actions,
.threshold-outcomes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 12px;
}

.recovery-actions {
  grid-template-columns: repeat(2, 1fr);
}

.recovery-actions button,
.threshold-outcomes button {
  min-height: 46px;
  padding: 9px;
  color: var(--muted);
  background: rgba(9, 12, 21, 0.78);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  font-size: 11px;
}

.threshold-outcomes button.is-selected {
  color: var(--ink);
  background: var(--amber-bright);
  border-color: var(--amber-bright);
}

.arrival-panel h3,
.threshold-complete h3 {
  margin: 7px 0 6px;
  font-size: 25px;
}

.arrival-panel .field-label {
  margin-top: 18px;
}

#threshold-note {
  width: 100%;
  resize: none;
  padding: 13px;
  color: var(--paper);
  background: rgba(8, 11, 19, 0.8);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  font-size: 16px;
  line-height: 1.4;
}

.threshold-fragment {
  position: relative;
  overflow: hidden;
  width: 132px;
  height: 132px;
  margin: 15px auto;
  border: 1px solid rgba(223, 170, 92, 0.44);
  border-radius: 50%;
  background:
    radial-gradient(circle at var(--x, 35%) var(--y, 42%), rgba(239, 190, 112, 0.8) 0 3px, transparent 4px),
    conic-gradient(from var(--turn, 20deg), transparent, rgba(135, 171, 229, 0.32), transparent 58%),
    radial-gradient(circle, #182034, #090c15 67%);
  box-shadow: inset 0 0 25px rgba(113, 151, 216, 0.12), 0 0 28px rgba(223, 170, 92, 0.1);
}

.threshold-fragment::before,
.threshold-fragment::after {
  position: absolute;
  inset: 20%;
  content: "";
  border: 1px solid rgba(173, 203, 249, 0.38);
  border-radius: var(--fragment-radius, 46% 54% 38% 62%);
  transform: rotate(var(--fragment-rotation, 23deg));
}

.threshold-fragment::after {
  inset: 33%;
  border-color: rgba(223, 170, 92, 0.62);
  transform: rotate(calc(var(--fragment-rotation, 23deg) * -1));
}

.constellation-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.constellation-progress strong {
  color: var(--amber-bright);
  font-size: 15px;
}

.safety-note {
  margin: 17px 12px;
  color: var(--faint);
  font-size: 9px;
  line-height: 1.5;
}

.chronicle-heading {
  align-items: center;
  padding: 31px 3px 12px;
}

.chronicle-heading h1 {
  font-size: 34px;
}

.moon-index {
  display: grid;
  width: 51px;
  height: 51px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--amber);
  font-family: var(--serif);
  font-size: 17px;
}

.chronicle-constellation {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 14px;
  margin: 13px 0 16px;
  padding: 16px;
  border: 1px solid rgba(126, 163, 222, 0.2);
  border-radius: var(--radius-md);
  background: radial-gradient(circle at 72% 30%, rgba(112, 151, 216, 0.13), rgba(13, 17, 28, 0.82) 64%);
}

.chronicle-constellation h2 {
  margin: 4px 0 0;
  font-size: 24px;
}

.chronicle-constellation > strong {
  align-self: center;
  color: var(--amber-bright);
  font-family: var(--serif);
  font-size: 21px;
}

.constellation-nodes {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.constellation-nodes span {
  height: 6px;
  border: 1px solid rgba(157, 190, 242, 0.25);
  border-radius: 50%;
  background: rgba(113, 151, 216, 0.08);
}

.constellation-nodes span.is-lit {
  border-color: rgba(242, 195, 122, 0.75);
  background: var(--amber-bright);
  box-shadow: 0 0 10px rgba(223, 170, 92, 0.62);
}

.chronicle-constellation p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.chronicle-empty {
  padding: 58px 20px 34px;
  text-align: center;
}

.empty-orbit {
  position: relative;
  display: grid;
  width: 120px;
  height: 120px;
  margin: 0 auto 25px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.empty-orbit::before,
.empty-orbit span {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.empty-orbit::before {
  width: 70px;
  height: 70px;
  border: 1px dotted var(--line-strong);
}

.empty-orbit span {
  width: 20px;
  height: 20px;
  background: #0c101a;
  border: 1px solid var(--line-strong);
}

.chronicle-empty h2 {
  margin-bottom: 7px;
  font-size: 27px;
}

.chronicle-empty p {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 13px;
}

.stats-ribbon {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 15px 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(16, 20, 31, 0.64);
}

.stats-ribbon div {
  padding: 15px 7px;
  text-align: center;
}

.stats-ribbon div + div {
  border-left: 1px solid var(--line);
}

.stats-ribbon strong,
.stats-ribbon span {
  display: block;
}

.stats-ribbon strong {
  color: var(--amber-bright);
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 400;
}

.stats-ribbon span {
  color: var(--faint);
  font-size: 8px;
}

.chronicle-list {
  display: grid;
  gap: 9px;
}

.chronicle-item {
  display: grid;
  grid-template-columns: 39px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(16, 20, 31, 0.63);
}

.chronicle-symbol {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--amber);
  font-family: var(--serif);
}

.chronicle-item strong,
.chronicle-item small {
  display: block;
}

.chronicle-item strong {
  margin-bottom: 2px;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 400;
}

.chronicle-item small {
  color: var(--faint);
  font-size: 9px;
}

.outcome-badge {
  padding: 4px 7px;
  border-radius: 7px;
  color: var(--blue);
  background: rgba(104, 151, 220, 0.1);
  font-size: 8px;
}

.bias-card {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid rgba(158, 192, 242, 0.16);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(56, 79, 117, 0.14), rgba(17, 21, 33, 0.62));
}

.bias-card h3 {
  margin: 15px 0 7px;
  font-size: 20px;
}

.bias-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.sheet,
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
}

.sheet-backdrop,
.modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 5, 10, 0.75);
  backdrop-filter: blur(6px);
}

.sheet-panel {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: min(100%, 520px);
  max-height: 89dvh;
  margin: 0 auto;
  overflow-y: auto;
  padding: 12px 22px calc(24px + var(--safe-bottom));
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 30px 30px 0 0;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 30%),
    #111522;
  box-shadow: 0 -20px 70px rgba(0, 0, 0, 0.5);
  animation: sheet-up 450ms cubic-bezier(0.22, 0.82, 0.24, 1) both;
}

@keyframes sheet-up {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.sheet-handle {
  width: 42px;
  height: 4px;
  margin: 0 auto 25px;
  border-radius: 10px;
  background: var(--line-strong);
}

.sheet-panel h2 {
  margin: 7px 0 9px;
  font-size: 31px;
}

.profile-impact {
  margin: 0 0 17px;
  padding: 11px 12px;
  color: #c4cad4;
  border: 1px solid rgba(158, 191, 241, 0.17);
  border-radius: 12px;
  background: rgba(50, 71, 105, 0.1);
  font-size: 10px;
  line-height: 1.5;
}

.sheet-intro {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

#profile-form label {
  display: block;
  margin-bottom: 14px;
}

#profile-form label > span {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
}

#profile-form label small {
  color: var(--faint);
  font-size: 9px;
}

#profile-form input {
  width: 100%;
  min-height: 49px;
  padding: 12px 14px;
  color: var(--paper);
  color-scheme: dark;
  background: #0c101a;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  font-size: 16px;
}

.data-vault {
  margin-top: 18px;
  padding: 15px;
  border: 1px solid rgba(223, 170, 92, 0.24);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(223, 170, 92, 0.07), transparent 45%),
    rgba(8, 10, 18, 0.5);
}

.vault-heading {
  display: flex;
  align-items: center;
  gap: 11px;
}

.vault-heading > div {
  min-width: 0;
}

.vault-heading .section-kicker {
  display: block;
  margin-bottom: 3px;
  font-size: 8px;
}

.vault-heading strong {
  display: block;
  color: var(--paper);
  font-size: 12px;
  font-weight: 650;
}

.vault-shield {
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  place-items: center;
  color: var(--amber-bright);
  border: 1px solid rgba(223, 170, 92, 0.4);
  border-radius: 50% 50% 46% 46%;
  background: rgba(223, 170, 92, 0.08);
  font-family: var(--serif);
  font-size: 20px;
}

#vault-status-detail,
.vault-recovery-note {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.vault-recovery-note {
  padding: 10px 11px;
  color: #d5dbea;
  border: 1px solid rgba(166, 200, 255, 0.18);
  border-radius: 11px;
  background: rgba(70, 93, 132, 0.12);
}

.vault-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 13px;
}

.vault-button {
  min-height: 46px;
  padding: 10px 8px;
  color: #d9deea;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(18, 22, 35, 0.78);
  font-size: 11px;
  font-weight: 650;
}

.vault-button span {
  margin-right: 4px;
  color: var(--amber-bright);
  font-size: 15px;
}

.vault-button:active {
  transform: scale(0.985);
  background: rgba(37, 44, 63, 0.9);
}

.signals-panel {
  padding-bottom: calc(30px + var(--safe-bottom));
}

.signal-permission-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: center;
  margin: 18px 0 14px;
  padding: 16px;
  border: 1px solid rgba(151, 184, 235, 0.2);
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 50%, rgba(135, 176, 240, 0.13), transparent 30%),
    rgba(8, 11, 19, 0.58);
}

.signal-permission-card.is-live {
  border-color: rgba(223, 170, 92, 0.35);
  background:
    radial-gradient(circle at 12% 50%, rgba(223, 170, 92, 0.14), transparent 32%),
    rgba(8, 11, 19, 0.64);
}

.permission-orbit {
  position: relative;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(159, 193, 245, 0.32);
  border-radius: 50%;
}

.permission-orbit::before {
  position: absolute;
  width: 36px;
  height: 24px;
  content: "";
  border: 1px solid rgba(159, 193, 245, 0.24);
  border-radius: 50%;
  transform: rotate(-29deg);
}

.permission-orbit span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 12px rgba(159, 193, 245, 0.65);
}

.signal-permission-card.is-live .permission-orbit span {
  background: var(--amber-bright);
  box-shadow: 0 0 13px rgba(223, 170, 92, 0.8);
}

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

.signal-permission-card small {
  margin-bottom: 4px;
  color: var(--blue);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.signal-permission-card strong {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.15;
}

.signal-permission-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.signal-rules {
  display: grid;
  gap: 8px;
  margin-top: 17px;
}

.signal-rules > div {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: start;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(8, 11, 19, 0.42);
}

.signal-rules > div > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--amber);
  border: 1px solid rgba(223, 170, 92, 0.28);
  border-radius: 50%;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
}

.signal-rules p {
  margin: 0;
}

.signal-rules strong,
.signal-rules small {
  display: block;
}

.signal-rules strong {
  margin-bottom: 3px;
  color: var(--paper);
  font-size: 11px;
}

.signal-rules small {
  color: var(--faint);
  font-size: 9px;
  line-height: 1.4;
}

.notification-footnote {
  margin: 15px 8px 0;
  color: var(--faint);
  font-size: 9px;
  line-height: 1.45;
  text-align: center;
}

.sheet-close {
  top: 16px;
  right: 16px;
}

.danger-link {
  display: block;
  margin: 14px auto 0;
  color: var(--danger);
}

.modal {
  display: grid;
  place-items: center;
  padding: calc(16px + var(--safe-top)) 16px calc(16px + var(--safe-bottom));
  background: rgba(4, 6, 11, 0.88);
  backdrop-filter: blur(10px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  max-height: 94dvh;
  overflow-y: auto;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 50% -10%, rgba(80, 105, 154, 0.2), transparent 40%),
    #0c101a;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  animation: modal-in 420ms ease both;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--muted);
  background: transparent;
  font-size: 26px;
}

.ritual-panel {
  display: flex;
  flex-direction: column;
  min-height: min(700px, calc(100dvh - 32px - var(--safe-top) - var(--safe-bottom)));
  padding-top: 52px;
  text-align: center;
}

.ritual-progress {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 32px;
}

.ritual-progress span {
  width: 24px;
  height: 2px;
  background: var(--line-strong);
}

.ritual-progress span.is-active {
  background: var(--amber);
  box-shadow: 0 0 7px rgba(223, 170, 92, 0.7);
}

.ritual-step {
  display: none;
  flex: 1;
  flex-direction: column;
  align-items: center;
  animation: forecast-in 500ms ease both;
}

.ritual-step.is-active {
  display: flex;
}

.ritual-step h2 {
  margin: 9px 0 9px;
  font-size: 34px;
  line-height: 1.04;
}

.ritual-step > p {
  color: var(--muted);
  font-size: 12px;
}

.energy-choices {
  display: grid;
  width: 100%;
  gap: 9px;
  margin-top: 20px;
}

.energy-choices button {
  display: grid;
  grid-template-columns: 55px 1fr;
  grid-template-rows: 1fr 1fr;
  min-height: 75px;
  padding: 13px 16px;
  color: var(--paper);
  background: rgba(19, 24, 38, 0.82);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: left;
}

.energy-wave {
  position: relative;
  grid-row: 1 / 3;
  align-self: center;
  width: 37px;
  height: 25px;
}

.energy-wave::before,
.energy-wave::after {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  content: "";
  background: var(--amber);
  transform-origin: center;
}

.wave-low::after {
  transform: translateY(-5px);
  opacity: 0.35;
}

.wave-steady::before {
  transform: rotate(16deg);
}

.wave-steady::after {
  transform: rotate(-16deg);
}

.wave-high::before {
  clip-path: polygon(0 45%, 19% 45%, 29% 0, 44% 100%, 56% 18%, 70% 78%, 79% 45%, 100% 45%, 100% 55%, 84% 55%, 71% 100%, 58% 48%, 44% 100%, 28% 30%, 23% 55%, 0 55%);
  height: 25px;
  background: var(--amber);
  transform: translateY(-50%);
}

.wave-high::after {
  display: none;
}

.energy-choices strong {
  align-self: end;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
}

.energy-choices small {
  color: var(--faint);
  font-size: 10px;
}

.hold-button {
  position: relative;
  display: grid;
  width: 174px;
  height: 174px;
  margin: 45px auto 18px;
  padding: 0;
  place-items: center;
  color: var(--paper);
  background: transparent;
  border-radius: 50%;
  user-select: none;
  -webkit-user-select: none;
}

.hold-ring,
.hold-ring::before {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(174, 202, 245, 0.2);
  border-radius: 50%;
}

.hold-ring::before {
  inset: 11px;
  content: "";
}

.hold-button.is-holding .hold-ring {
  background: conic-gradient(var(--amber) var(--hold-progress, 0deg), transparent 0);
  -webkit-mask: radial-gradient(transparent 66%, #000 68%);
  mask: radial-gradient(transparent 66%, #000 68%);
}

.hold-core {
  display: grid;
  width: 105px;
  height: 105px;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 45% 35%, #1b2232, #090c14 70%);
  border: 1px solid rgba(200, 217, 245, 0.22);
  box-shadow: 0 0 35px rgba(110, 150, 211, 0.09);
  font-family: var(--serif);
  font-size: 18px;
}

.hold-button.is-complete .hold-core {
  color: #17110b;
  background: var(--amber-bright);
  box-shadow: 0 0 40px rgba(223, 170, 92, 0.3);
}

.hold-hint {
  color: var(--faint);
  font-size: 10px;
}

.card-choice {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  margin-top: 34px;
  perspective: 700px;
}

.card-choice button {
  position: relative;
  min-height: 205px;
  overflow: hidden;
  color: rgba(226, 237, 252, 0.5);
  background:
    repeating-radial-gradient(circle at 50% 48%, transparent 0 12px, rgba(165, 196, 243, 0.1) 13px 14px),
    #111725;
  border: 1px solid rgba(183, 207, 242, 0.23);
  border-radius: 50px 50px 16px 16px;
  box-shadow: inset 0 0 30px rgba(119, 154, 208, 0.08);
  transition: transform 280ms ease, border-color 280ms ease;
}

.card-choice button:nth-child(1) {
  transform: rotate(-3deg) translateY(8px);
}

.card-choice button:nth-child(3) {
  transform: rotate(3deg) translateY(8px);
}

.card-choice button:active {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--amber);
}

.card-choice span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 42px;
  height: 42px;
  margin: auto;
  place-items: center;
  border: 1px solid rgba(223, 170, 92, 0.4);
  border-radius: 50%;
  color: var(--amber);
  font-family: var(--serif);
}

.ritual-reveal {
  justify-content: center;
}

.reveal-sigil {
  position: relative;
  display: grid;
  width: 150px;
  height: 150px;
  margin-bottom: 25px;
  place-items: center;
  border: 1px solid rgba(171, 202, 250, 0.27);
  border-radius: 50%;
}

.reveal-sigil::before,
.reveal-sigil div {
  position: absolute;
  content: "";
  border: 1px solid rgba(171, 202, 250, 0.26);
  border-radius: 50%;
}

.reveal-sigil::before {
  width: 103px;
  height: 142px;
  transform: rotate(45deg);
}

.reveal-sigil div {
  width: 103px;
  height: 142px;
  transform: rotate(-45deg);
}

.reveal-sigil span {
  position: relative;
  z-index: 1;
  color: var(--amber-bright);
  font-size: 24px;
  filter: drop-shadow(0 0 8px var(--amber));
}

.full-seal {
  margin: 7px 0 25px;
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.compact-modal {
  text-align: left;
}

.compact-modal h2 {
  margin: 8px 0 10px;
  font-size: 29px;
}

.compact-modal > p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.compact-modal code {
  display: block;
  overflow-wrap: anywhere;
  padding: 13px;
  color: var(--blue);
  background: #080b12;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 10px;
  line-height: 1.5;
}

.outcome-choices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 20px;
}

.outcome-choices button {
  min-height: 48px;
  color: var(--paper);
  background: rgba(21, 26, 42, 0.9);
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  font-size: 12px;
}

.truth-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.truth-list div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: start;
}

.truth-list p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.about-note {
  margin-top: 24px !important;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.about-modal-panel {
  max-height: min(86dvh, 720px);
  overflow-y: auto;
}

.about-loop {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 16px 0;
  padding: 11px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 11, 18, 0.62);
}

.about-loop span {
  flex: 1;
  color: var(--blue-bright);
  font-size: 7px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-align: center;
}

.about-loop i {
  color: var(--amber);
  font-size: 10px;
  font-style: normal;
}

.about-legend {
  padding: 11px 12px;
  border-left: 1px solid rgba(223, 170, 92, 0.55);
  background: linear-gradient(90deg, rgba(223, 170, 92, 0.06), transparent);
}

#replay-onboarding-button {
  margin-top: 20px;
}

.toast {
  position: fixed;
  z-index: 200;
  right: 18px;
  bottom: calc(92px + var(--safe-bottom));
  left: 18px;
  width: min(calc(100% - 36px), 484px);
  margin: auto;
  padding: 13px 16px;
  color: var(--paper);
  background: rgba(27, 32, 47, 0.96);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  font-size: 12px;
  text-align: center;
  animation: toast-in 300ms ease both;
}

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

.install-banner {
  position: fixed;
  z-index: 90;
  right: 12px;
  bottom: calc(86px + var(--safe-bottom));
  left: 12px;
  display: grid;
  grid-template-columns: 46px 1fr 38px;
  align-items: center;
  gap: 11px;
  width: min(calc(100% - 24px), 496px);
  margin: auto;
  padding: 11px;
  border: 1px solid var(--line-strong);
  border-radius: 17px;
  background: rgba(20, 25, 39, 0.95);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(20px);
}

.install-icon {
  width: 43px;
  height: 43px;
  overflow: hidden;
  border-radius: 11px;
}

.install-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.install-banner strong,
.install-banner span {
  display: block;
}

.install-banner strong {
  margin-bottom: 2px;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 400;
}

.install-banner span {
  color: var(--muted);
  font-size: 9px;
}

.install-banner button {
  width: 38px;
  height: 38px;
  color: var(--muted);
  background: transparent;
  font-size: 21px;
}

@media (min-width: 540px) {
  body {
    padding: 18px 0;
  }

  .app-shell {
    min-height: calc(100dvh - 36px);
    overflow: hidden;
    border: 1px solid rgba(195, 211, 239, 0.12);
    border-radius: 34px;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  }

  .bottom-nav {
    bottom: 18px;
    border: 1px solid rgba(195, 211, 239, 0.09);
    border-radius: 0 0 34px 34px;
  }
}

@media (max-width: 365px) {
  .onboarding-topbar {
    padding-right: 14px;
    padding-left: 14px;
  }

  .onboarding-brand strong {
    display: none;
  }

  .onboarding-step {
    padding-right: 18px;
    padding-left: 18px;
  }

  .onboarding-step h1 {
    font-size: 37px;
  }

  .onboarding-step h2 {
    font-size: 31px;
  }

  .onboarding-visual {
    height: 108px;
    margin-bottom: 10px;
  }

  .onboarding-sigils {
    gap: 7px;
  }

  .onboarding-sigils button {
    min-height: 112px;
  }

  main {
    padding-right: 14px;
    padding-left: 14px;
  }

  .topbar {
    padding-right: 15px;
    padding-left: 15px;
  }

  .brand-copy small {
    display: none;
  }

  .brand-copy {
    display: none;
  }

  .top-actions {
    gap: 6px;
  }

  .sound-toggle {
    min-width: 68px;
    padding-right: 9px;
    padding-left: 9px;
  }

  .reality-wire {
    width: calc(100% - 28px);
    margin-right: 14px;
    margin-left: 14px;
  }

  .oracle-hero h1 {
    font-size: 31px;
  }

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

  .compact-card {
    min-height: 160px;
  }

  .card-choice {
    gap: 7px;
  }

  .card-choice button {
    min-height: 175px;
  }
}

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