.oracle-shell {
  --orb-yes: #8dffca;
  --orb-no: #ff8fa8;
}

.oracle-admin-link {
  text-decoration: none;
}

body.kant-opening-active {
  overflow: hidden;
}

body.oracle-storybook-theme {
  background:
    linear-gradient(160deg, rgba(2, 3, 10, 0.98) 0%, rgba(11, 9, 24, 0.98) 48%, rgba(3, 12, 18, 0.98) 100%),
    #02030a;
}

body.oracle-storybook-theme::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.16;
  background:
    linear-gradient(90deg, rgba(2, 3, 10, 0.38), rgba(2, 3, 10, 0.08), rgba(2, 3, 10, 0.32)),
    url("/oracle/media/oracle-storybook-atlas.png?v=20260527-oracle5") center / cover no-repeat;
  mix-blend-mode: screen;
}

body.oracle-storybook-theme .oracle-shell,
body.oracle-storybook-theme .shell {
  position: relative;
  z-index: 1;
}

body.oracle-storybook-theme .panel,
body.oracle-storybook-theme .stage-wrap {
  border-color: rgba(240, 204, 130, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 244, 210, 0.08), rgba(141, 232, 255, 0.045)),
    rgba(7, 6, 17, 0.84);
  box-shadow:
    0 24px 72px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

body.oracle-storybook-theme .stage-wrap {
  background:
    linear-gradient(rgba(4, 3, 11, 0.18), rgba(4, 3, 11, 0.62)),
    url("/oracle/media/oracle-storybook-atlas.png?v=20260527-oracle5") center / cover no-repeat,
    #05030b;
}

body.oracle-storybook-theme .brand-mark,
body.oracle-storybook-theme .yesno-orb {
  filter: drop-shadow(0 0 18px rgba(141, 232, 255, 0.18));
}

.kant-opening {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center start;
  min-height: 100svh;
  overflow: hidden;
  color: #f7efe3;
  background: #02030a;
  isolation: isolate;
}

.kant-opening::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 3, 10, 0.94) 0%, rgba(2, 3, 10, 0.76) 34%, rgba(2, 3, 10, 0.16) 68%),
    radial-gradient(circle at 68% 22%, rgba(141, 232, 255, 0.2), transparent 30%),
    radial-gradient(circle at 34% 78%, rgba(240, 204, 130, 0.16), transparent 26%);
}

.kant-opening-bg,
.kant-sky-canvas,
.kant-paper-stream {
  position: absolute;
  inset: 0;
}

.kant-opening-bg {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(2, 3, 10, 0.18), rgba(2, 3, 10, 0.42)),
    url("/oracle/media/kant-oracle-opening.png?v=20260527-oracle4") center / cover no-repeat;
  filter: saturate(1.05) contrast(1.04);
  transform: scale(1.04);
  animation: kant-bg-breathe 9.8s ease-out both;
}

.kant-sky-canvas {
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.92;
  touch-action: none;
}

.kant-opening-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 16px;
  width: min(760px, calc(100vw - 40px));
  margin-left: clamp(20px, 6vw, 110px);
  padding: 22px 0;
}

.kant-kicker {
  margin: 0;
  color: #8de8ff;
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.kant-opening blockquote {
  display: grid;
  gap: 13px;
  margin: 0;
  max-width: 720px;
}

.kant-opening blockquote span:first-child {
  color: #fff7dd;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.08rem;
  line-height: 1.18;
  text-shadow: 0 0 34px rgba(240, 204, 130, 0.22);
}

.kant-opening blockquote span[lang="de"] {
  color: rgba(223, 235, 255, 0.86);
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 650px;
}

.kant-opening cite {
  color: #f0cc82;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kant-opening button {
  cursor: pointer;
  border: 1px solid rgba(141, 232, 255, 0.35);
}

.kant-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(210px, 1fr));
  gap: 10px;
  width: min(590px, 100%);
}

.kant-choice-grid button,
.kant-choice-grid a {
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 72px;
  border-radius: 999px;
  padding: 12px 18px;
  color: #041016;
  background: linear-gradient(135deg, #ffe4a3, #8de8ff 58%, #d8b6ff);
  font-weight: 950;
  text-align: left;
  text-decoration: none;
  box-shadow: 0 18px 55px rgba(141, 232, 255, 0.18);
}

.kant-choice-grid a {
  color: #fff7dd;
  background:
    linear-gradient(135deg, rgba(141, 232, 255, 0.16), rgba(216, 182, 255, 0.2)),
    rgba(5, 8, 18, 0.56);
  border: 1px solid rgba(240, 204, 130, 0.36);
  backdrop-filter: blur(12px);
}

.kant-choice-grid span {
  font-size: 0.96rem;
  line-height: 1;
  letter-spacing: 0;
}

.kant-choice-grid small {
  color: rgba(4, 16, 22, 0.68);
  font-size: 0.72rem;
  line-height: 1.25;
}

.kant-choice-grid a small {
  color: rgba(223, 235, 255, 0.72);
}

.kant-skip {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  min-height: 38px;
  border-radius: 999px;
  padding: 0 14px;
  color: #eaf8ff;
  background: rgba(5, 8, 18, 0.52);
  backdrop-filter: blur(12px);
}

.kant-paper-stream {
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.kant-paper-stream span {
  position: absolute;
  right: calc(-12% - var(--i) * 18px);
  bottom: calc(3% + (var(--i) % 5) * 13%);
  width: 82px;
  aspect-ratio: 0.68;
  border: 1px solid rgba(240, 204, 130, 0.34);
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(255, 242, 190, 0.3), rgba(255, 242, 190, 0.05)),
    repeating-linear-gradient(90deg, rgba(141, 232, 255, 0.18) 0 1px, transparent 1px 18px),
    rgba(15, 19, 31, 0.42);
  box-shadow:
    0 0 22px rgba(240, 204, 130, 0.16),
    inset 0 0 24px rgba(141, 232, 255, 0.08);
  transform: rotate(calc(-32deg + var(--i) * 7deg));
  opacity: 0;
  animation: kant-paper-flow 8.8s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.24s + 1.2s);
}

.kant-opening.is-touched .kant-paper-stream span {
  animation-duration: 5.8s;
}

.kant-opening.is-leaving {
  animation: kant-open-out 1.05s ease both;
}

.kant-opening.is-leaving .kant-paper-stream span {
  animation: kant-paper-exit 0.98s ease both;
}

@keyframes kant-bg-breathe {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1.01);
  }
}

@keyframes kant-paper-flow {
  0% {
    opacity: 0;
    transform: translate3d(0, 34px, 0) rotate(calc(-32deg + var(--i) * 7deg)) scale(0.72);
  }
  22% {
    opacity: 0.76;
  }
  72% {
    opacity: 0.58;
  }
  100% {
    opacity: 0;
    transform: translate3d(calc(-118vw - var(--i) * 8px), -28vh, 0) rotate(calc(80deg + var(--i) * 11deg)) scale(1.24);
  }
}

@keyframes kant-paper-exit {
  to {
    opacity: 0;
    transform: translate3d(-120vw, -35vh, 0) rotate(92deg) scale(1.4);
  }
}

@keyframes kant-open-out {
  to {
    opacity: 0;
    filter: blur(16px);
    transform: scale(1.035);
  }
}

@media (max-width: 720px) {
  .kant-opening {
    place-items: end start;
  }

  .kant-opening::after {
    background:
      linear-gradient(180deg, rgba(2, 3, 10, 0.12) 0%, rgba(2, 3, 10, 0.7) 46%, rgba(2, 3, 10, 0.95) 100%),
      radial-gradient(circle at 64% 20%, rgba(141, 232, 255, 0.2), transparent 34%);
  }

  .kant-opening-bg {
    background-position: 58% center;
  }

  .kant-opening-copy {
    width: calc(100vw - 28px);
    margin: 0 14px 30px;
    gap: 12px;
  }

  .kant-kicker {
    font-size: 0.78rem;
  }

  .kant-opening blockquote span:first-child {
    font-size: 1.34rem;
    line-height: 1.24;
  }

  .kant-opening blockquote span[lang="de"] {
    font-size: 0.86rem;
    line-height: 1.43;
  }

  .kant-choice-grid {
    grid-template-columns: 1fr;
  }

  .kant-choice-grid button,
  .kant-choice-grid a {
    min-height: 62px;
  }

  .kant-paper-stream span {
    width: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kant-opening-bg,
  .kant-paper-stream span,
  .kant-opening.is-leaving,
  .kant-opening.is-leaving .kant-paper-stream span {
    animation: none;
  }
}

.oracle-reading-notice,
.oracle-report-safety {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
}

.oracle-reading-notice {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  padding: 12px 14px;
  line-height: 1.45;
}

.oracle-reading-notice strong {
  color: var(--text);
  font-size: 0.92rem;
  letter-spacing: 0;
}

.oracle-report-safety {
  margin-top: 14px;
  padding: 11px 12px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.oracle-storybook-archive {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  padding: 10px;
  border: 1px solid rgba(240, 204, 130, 0.28);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(240, 204, 130, 0.12), rgba(141, 232, 255, 0.07)),
    rgba(5, 7, 18, 0.72);
  box-shadow: inset 0 0 28px rgba(141, 232, 255, 0.08);
}

.oracle-storybook-archive::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 78% 18%, rgba(141, 232, 255, 0.2), transparent 34%);
}

.oracle-storybook-art {
  position: relative;
  min-height: 92px;
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(2, 3, 10, 0.1), rgba(2, 3, 10, 0.22)),
    url("/oracle/media/oracle-storybook-atlas.png?v=20260527-oracle5") 82% 44% / 420px auto no-repeat;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.09),
    0 12px 32px rgba(0, 0, 0, 0.28);
}

.oracle-storybook-art::before {
  content: "☽";
  position: absolute;
  right: 10px;
  top: 7px;
  color: #8de8ff;
  font-size: 1.24rem;
  text-shadow: 0 0 16px rgba(141, 232, 255, 0.8);
}

.oracle-storybook-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 5px;
  min-width: 0;
}

.oracle-storybook-copy strong {
  color: #fff2bf;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.03rem;
}

.oracle-storybook-copy span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.42;
}

.oracle-human-design-tool {
  text-decoration: none;
}

.oracle-human-design-entry {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 12px;
  min-height: 148px;
  margin: 0 0 14px;
  padding: 16px;
  border: 1px solid rgba(141, 232, 255, 0.28);
  border-radius: 14px;
  color: #f7efe3;
  text-decoration: none;
  background:
    linear-gradient(90deg, rgba(4, 4, 14, 0.9) 0%, rgba(4, 4, 14, 0.56) 48%, rgba(4, 4, 14, 0.14) 100%),
    url("/oracle/media/human-design-preview.png?v=20260527-hd4") center / cover no-repeat,
    radial-gradient(circle at 74% 42%, rgba(141, 232, 255, 0.24), transparent 44%),
    rgba(5, 7, 18, 0.72);
  box-shadow:
    inset 0 0 32px rgba(141, 232, 255, 0.1),
    0 18px 54px rgba(0, 0, 0, 0.28);
}

.oracle-human-design-entry::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(240, 204, 130, 0.16);
  border-radius: 10px;
  pointer-events: none;
}

.oracle-human-design-entry span,
.oracle-human-design-entry strong,
.oracle-human-design-entry small,
.oracle-human-design-entry b {
  position: relative;
  z-index: 1;
}

.oracle-human-design-entry span {
  color: #8de8ff;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.oracle-human-design-entry strong {
  color: #fff2bf;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.34rem;
  line-height: 1.02;
}

.oracle-human-design-entry small {
  max-width: 250px;
  color: rgba(231, 240, 255, 0.78);
  font-size: 0.84rem;
  line-height: 1.36;
}

.oracle-human-design-entry b {
  align-self: end;
  justify-self: end;
  padding: 8px 11px;
  border-radius: 999px;
  color: #041016;
  background: linear-gradient(135deg, #ffe2a0, #8de8ff);
  font-size: 0.78rem;
  line-height: 1;
}

.yesno-orb-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(141, 232, 255, 0.22);
  background:
    radial-gradient(circle at 30% 15%, rgba(141, 232, 255, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(13, 15, 36, 0.92), rgba(26, 16, 43, 0.88));
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.34);
}

.yesno-orb-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.yesno-orb {
  position: relative;
  flex: 0 0 88px;
  width: 88px;
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  color: #06101a;
  cursor: pointer;
  isolation: isolate;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.12) 21%, transparent 34%),
    radial-gradient(circle at 55% 58%, rgba(141, 232, 255, 0.98), rgba(158, 124, 255, 0.58) 48%, rgba(7, 11, 28, 0.85) 74%);
  box-shadow:
    inset 0 -18px 32px rgba(7, 11, 28, 0.46),
    0 0 26px rgba(141, 232, 255, 0.45),
    0 18px 40px rgba(0, 0, 0, 0.36);
}

.yesno-orb::before,
.yesno-orb::after {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  pointer-events: none;
}

.yesno-orb::before {
  border: 1px solid rgba(255, 255, 255, 0.42);
  transform: rotate(28deg) scaleX(0.82);
}

.yesno-orb::after {
  inset: 22%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.86), rgba(141, 232, 255, 0.15) 42%, transparent 68%);
  filter: blur(1px);
}

.yesno-orb span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  font-weight: 900;
  font-size: 1.12rem;
  letter-spacing: 0;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.yesno-orb.is-spinning {
  animation: oracle-orb-pulse 0.72s linear infinite;
}

.yesno-orb-copy {
  min-width: 0;
}

.yesno-orb-copy h3 {
  margin: 0 0 4px;
  font-family: "Playfair Display", serif;
  font-size: 1.22rem;
}

.yesno-orb-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.yesno-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.yesno-form input {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.yesno-form input:focus {
  border-color: rgba(141, 232, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(141, 232, 255, 0.12);
}

.yesno-form button {
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  color: #041016;
  font-weight: 900;
  cursor: pointer;
  background: linear-gradient(135deg, #8dffca, #8de8ff);
}

.yesno-result {
  min-height: 76px;
  display: grid;
  gap: 4px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.yesno-result strong {
  font-size: 1.35rem;
  letter-spacing: 0;
}

.yesno-result.is-yes strong {
  color: var(--orb-yes);
}

.yesno-result.is-no strong {
  color: var(--orb-no);
}

.yesno-result span,
.yesno-result small {
  color: var(--muted);
}

.yesno-result small {
  line-height: 1.4;
}

.yesno-result em {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  font-style: normal;
  line-height: 1.35;
}

.oracle-source-panel {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(3, 7, 20, 0.62);
}

.oracle-source-panel details {
  display: block;
}

.oracle-source-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.oracle-source-panel summary::-webkit-details-marker {
  display: none;
}

.oracle-source-panel summary span {
  color: var(--text);
  font-weight: 900;
}

.oracle-source-panel summary small,
.oracle-source-note,
.oracle-source-grid p {
  color: var(--muted);
}

.oracle-source-note {
  display: grid;
  gap: 6px;
  padding: 0 16px 14px;
  line-height: 1.45;
}

.oracle-source-note p {
  margin: 0;
}

.oracle-source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 16px 16px;
}

.oracle-source-grid article {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.oracle-source-grid h4,
.oracle-source-grid p {
  margin: 0;
}

.oracle-source-grid h4 {
  color: var(--text);
  font-size: 0.94rem;
}

.oracle-source-grid p {
  margin-top: 6px;
  font-size: 0.85rem;
  line-height: 1.42;
}

.oracle-source-grid article div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.oracle-source-grid a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(141, 232, 255, 0.22);
  border-radius: 999px;
  color: #8de8ff;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 800;
}

@keyframes oracle-orb-pulse {
  0% {
    transform: rotate(0deg) scale(1);
    filter: hue-rotate(0deg);
  }
  50% {
    transform: rotate(180deg) scale(1.06);
    filter: hue-rotate(42deg);
  }
  100% {
    transform: rotate(360deg) scale(1);
    filter: hue-rotate(0deg);
  }
}

@media (max-width: 560px) {
  .yesno-orb-head,
  .yesno-form {
    grid-template-columns: 1fr;
  }

  .yesno-orb-head {
    display: grid;
  }

  .yesno-orb {
    justify-self: center;
  }

  .oracle-storybook-archive {
    grid-template-columns: 1fr;
  }

  .oracle-human-design-entry {
    grid-template-columns: 1fr;
    min-height: 176px;
    background-position: 64% center;
  }

  .oracle-human-design-entry b {
    justify-self: start;
  }

  .oracle-storybook-art {
    min-height: 120px;
    background-size: 520px auto;
  }

  .yesno-form button {
    min-height: 44px;
  }

  .oracle-source-panel summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .oracle-source-grid {
    grid-template-columns: 1fr;
  }
}
