:root {
  color-scheme: dark;
  --ink: #f8f1df;
  --ink-soft: #cfc4ad;
  --muted: #8f8677;
  --night: #080705;
  --night-raised: #100d09;
  --surface: rgba(21, 17, 11, 0.78);
  --surface-solid: #15110b;
  --line: rgba(239, 195, 89, 0.16);
  --line-strong: rgba(247, 206, 103, 0.36);
  --gold: #f4c758;
  --gold-hot: #fff0a7;
  --gold-deep: #9d5f08;
  --violet: #a176ff;
  --ember: #ff8a3d;
  --shadow-gold: 0 24px 90px rgba(171, 102, 8, 0.22);
  --content: 1400px;
  font-family: "Cabinet Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--night);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 80% 8%, rgba(126, 79, 18, 0.13), transparent 25%),
    radial-gradient(circle at 20% 38%, rgba(70, 38, 114, 0.09), transparent 27%),
    var(--night);
  color: var(--ink);
  font-family: inherit;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--gold-hot);
  color: #1a1205;
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.page-ambient,
.page-ambient > span {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.ambient-haze {
  width: 56vw;
  height: 56vw;
  border-radius: 50%;
  opacity: 0.14;
  filter: blur(80px);
}

.ambient-haze-a {
  inset: -28vw auto auto 58vw !important;
  background: #bc7208;
}

.ambient-haze-b {
  inset: 48vh auto auto -34vw !important;
  background: #5b2da1;
}

.ambient-stars {
  opacity: 0.28;
  background-image:
    radial-gradient(circle, rgba(255, 238, 176, 0.8) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(183, 132, 255, 0.5) 0 1px, transparent 1.5px);
  background-position: 0 0, 47px 83px;
  background-size: 143px 143px, 197px 197px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 72%);
}

.ambient-grain {
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.oracle-nav {
  position: fixed;
  top: 18px;
  right: 24px;
  left: 24px;
  z-index: 100;
  display: grid;
  width: min(calc(100% - 48px), var(--content));
  min-height: 64px;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  margin: 0 auto;
  padding: 8px 10px 8px 18px;
  border: 1px solid rgba(245, 207, 112, 0.17);
  border-radius: 18px;
  background: rgba(10, 8, 5, 0.68);
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(22px) saturate(130%);
}

.oracle-brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 12px;
}

.oracle-brand > span:last-child {
  display: flex;
  flex-direction: column;
}

.oracle-brand strong {
  font-size: 12px;
  letter-spacing: 0.16em;
}

.oracle-brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  transform: rotate(30deg);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark i {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 1px solid var(--gold);
  content: "";
  transform: rotate(45deg);
}

.brand-mark::after {
  width: 10px;
  height: 10px;
  background: var(--gold);
  box-shadow: 0 0 22px rgba(244, 199, 88, 0.75);
}

.brand-mark i:nth-child(1) { transform: rotate(45deg) translate(4px, -4px); opacity: 0.45; }
.brand-mark i:nth-child(2) { transform: rotate(45deg) translate(-4px, 4px); opacity: 0.25; }
.brand-mark i:nth-child(3) { display: none; }

.nav-roll {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-self: end;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid rgba(249, 218, 134, 0.7);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold-hot), var(--gold));
  box-shadow: 0 10px 32px rgba(179, 107, 12, 0.18);
  color: #211605;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.nav-roll:hover {
  box-shadow: 0 13px 38px rgba(217, 150, 36, 0.3);
  transform: translateY(-2px);
}

.page-shell {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  overflow-y: visible;
}

.oracle-hero {
  position: relative;
  display: grid;
  width: min(calc(100% - 64px), var(--content));
  min-height: 100svh;
  grid-template-columns: minmax(0, 1fr) minmax(560px, 1fr);
  align-items: center;
  gap: clamp(34px, 4vw, 72px);
  margin: 0 auto;
  padding: 138px 0 90px;
}

.hero-copy {
  position: relative;
  z-index: 5;
  max-width: 680px;
}

.hero-kicker,
.section-heading > p,
.ritual-intro > p,
.archive-heading p,
.final-call > p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-kicker i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(244, 199, 88, 0.08), 0 0 24px rgba(244, 199, 88, 0.6);
}

.hero-copy h1 {
  max-width: min(13ch, 100%);
  margin: 0;
  font-size: clamp(58px, 6.4vw, 104px);
  font-weight: 600;
  letter-spacing: -0.062em;
  line-height: 0.86;
}

.inline-die {
  position: relative;
  display: inline-block;
  width: 0.7em;
  height: 0.62em;
  margin: 0 0.08em 0 0.02em;
  vertical-align: 0.04em;
  background: linear-gradient(145deg, var(--gold-hot), #9b5e05 72%);
  clip-path: polygon(50% 0, 95% 26%, 82% 80%, 50% 100%, 15% 79%, 4% 27%);
  filter: drop-shadow(0 0 18px rgba(244, 199, 88, 0.28));
}

.inline-die::before,
.inline-die::after,
.inline-die i {
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(47, 27, 2, 0.42);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  content: "";
}

.inline-die::after {
  inset: 29% 23% 15%;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.hero-lead {
  max-width: 600px;
  margin: 34px 0 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 24px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
}

.primary-action {
  border: 1px solid var(--gold-hot);
  background: linear-gradient(135deg, #fff1b5, var(--gold));
  box-shadow: 0 14px 46px rgba(184, 111, 11, 0.24);
  color: #211605;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.primary-action:hover {
  box-shadow: 0 18px 58px rgba(217, 148, 29, 0.35);
  transform: translateY(-3px);
}

.secondary-action {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.025);
  color: var(--ink);
  transition: border-color 180ms ease, background 180ms ease;
}

.secondary-action:hover {
  border-color: var(--gold);
  background: rgba(244, 199, 88, 0.06);
}

.source-status {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 11px;
}

.status-orb {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(244, 199, 88, 0.7);
}

.source-status.is-live .status-orb {
  background: #7ae6a0;
  box-shadow: 0 0 12px rgba(122, 230, 160, 0.65);
}

.oracle-experience {
  position: relative;
  z-index: 3;
  min-width: 0;
  height: min(76vh, 760px);
  min-height: 610px;
  perspective: 1200px;
}

.oracle-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.stage-outer-vfx,
.particle-host,
.die-motion,
.die-tilt,
.die-surface,
.die-canvas {
  position: absolute;
  inset: 0;
}

.stage-outer-vfx,
.particle-host,
.die-glare {
  pointer-events: none;
}

.stage-outer-vfx {
  z-index: 0;
  display: grid;
  place-items: center;
}

.aura {
  position: absolute;
  border-radius: 50%;
  opacity: 0.54;
  transition: opacity 500ms ease, transform 700ms ease;
}

.aura-wide {
  width: min(78%, 570px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(242, 183, 50, 0.2), rgba(119, 65, 8, 0.05) 42%, transparent 70%);
  filter: blur(18px);
}

.aura-tight {
  width: min(48%, 340px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 236, 170, 0.26), transparent 68%);
  filter: blur(9px);
}

.runic-ring {
  position: absolute;
  width: min(70%, 500px);
  aspect-ratio: 1;
  border: 1px solid rgba(244, 199, 88, 0.25);
  border-radius: 50%;
  box-shadow: inset 0 0 0 8px rgba(244, 199, 88, 0.012), 0 0 48px rgba(180, 109, 13, 0.08);
  animation: rune-orbit 28s linear infinite;
}

.runic-ring::before,
.runic-ring::after {
  position: absolute;
  inset: 9%;
  border: 1px dashed rgba(244, 199, 88, 0.17);
  border-radius: 50%;
  content: "";
}

.runic-ring::after {
  inset: -3%;
  border-style: solid;
  border-color: rgba(244, 199, 88, 0.11) transparent;
}

.runic-ring i {
  position: absolute;
  left: 50%;
  color: rgba(255, 228, 150, 0.52);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.08em;
  transform-origin: 0 calc(min(35vw, 250px));
}

.runic-ring i:nth-child(1) { top: -9px; transform: rotate(0deg); }
.runic-ring i:nth-child(2) { top: -9px; transform: rotate(60deg); }
.runic-ring i:nth-child(3) { top: -9px; transform: rotate(120deg); }
.runic-ring i:nth-child(4) { top: -9px; transform: rotate(180deg); }
.runic-ring i:nth-child(5) { top: -9px; transform: rotate(240deg); }
.runic-ring i:nth-child(6) { top: -9px; transform: rotate(300deg); }

.magic-seal {
  position: absolute;
  width: min(82%, 600px);
  aspect-ratio: 1;
  opacity: 0.2;
  background:
    linear-gradient(30deg, transparent 49.8%, rgba(244, 199, 88, 0.28) 50%, transparent 50.2%),
    linear-gradient(150deg, transparent 49.8%, rgba(244, 199, 88, 0.22) 50%, transparent 50.2%),
    linear-gradient(90deg, transparent 49.8%, rgba(244, 199, 88, 0.12) 50%, transparent 50.2%);
  clip-path: circle(48%);
}

.light-beam {
  position: absolute;
  width: 220px;
  height: 92%;
  opacity: 0.12;
  background: linear-gradient(to bottom, transparent, rgba(255, 225, 145, 0.28) 30%, rgba(255, 222, 129, 0.16) 68%, transparent);
  filter: blur(24px);
  transform: perspective(300px) rotateX(12deg);
}

.particle-host {
  z-index: 6;
  overflow: visible;
}

.magic-particle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--particle-size, 5px);
  height: var(--particle-size, 5px);
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 16%, var(--particle-color, var(--gold-hot)) 25% 48%, transparent 72%);
  box-shadow: 0 0 10px var(--particle-color, var(--gold));
  opacity: 0;
  transform: translate(-50%, -50%);
  animation: particle-burst var(--particle-duration, 1400ms) cubic-bezier(.16,.72,.25,1) var(--particle-delay, 0ms) forwards;
}

.magic-particle.is-dust {
  filter: blur(0.4px);
}

.die-motion {
  z-index: 3;
  display: grid;
  place-items: center;
}

.die-tilt {
  --vfx-tilt-x: 0deg;
  --vfx-tilt-y: 0deg;
  display: grid;
  place-items: center;
  transform: rotateX(var(--vfx-tilt-x)) rotateY(var(--vfx-tilt-y));
  transform-style: preserve-3d;
  transition: transform 280ms cubic-bezier(.2,.75,.2,1);
}

.die-surface {
  position: relative;
  width: min(72%, 520px);
  height: min(72%, 520px);
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.die-canvas canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  filter: drop-shadow(0 32px 42px rgba(0, 0, 0, 0.58)) drop-shadow(0 0 30px rgba(229, 157, 31, 0.18));
  transition: filter 420ms ease;
}

.die-glare {
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  opacity: 0.25;
  background: linear-gradient(125deg, transparent 25%, rgba(255, 255, 255, 0.22) 44%, transparent 58%);
  mix-blend-mode: screen;
  transform: translate3d(calc(var(--vfx-glare-x, 0) * 12px), calc(var(--vfx-glare-y, 0) * 12px), 42px);
}

.die-focus-label {
  position: absolute;
  bottom: 7%;
  left: 50%;
  min-width: 82px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 226, 142, 0.38);
  border-radius: 999px;
  background: rgba(9, 7, 4, 0.68);
  color: var(--gold-hot);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  opacity: 0;
  text-transform: uppercase;
  transform: translate(-50%, 10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.die-surface:hover .die-focus-label,
.die-surface:focus-visible .die-focus-label {
  opacity: 1;
  transform: translate(-50%, 0);
}

.die-hint {
  position: absolute;
  bottom: 7%;
  left: 50%;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateX(-50%);
  transition: opacity 260ms ease, transform 260ms ease;
}

.die-hint span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

.oracle-experience[data-oracle-state="rolling"] .die-hint,
.oracle-experience[data-oracle-state="revealed"] .die-hint {
  opacity: 0;
  transform: translate(-50%, 8px);
}

.oracle-experience[data-oracle-state="rolling"] .runic-ring {
  border-color: rgba(255, 225, 142, 0.62);
  animation-duration: 1.6s;
}

.oracle-experience[data-oracle-state="rolling"] .aura {
  opacity: 1;
  transform: scale(1.16);
}

.oracle-experience[data-oracle-state="rolling"] .die-canvas canvas {
  filter: drop-shadow(0 36px 50px rgba(0, 0, 0, 0.62)) drop-shadow(0 0 52px rgba(249, 190, 73, 0.52));
}

.oracle-experience[data-oracle-state="revealing"] .stage-outer-vfx::after {
  position: absolute;
  width: min(92%, 680px);
  aspect-ratio: 1;
  border: 2px solid rgba(255, 238, 177, 0.9);
  border-radius: 50%;
  box-shadow: 0 0 46px rgba(255, 217, 117, 0.62), inset 0 0 30px rgba(255, 217, 117, 0.32);
  content: "";
  animation: revelation-wave 900ms cubic-bezier(.17,.84,.32,1) forwards;
}

.prophecy-card {
  --vfx-x: 0;
  --vfx-y: 0;
  --vfx-tilt-x: 0deg;
  --vfx-tilt-y: 0deg;
  position: absolute;
  right: 0;
  bottom: 1%;
  left: 2%;
  z-index: 30;
  min-height: 440px;
  perspective: 1000px;
  pointer-events: none;
  transform: translateY(40px) scale(0.94);
  opacity: 0;
  visibility: hidden;
}

.prophecy-card[data-state="revealed"] {
  pointer-events: auto;
  visibility: visible;
}

.prophecy-outer-vfx {
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  background: linear-gradient(120deg, rgba(255, 239, 178, 0.72), rgba(158, 93, 9, 0.18) 35%, rgba(154, 98, 255, 0.42) 72%, rgba(255, 223, 128, 0.6));
  filter: blur(12px);
  opacity: 0.4;
  pointer-events: none;
}

.prophecy-motion,
.prophecy-tilt,
.prophecy-surface {
  position: relative;
  width: 100%;
  min-height: inherit;
}

.prophecy-tilt {
  transform: rotateX(var(--vfx-tilt-x)) rotateY(var(--vfx-tilt-y));
  transform-style: preserve-3d;
  transition: transform 260ms cubic-bezier(.2,.75,.2,1);
}

.prophecy-surface {
  overflow: hidden;
  border: 1px solid rgba(255, 221, 127, 0.42);
  border-radius: 24px;
  background: rgba(15, 12, 8, 0.94);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.58), inset 0 1px rgba(255, 245, 215, 0.1);
}

.prophecy-background,
.prophecy-decor,
.prophecy-glare,
.prophecy-state-vfx {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.prophecy-background {
  background:
    radial-gradient(circle at 84% 8%, rgba(164, 102, 255, 0.2), transparent 31%),
    radial-gradient(circle at 10% 100%, rgba(209, 136, 28, 0.19), transparent 35%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 42%);
  transform: translate3d(calc(var(--vfx-x) * -4px), calc(var(--vfx-y) * -4px), 0);
}

.prophecy-decor i {
  position: absolute;
  border: 1px solid rgba(245, 204, 104, 0.13);
  border-radius: 50%;
}

.prophecy-decor i:nth-child(1) { top: -180px; right: -90px; width: 360px; height: 360px; }
.prophecy-decor i:nth-child(2) { top: -110px; right: -20px; width: 220px; height: 220px; border-style: dashed; }
.prophecy-decor i:nth-child(3) { bottom: -60px; left: 42%; width: 130px; height: 130px; }

.prophecy-glare {
  opacity: 0.38;
  background: radial-gradient(circle at calc(50% + var(--vfx-x) * 35%) calc(50% + var(--vfx-y) * 35%), rgba(255, 246, 211, 0.13), transparent 33%);
  mix-blend-mode: screen;
}

.prophecy-state-vfx {
  background: linear-gradient(105deg, transparent 20%, rgba(255, 247, 220, 0.35) 43%, rgba(190, 143, 255, 0.2) 49%, transparent 64%);
  opacity: 0;
  transform: translateX(-120%);
}

.prophecy-card[data-state="revealed"] .prophecy-state-vfx {
  animation: card-glint 1200ms 260ms cubic-bezier(.2,.75,.2,1) both;
}

.prophecy-content {
  position: relative;
  z-index: 4;
  display: flex;
  min-height: 390px;
  flex-direction: column;
  padding: 30px 32px 24px;
  transform: translate3d(calc(var(--vfx-x) * 5px), calc(var(--vfx-y) * 5px), 18px);
}

.prophecy-content header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.prophecy-category {
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.prophecy-content h2 {
  max-width: 16ch;
  margin: 26px 0 0;
  font-size: clamp(28px, 3.1vw, 46px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.prophecy-content > p {
  max-width: 610px;
  margin: 15px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
}

.prophecy-target {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  width: min(100%, 520px);
  margin-top: 20px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.prophecy-target[hidden] {
  display: none;
}

.prophecy-target:hover {
  border-color: var(--gold);
  background: rgba(244, 199, 88, 0.07);
  transform: translateX(3px);
}

.target-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(244, 199, 88, 0.24);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 235, 167, 0.8) 0 5%, transparent 6%),
    linear-gradient(145deg, rgba(244, 199, 88, 0.22), rgba(134, 78, 10, 0.08));
  background-position: center;
  background-size: cover;
}

.prophecy-target > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.prophecy-target small {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prophecy-target strong {
  margin-top: 3px;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prophecy-target svg {
  color: var(--gold);
}

.prophecy-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}

.prophecy-actions button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease;
}

.prophecy-actions button:hover {
  border-color: var(--gold);
  color: var(--gold-hot);
}

.prophecy-actions svg {
  width: 14px;
  height: 14px;
}

.category-marquee {
  position: relative;
  z-index: 10;
  width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.category-track {
  display: flex;
  width: max-content;
  height: 72px;
  align-items: center;
  will-change: transform;
}

.category-track span {
  min-width: max-content;
  padding: 0 34px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 650;
}

.category-track i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(244, 199, 88, 0.6);
}

.mechanics,
.ritual,
.archive,
.final-call,
.oracle-footer {
  width: min(calc(100% - 64px), var(--content));
  margin: 0 auto;
}

.mechanics {
  padding: 170px 0 190px;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  align-items: end;
  gap: 60px;
  margin-bottom: 70px;
}

.section-heading > p {
  margin: 0 0 10px;
}

.section-heading h2,
.ritual-intro h2,
.archive-heading h2,
.final-call h2 {
  margin: 0;
  font-size: clamp(48px, 5.7vw, 82px);
  font-weight: 600;
  letter-spacing: -0.052em;
  line-height: 0.96;
}

.mechanics-bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: 280px 280px;
  grid-auto-flow: dense;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}

.bento-card {
  position: relative;
  display: flex;
  min-width: 0;
  overflow: hidden;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(16, 13, 9, 0.8);
  transition: background 360ms ease;
}

.bento-card:hover {
  background: rgba(27, 21, 13, 0.92);
}

.bento-formula {
  grid-column: span 2;
  grid-row: span 2;
  align-items: flex-end;
  padding: 42px;
}

.bento-formula > div:last-child,
.bento-live > div:last-child {
  position: relative;
  z-index: 3;
}

.bento-card p {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.bento-card h3 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(28px, 3.2vw, 48px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.bento-card h3 + span {
  display: block;
  max-width: 570px;
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

.formula-orbit {
  position: absolute;
  top: 24px;
  right: 28px;
  display: grid;
  width: 250px;
  height: 250px;
  place-items: center;
  border: 1px solid rgba(244, 199, 88, 0.14);
  border-radius: 50%;
  animation: rune-orbit 36s linear infinite reverse;
}

.formula-orbit::before,
.formula-orbit::after {
  position: absolute;
  inset: 18%;
  border: 1px dashed rgba(244, 199, 88, 0.17);
  border-radius: 50%;
  content: "";
}

.formula-orbit::after {
  inset: 37%;
  border-style: solid;
}

.formula-orbit span {
  position: absolute;
  color: var(--gold-hot);
  font-size: 28px;
  font-weight: 500;
}

.formula-orbit span:first-child { top: 16px; }
.formula-orbit span:nth-of-type(2) { right: 20px; bottom: 48px; }
.formula-orbit span:nth-of-type(3) { bottom: 28px; left: 32px; }

.bento-live {
  grid-column: span 2;
  align-items: flex-end;
  padding: 32px 34px;
  border-right: 0;
}

.bento-live h3 {
  max-width: 16ch;
  font-size: 34px;
}

.live-wave {
  position: absolute;
  top: 28px;
  right: 30px;
  display: flex;
  height: 68px;
  align-items: center;
  gap: 8px;
}

.live-wave i {
  display: block;
  width: 5px;
  border-radius: 999px;
  background: linear-gradient(to top, var(--gold-deep), var(--gold-hot));
}

.live-wave i:nth-child(1) { height: 28%; }
.live-wave i:nth-child(2) { height: 72%; }
.live-wave i:nth-child(3) { height: 44%; }
.live-wave i:nth-child(4) { height: 96%; }
.live-wave i:nth-child(5) { height: 58%; }

.bento-chance,
.bento-choice {
  grid-column: span 1;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  border-bottom: 0;
}

.bento-chance strong {
  color: var(--gold-hot);
  font-size: 58px;
  font-weight: 500;
  letter-spacing: -0.06em;
}

.bento-chance span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.bento-choice {
  border-right: 0;
  background: linear-gradient(145deg, rgba(105, 63, 159, 0.16), rgba(16, 13, 9, 0.8));
}

.bento-choice svg {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 30px;
  height: 30px;
  color: var(--violet);
}

.bento-choice strong {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.ritual {
  display: grid;
  min-height: 1500px;
  grid-template-columns: minmax(320px, 0.76fr) minmax(520px, 1.24fr);
  align-items: start;
  gap: clamp(70px, 9vw, 150px);
  padding: 120px 0 180px;
}

.ritual-intro {
  position: sticky;
  top: 160px;
}

.ritual-intro h2 {
  max-width: 12ch;
  font-size: clamp(48px, 5vw, 72px);
}

.ritual-intro > span {
  display: block;
  max-width: 470px;
  margin-top: 28px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
}

.ritual-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 38vh;
  padding-top: 60px;
  padding-bottom: 200px;
}

.ritual-card {
  position: sticky;
  top: 150px;
  display: grid;
  min-height: 440px;
  grid-template-columns: 160px 1fr;
  align-items: end;
  gap: 40px;
  padding: 38px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background: rgba(18, 14, 9, 0.96);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45);
  transform-origin: center top;
}

.ritual-card::before {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 16%, rgba(244, 199, 88, 0.12), transparent 30%);
  content: "";
}

.ritual-card > span {
  position: relative;
  z-index: 2;
  align-self: start;
  color: var(--gold-hot);
  font-size: 58px;
  font-weight: 500;
  letter-spacing: -0.06em;
}

.ritual-card > div {
  position: relative;
  z-index: 2;
}

.ritual-card p {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.ritual-card h3 {
  max-width: 12ch;
  margin: 0;
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.ritual-card div > span {
  display: block;
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

.ritual-spin {
  background: linear-gradient(145deg, rgba(79, 45, 118, 0.32), rgba(18, 14, 9, 0.98) 58%);
}

.ritual-reveal {
  background: linear-gradient(145deg, rgba(149, 87, 7, 0.32), rgba(18, 14, 9, 0.98) 58%);
}

.archive {
  padding: 130px 0 190px;
}

.archive-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 50px;
  margin-bottom: 56px;
}

.archive-heading p {
  margin-bottom: 18px;
}

.archive-heading h2 {
  max-width: 12ch;
  font-size: clamp(46px, 5vw, 70px);
}

.archive-controls {
  display: flex;
  gap: 8px;
}

.archive-controls button {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease;
}

.archive-controls button:hover {
  border-color: var(--gold);
  color: var(--gold-hot);
}

.archive-viewport {
  overflow: hidden;
}

.archive-track {
  display: flex;
  gap: 12px;
  transition: transform 500ms cubic-bezier(.2,.75,.2,1);
}

.archive-item,
.archive-empty {
  display: grid;
  min-width: min(520px, 82vw);
  min-height: 260px;
  grid-template-columns: 78px 1fr;
  align-content: end;
  gap: 22px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(17, 14, 9, 0.82);
  transition: border-color 220ms ease, transform 220ms ease;
}

.archive-item:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
}

.archive-item > span,
.archive-empty > span {
  color: var(--gold);
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -0.06em;
}

.archive-item small {
  color: var(--gold);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.archive-item strong,
.archive-empty strong {
  display: block;
  margin-top: 10px;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.archive-item p,
.archive-empty p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.final-call {
  position: relative;
  display: flex;
  min-height: 680px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  text-align: center;
}

.final-call > p {
  position: relative;
  z-index: 2;
}

.final-call h2 {
  position: relative;
  z-index: 2;
  max-width: 15ch;
  font-size: clamp(50px, 6vw, 88px);
}

.final-call .primary-action {
  position: relative;
  z-index: 2;
  margin-top: 40px;
}

.final-halo {
  position: absolute;
  width: min(80vw, 900px);
  aspect-ratio: 1;
  border: 1px solid rgba(244, 199, 88, 0.2);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(179, 108, 14, 0.17), transparent 62%);
  box-shadow: inset 0 0 90px rgba(244, 199, 88, 0.05);
}

.final-halo::before,
.final-halo::after {
  position: absolute;
  inset: 12%;
  border: 1px dashed rgba(244, 199, 88, 0.15);
  border-radius: 50%;
  content: "";
}

.final-halo::after {
  inset: 28%;
  border-style: solid;
}

.oracle-footer {
  display: grid;
  min-height: 180px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
}

.oracle-footer > p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.oracle-footer > a:last-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
}

@keyframes rune-orbit {
  to { transform: rotate(360deg); }
}

@keyframes particle-burst {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(0deg) translateX(var(--particle-start, 80px)) scale(0.2); }
  18% { opacity: 1; }
  72% { opacity: 0.9; }
  100% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--particle-angle, 180deg)) translateX(var(--particle-distance, 280px)) scale(0.08); }
}

@keyframes revelation-wave {
  0% { opacity: 0; transform: scale(0.35); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.35); }
}

@keyframes card-glint {
  0% { opacity: 0; transform: translateX(-120%); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateX(120%); }
}

@media (max-width: 1120px) {
  .oracle-nav {
    grid-template-columns: 1fr auto;
  }

  .oracle-nav nav {
    display: none;
  }

  .oracle-hero {
    grid-template-columns: minmax(0, 0.8fr) minmax(470px, 1.2fr);
  }

  .hero-copy h1 {
    font-size: clamp(54px, 7vw, 78px);
  }

  .oracle-experience {
    min-height: 560px;
  }

  .ritual {
    grid-template-columns: minmax(280px, 0.7fr) minmax(460px, 1.3fr);
    gap: 54px;
  }

  .ritual-card {
    grid-template-columns: 110px 1fr;
  }
}

@media (max-width: 860px) {
  .oracle-nav,
  .oracle-hero,
  .mechanics,
  .ritual,
  .archive,
  .final-call,
  .oracle-footer {
    width: min(calc(100% - 32px), var(--content));
  }

  .oracle-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 140px 0 70px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero-copy h1 {
    max-width: 13ch;
    font-size: clamp(60px, 12vw, 96px);
  }

  .oracle-experience {
    height: 720px;
  }

  .die-surface {
    width: min(72vw, 520px);
    height: min(72vw, 520px);
  }

  .prophecy-card {
    right: 5%;
    left: 5%;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .mechanics-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 480px 280px 280px;
  }

  .bento-formula {
    grid-column: span 2;
    grid-row: span 1;
  }

  .bento-live {
    grid-column: span 2;
  }

  .ritual {
    display: block;
    min-height: 0;
  }

  .ritual-intro {
    position: static;
    margin-bottom: 70px;
  }

  .ritual-stack {
    gap: 22px;
    padding: 0;
  }

  .ritual-card {
    position: relative;
    top: auto;
  }

  .archive {
    padding-top: 150px;
  }
}

@media (max-width: 620px) {
  .oracle-nav {
    top: 10px;
    right: 10px;
    left: 10px;
    width: calc(100% - 20px);
    padding-left: 14px;
  }

  .nav-roll {
    min-height: 42px;
    padding: 0 13px;
  }

  .nav-roll svg,
  .oracle-brand small {
    display: none;
  }

  .oracle-hero {
    padding-top: 118px;
  }

  .oracle-experience {
    order: -1;
    height: 560px;
    min-height: 560px;
    margin: -28px 0 -16px;
  }

  .hero-copy h1 {
    max-width: 12ch;
    font-size: clamp(52px, 16vw, 76px);
  }

  .hero-lead {
    font-size: 17px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .oracle-stage {
    align-items: start;
    padding-top: 20px;
  }

  .runic-ring {
    width: 88vw;
  }

  .magic-seal {
    width: 104vw;
  }

  .die-surface {
    width: 94vw;
    height: 94vw;
  }

  .die-hint {
    bottom: 21%;
  }

  .prophecy-card {
    right: 0;
    bottom: 0;
    left: 0;
    min-height: 470px;
  }

  .prophecy-content {
    min-height: 470px;
    padding: 24px 22px 20px;
  }

  .prophecy-content h2 {
    font-size: 31px;
  }

  .prophecy-content > p {
    font-size: 14px;
  }

  .prophecy-target {
    margin-top: 14px;
  }

  .mechanics {
    padding: 120px 0 130px;
  }

  .section-heading h2,
  .ritual-intro h2,
  .archive-heading h2,
  .final-call h2 {
    font-size: 45px;
  }

  .mechanics-bento {
    display: flex;
    flex-direction: column;
  }

  .bento-card {
    min-height: 300px;
    border-right: 0;
  }

  .bento-formula {
    min-height: 480px;
    padding: 28px;
  }

  .bento-live {
    padding: 28px;
  }

  .bento-chance,
  .bento-choice {
    min-height: 230px;
  }

  .ritual {
    padding: 90px 0 120px;
  }

  .ritual-card {
    min-height: 440px;
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 28px;
  }

  .ritual-card > span {
    align-self: start;
  }

  .ritual-card h3 {
    font-size: 34px;
  }

  .archive {
    padding: 80px 0 120px;
  }

  .archive-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 28px;
  }

  .archive-item,
  .archive-empty {
    min-width: calc(100vw - 32px);
    grid-template-columns: 54px 1fr;
    padding: 22px;
  }

  .final-call {
    min-height: 560px;
    padding: 80px 18px;
  }

  .final-call h2 br {
    display: none;
  }

  .oracle-footer {
    display: flex;
    min-height: 260px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .magic-particle,
  .ambient-stars,
  .magic-seal {
    display: none !important;
  }

  .runic-ring {
    animation: none;
  }
}

:focus-visible {
  outline: 3px solid rgba(255, 220, 126, 0.55);
  outline-offset: 4px;
}
