:root {
  --bg: #070914;
  --bg-soft: #0d1020;
  --panel: rgba(17, 21, 40, 0.78);
  --panel-solid: #11162a;
  --text: #f6f7fb;
  --muted: #a7acc2;
  --line: rgba(255, 255, 255, 0.1);
  --violet: #9567ff;
  --purple: #7338df;
  --cyan: #55d8ef;
  --yellow: #edcf3a;
  --coral: #f39b83;
  --green: #6ad7aa;
  --radius: 28px;
  --container: 1180px;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(105, 61, 194, 0.14), transparent 30rem),
    radial-gradient(circle at 88% 34%, rgba(58, 177, 207, 0.09), transparent 34rem),
    var(--bg);
  font-family: Inter, Manrope, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  color: #070914;
  background: #fff;
  border-radius: 8px;
  transform: translateY(-160%);
}

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

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 220ms ease, border-color 220ms ease, backdrop-filter 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(7, 9, 20, 0.8);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 9px;
  transform: rotate(45deg);
  box-shadow: inset 0 0 18px rgba(149,103,255,.25), 0 0 24px rgba(80,216,239,.12);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span {
  content: "";
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--text);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255,255,255,.85);
}

.brand-mark::before { transform: translate(-7px, -7px); }
.brand-mark::after { transform: translate(7px, 7px); }
.brand-mark span { transform: translate(0, 0); }

.brand-text {
  font-size: 14px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: .12em;
}

.brand-text small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: .25em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav a {
  color: #c8cbe0;
  font-size: 14px;
  text-decoration: none;
  transition: color 160ms ease;
}

.nav a:hover { color: #fff; }
.nav .nav-cta {
  padding: 10px 16px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 760px;
  padding: 136px 0 80px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  pointer-events: none;
  background: linear-gradient(transparent, var(--bg));
}

.hero-glow {
  position: absolute;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .18;
  pointer-events: none;
}

.hero-glow-one { top: 0; left: -220px; background: var(--violet); }
.hero-glow-two { right: -250px; bottom: 10%; background: var(--cyan); }

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(480px, 1.08fr);
  align-items: center;
  gap: 56px;
}

.hero .container {
  width: min(calc(100% - 40px), 1500px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: #cab9ff;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.eyebrow > span {
  display: inline-block;
  width: 24px;
  height: 2px;
  background: currentColor;
}

.eyebrow-yellow { color: var(--yellow); }
.eyebrow-cyan { color: var(--cyan); }
.eyebrow-coral { color: var(--coral); }

h1, h2, h3, p { text-wrap: balance; }

h1, h2 {
  margin: 0;
  font-weight: 650;
  letter-spacing: -.055em;
  line-height: .96;
}

h1 { font-size: clamp(64px, 7.2vw, 108px); }
h2 { font-size: clamp(46px, 5.4vw, 78px); }
h1 em, h2 em { color: #b38aff; font-family: Georgia, "Times New Roman", serif; font-weight: 400; }

.hero-lead {
  max-width: 610px;
  margin: 28px 0 0;
  color: #bdc1d5;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 14px 22px;
  border: 0;
  border-radius: 14px;
  font-weight: 720;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover { transform: translateY(-2px); }
.button:focus-visible, .text-link:focus-visible, .nav a:focus-visible, summary:focus-visible, button:focus-visible {
  outline: 3px solid rgba(85,216,239,.65);
  outline-offset: 4px;
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, #7440dc, #9768ff 60%, #7f8cf5);
  box-shadow: 0 16px 34px rgba(117, 64, 220, .26), inset 0 1px rgba(255,255,255,.2);
}

.button-primary:hover { box-shadow: 0 20px 42px rgba(117, 64, 220, .4), inset 0 1px rgba(255,255,255,.2); }

.text-link {
  color: #d4d7e5;
  font-size: 14px;
  text-underline-offset: 5px;
  text-decoration-color: rgba(255,255,255,.25);
}

.hero-facts {
  display: flex;
  gap: 32px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.hero-facts li { display: flex; flex-direction: column; gap: 2px; }
.hero-facts strong { font-size: 23px; font-weight: 700; }
.hero-facts span { color: #7f849b; font-size: 12px; }

.hero-art {
  position: relative;
  z-index: 1;
  min-width: 0;
  margin: 0;
}

.image-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 40px;
  box-shadow: var(--shadow);
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.82) contrast(1.04) brightness(.82);
}

.image-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7,9,20,.52), transparent 35%),
    linear-gradient(0deg, rgba(7,9,20,.65), transparent 38%),
    radial-gradient(circle at 55% 44%, transparent 20%, rgba(7,9,20,.12) 72%);
  pointer-events: none;
}

.path-label {
  position: absolute;
  padding: 7px 10px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(7,9,20,.58);
  backdrop-filter: blur(10px);
}

.path-warrior { left: 16%; bottom: 25%; color: var(--coral); }
.path-stalker { left: 48%; bottom: 18%; color: var(--cyan); }
.path-mage { right: 14%; bottom: 28%; color: #ceb4ff; }

.hero-art figcaption {
  display: flex;
  gap: 34px;
  margin: 16px 0 0 28px;
  color: #696f88;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hero-art figcaption span::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 8px;
  border-radius: 50%;
  background: currentColor;
}

.section { position: relative; padding: 112px 0; }
.how { padding-top: 78px; }

.section-heading {
  display: grid;
  grid-template-columns: 1.15fr .6fr;
  align-items: end;
  gap: 60px;
  margin-bottom: 52px;
}

.section-heading > p {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 17px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-card {
  position: relative;
  min-height: 330px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
}

.step-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -70px;
  bottom: -90px;
  border-radius: 50%;
  background: var(--violet);
  filter: blur(70px);
  opacity: .11;
}

.step-card:nth-child(2)::after { background: var(--cyan); }
.step-card:nth-child(3)::after { background: var(--yellow); }

.step-number {
  display: block;
  color: #757b96;
  font-size: 11px;
  letter-spacing: .18em;
}

.step-icon {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  margin: 40px 0 26px;
  color: #d6c7ff;
  font-size: 26px;
  line-height: .55;
  border: 1px solid rgba(149,103,255,.32);
  border-radius: 24px;
  background: rgba(149,103,255,.07);
  box-shadow: inset 0 0 30px rgba(149,103,255,.08);
}

.step-card:nth-child(2) .step-icon { color: var(--cyan); border-color: rgba(85,216,239,.28); background: rgba(85,216,239,.06); }
.step-card:nth-child(3) .step-icon { color: var(--yellow); border-color: rgba(237,207,58,.26); background: rgba(237,207,58,.05); }
.step-card h3 { margin: 0; font-size: 25px; }
.step-card p { margin: 10px 0 0; max-width: 290px; color: var(--muted); font-size: 14px; }

.game-loop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
  padding: 17px 20px;
  overflow-x: auto;
  color: #bec2d4;
  font-size: 12px;
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.025);
}

.game-loop i { color: #535970; font-style: normal; }

.test-section {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background:
    radial-gradient(circle at 70% 45%, rgba(112, 66, 207, .16), transparent 32rem),
    linear-gradient(180deg, rgba(255,255,255,.018), transparent);
}

.test-grid {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  align-items: center;
  gap: 70px;
}

.test-copy > p:not(.eyebrow) { margin: 26px 0 0; max-width: 460px; color: var(--muted); font-size: 17px; }

.quality-legend { display: grid; gap: 12px; margin-top: 32px; }
.quality-legend span { color: #9298af; font-size: 13px; }
.quality-legend b { color: #e7e9f2; font-weight: 650; }
.dot { display: inline-block; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%; }
.dot-warrior { background: var(--yellow); box-shadow: 0 0 12px var(--yellow); }
.dot-stalker { background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.dot-mage { background: var(--violet); box-shadow: 0 0 12px var(--violet); }

.oracle {
  position: relative;
  min-height: 530px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 32px;
  background: rgba(9, 12, 26, .72);
  box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.05);
  backdrop-filter: blur(20px);
}

.oracle::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(149,103,255,.3), transparent 28%, transparent 68%, rgba(85,216,239,.2));
  filter: blur(1px);
}

.oracle-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 3px 5px 19px;
  color: #737991;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.oracle-status { color: #b7a4ef; }

.dice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.die-card {
  min-width: 0;
  padding: 16px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.027);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.die-card.is-winner { transform: translateY(-5px); border-color: currentColor; background: rgba(255,255,255,.065); }
.die-warrior { color: var(--yellow); }
.die-stalker { color: var(--cyan); }
.die-mage { color: #b687ff; }

.die-label {
  display: flex;
  justify-content: space-between;
  color: currentColor;
  font-size: 9px;
  letter-spacing: .09em;
}
.die-label span { color: #5e647c; }

.die {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  margin: 20px auto 16px;
  color: var(--text);
  font-size: 43px;
  font-weight: 700;
  line-height: 1;
  border: 1px solid color-mix(in srgb, currentColor 36%, transparent);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.02));
  box-shadow: inset 0 1px rgba(255,255,255,.08), 0 16px 34px rgba(0,0,0,.2);
}

.die.is-rolling { animation: wobble 240ms linear infinite; }
.die-card strong { color: #e8e9f1; font-size: 14px; }

.button-roll {
  width: 100%;
  margin-top: 14px;
  color: #11141d;
  background: linear-gradient(135deg, #eef2ff, #b8c5f5);
}

.button-roll:disabled { opacity: .6; cursor: wait; transform: none; }
.roll-icon { color: var(--purple); }

.result {
  margin-top: 14px;
  padding: 21px;
  border: 1px solid rgba(149,103,255,.25);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(149,103,255,.12), rgba(85,216,239,.04));
}

.result[hidden] { display: none; }
.result-kicker { color: #8d93aa; font-size: 9px; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
.result-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 7px; }
.result h3 { margin: 0; font-size: 32px; }
.result p { margin: 5px 0 0; color: #b9bdd0; font-size: 13px; }
.result-symbol { color: var(--violet); font-size: 42px; text-shadow: 0 0 24px currentColor; }
.result-note { padding-top: 13px; border-top: 1px solid var(--line); }
.result-actions { display: flex; align-items: center; gap: 18px; margin-top: 18px; }
.result-actions .button { min-height: 48px; padding: 12px 17px; font-size: 13px; }

.text-button {
  padding: 7px 0;
  color: #aeb2c6;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.2);
  background: transparent;
  font-size: 12px;
  cursor: pointer;
}

@keyframes wobble {
  0% { transform: rotate(-2deg) scale(.97); }
  50% { transform: rotate(2deg) scale(1.03); }
  100% { transform: rotate(-2deg) scale(.97); }
}

.next-step-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid rgba(85,216,239,.16);
  border-radius: 24px;
  background: linear-gradient(120deg, rgba(85,216,239,.06), rgba(149,103,255,.055));
}

.next-step-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  flex: 1;
  margin: 0;
  padding: 0;
  list-style: none;
}

.next-step-flow li {
  position: relative;
  display: flex;
  gap: 14px;
  min-width: 0;
  padding: 10px 24px 10px 0;
}

.next-step-flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 18px;
  width: 1px;
  height: calc(100% - 20px);
  background: var(--line);
}

.next-step-flow span { color: var(--cyan); font-size: 10px; letter-spacing: .12em; }
.next-step-flow strong, .next-step-flow small { display: block; }
.next-step-flow strong { font-size: 14px; }
.next-step-flow small { margin-top: 5px; color: #7f859d; font-size: 11px; }
.next-step-flow .is-accent strong { color: #e7dcff; }
.next-step-flow .is-accent small { color: #bba8ec; }

.world-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 16px; }
.books-panel, .world-panel { border: 1px solid var(--line); border-radius: 30px; background: rgba(255,255,255,.025); }
.books-panel { padding: 30px; overflow: hidden; }
.world-panel { padding: 30px; }

.panel-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.panel-heading h3, .world-panel h3 { margin: 0; font-size: clamp(34px, 4vw, 54px); line-height: 1; letter-spacing: -.045em; }
.panel-heading > p { max-width: 250px; margin: 0 0 4px; color: var(--muted); font-size: 13px; }

.book-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 30px;
}

.book-stack figure { margin: 0; }
.book-stack img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  box-shadow: 0 20px 38px rgba(0,0,0,.32);
  transition: transform 240ms ease, filter 240ms ease;
  filter: saturate(.88);
}
.book-stack figure:nth-child(2) { transform: translateY(18px); }
.book-stack figure:hover img { transform: translateY(-5px) rotate(-1deg); filter: saturate(1.05); }
.book-stack figcaption { margin-top: 9px; color: #8e94aa; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }

.asset-list { margin: 28px 0 0; padding: 0; list-style: none; }
.asset-list li { display: flex; gap: 15px; padding: 14px 0; border-top: 1px solid var(--line); }
.asset-list li > span { color: #686e85; font-size: 10px; }
.asset-list strong, .asset-list small { display: block; }
.asset-list strong { font-size: 14px; }
.asset-list small { margin-top: 3px; color: #7f859c; font-size: 11px; }

.product-visual {
  position: relative;
  margin: 24px 0 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  background: #080a13;
}

.product-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 8.5;
  object-fit: cover;
  object-position: 65% center;
  filter: saturate(.85) contrast(1.05);
}

.product-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7,9,20,.45), transparent 58%), linear-gradient(0deg, rgba(7,9,20,.45), transparent 55%);
  pointer-events: none;
}

.product-visual figcaption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 1;
  color: #d8cff7;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.final-section {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 22% 58%, rgba(149,103,255,.14), transparent 28rem),
    linear-gradient(180deg, rgba(255,255,255,.018), transparent);
}

.final-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 90px; align-items: center; }
.final-copy > p:not(.eyebrow) { max-width: 620px; margin: 26px 0 30px; color: var(--muted); font-size: 17px; }

.faq {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255,255,255,.025);
}
.faq h3 { margin: 0 0 12px; font-size: 20px; }
.faq details { border-top: 1px solid var(--line); }
.faq summary { position: relative; padding: 18px 30px 18px 0; font-size: 14px; font-weight: 650; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; color: var(--violet); font-size: 20px; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: -5px 0 18px; color: var(--muted); font-size: 13px; }

.site-footer { padding: 34px 0; border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 1fr 1.5fr 1fr; align-items: center; gap: 26px; }
.footer-inner > p { margin: 0; color: #6f758b; font-size: 11px; text-align: center; }
.footer-links { display: flex; justify-content: end; gap: 18px; align-items: center; color: #777d94; font-size: 11px; }
.footer-links button { padding: 0; color: inherit; border: 0; border-bottom: 1px solid #454a60; background: none; cursor: pointer; }

.privacy-dialog {
  width: min(calc(100% - 32px), 560px);
  padding: 34px;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 26px;
  background: #101426;
  box-shadow: var(--shadow);
}
.privacy-dialog::backdrop { background: rgba(3,4,10,.72); backdrop-filter: blur(8px); }
.privacy-dialog h2 { margin-bottom: 22px; font-size: 38px; }
.privacy-dialog > p:not(.eyebrow) { color: var(--muted); font-size: 14px; }
.dialog-close { position: absolute; top: 14px; right: 17px; width: 36px; height: 36px; color: #fff; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.04); cursor: pointer; }

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  display: grid;
  gap: 3px;
  width: min(calc(100% - 48px), 390px);
  padding: 16px 18px;
  border: 1px solid rgba(149,103,255,.35);
  border-radius: 16px;
  background: rgba(16,20,38,.96);
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
  backdrop-filter: blur(16px);
}
.toast[hidden] { display: none; }
.toast strong { font-size: 13px; }
.toast span { color: var(--muted); font-size: 12px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 650ms ease, transform 650ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1050px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 730px; }
  .hero-art { min-width: 0; margin: 0; }
  .image-frame { aspect-ratio: 16 / 9; border-radius: 34px; }
  .hero-art figcaption { margin-left: 0; }
  .test-grid { grid-template-columns: 1fr; gap: 46px; }
  .test-copy { max-width: 720px; }
  .world-grid { grid-template-columns: 1fr; }
  .final-grid { gap: 50px; }
}

@media (max-width: 780px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .header-inner { min-height: 66px; }
  .nav a:not(.nav-cta) { display: none; }
  .nav .nav-cta { padding: 8px 12px; font-size: 12px; }
  .hero { min-height: auto; padding: 110px 0 54px; }
  .hero-grid { gap: 42px; }
  h1 { font-size: clamp(54px, 17vw, 76px); }
  h2 { font-size: clamp(42px, 13vw, 62px); }
  .hero-lead { font-size: 17px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .hero-facts { gap: 22px; }
  .hero-facts strong { font-size: 20px; }
  .hero .container { width: min(calc(100% - 28px), 1500px); }
  .image-frame { aspect-ratio: 16 / 9; border-radius: 24px; }
  .image-frame img { object-position: center; }
  .path-label { font-size: 8px; }
  .path-warrior { left: 7%; bottom: 20%; }
  .path-stalker { left: 42%; bottom: 14%; }
  .path-mage { right: 6%; bottom: 22%; }
  .section { padding: 82px 0; }
  .section-heading { grid-template-columns: 1fr; gap: 24px; margin-bottom: 38px; }
  .steps { grid-template-columns: 1fr; }
  .step-card { min-height: 250px; }
  .step-icon { margin: 26px 0 20px; }
  .game-loop { justify-content: flex-start; }
  .oracle { min-height: auto; padding: 14px; border-radius: 24px; }
  .dice-grid { gap: 6px; }
  .die-card { padding: 11px 7px; border-radius: 17px; }
  .die { width: 64px; height: 64px; margin: 15px auto 12px; border-radius: 18px; font-size: 34px; }
  .die-label { font-size: 7px; }
  .die-card strong { font-size: 11px; }
  .result-actions { align-items: flex-start; flex-direction: column; }
  .next-step-card { align-items: stretch; flex-direction: column; padding: 18px; }
  .next-step-flow { grid-template-columns: 1fr; }
  .next-step-flow li { padding: 13px 0; }
  .next-step-flow li:not(:last-child)::after { top: auto; right: 0; bottom: 0; width: 100%; height: 1px; }
  .next-step-card .button { width: 100%; }
  .panel-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .books-panel, .world-panel { padding: 20px; border-radius: 24px; }
  .book-stack { gap: 9px; }
  .book-stack img { border-radius: 12px; }
  .final-grid { grid-template-columns: 1fr; }
  .faq { padding: 20px; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { justify-self: center; }
  .footer-links { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@supports not (color: color-mix(in srgb, white 50%, black)) {
  .die { border-color: rgba(255,255,255,.18); }
}
