/* One & Done — landing page. Independent of the app's /css/app.css. */

:root {
  --ink: #0d0a0f;
  --night: #141017;
  --panel: #1b1620;
  --panel-2: #231c28;
  --line: #3b3140;
  --line-gold: rgba(217, 180, 90, 0.28);
  --text: #efe6d3;
  --muted: #b5a891;
  --gold: #d9b45a;
  --gold-soft: #e8cf8f;
  --bronze: #a8803a;
  --ember: #c4583a;
  --ember-deep: #9c3f27;
  --parchment: #ebdcbc;
  --parchment-ink: #2b2016;
  --display: "Cinzel", Georgia, "Times New Roman", serif;
  --body: "Alegreya Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold-soft); text-underline-offset: 3px; }
a:hover { color: var(--parchment); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: 0.01em; }
p { margin: 0; }

/* A faint grain over every dark surface, so large areas don't look flat. */
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 50;
  background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 8px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.eyebrow {
  font-family: var(--display);
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.lede { color: var(--muted); font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 34em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.7em 1.4em;
  border-radius: 999px; border: 1px solid transparent;
  font-family: var(--body); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.01em;
  text-decoration: none; white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.btn-primary { background: var(--ember); color: #fff7ec; border-color: #d87a5c; box-shadow: 0 8px 24px -10px rgba(196, 88, 58, 0.8); }
.btn-primary:hover { background: #d0633f; color: #fff; transform: translateY(-1px); }
.btn-ghost { color: var(--parchment); border-color: var(--line-gold); background: rgba(217, 180, 90, 0.06); }
.btn-ghost:hover { border-color: var(--gold); color: #fff; }
.btn-small { min-height: 40px; padding: 0.45em 1.05em; font-size: 0.98rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(13, 10, 15, 0.94);
  border-bottom: 1px solid var(--line-gold);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.wordmark {
  font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: 0.04em;
  color: var(--gold); text-decoration: none; margin-right: auto; white-space: nowrap;
}
.wordmark span { color: var(--ember); }
.nav-inline { display: none; align-items: center; gap: 26px; }
.nav-inline a { color: var(--parchment); text-decoration: none; font-weight: 500; }
.nav-inline a:hover { color: var(--gold-soft); }
.nav-inline .signin { color: var(--muted); }
.menu { position: relative; }
.menu summary {
  list-style: none; cursor: pointer;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid var(--line-gold); color: var(--parchment);
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 22px; height: 22px; }
.menu[open] summary { background: var(--panel-2); }
.menu nav {
  position: absolute; right: 0; top: calc(100% + 10px);
  width: min(78vw, 280px);
  display: grid; padding: 8px;
  background: var(--panel); border: 1px solid var(--line-gold); border-radius: 12px;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.8);
}
.menu nav a { padding: 12px 14px; border-radius: 8px; color: var(--parchment); text-decoration: none; font-weight: 500; }
.menu nav a:hover { background: var(--panel-2); }
.nav-inline a[aria-current="page"], .menu nav a[aria-current="page"] { color: var(--gold); }
@media (min-width: 1080px) {
  .nav-inline { display: flex; }
  .menu { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 70% at 78% 45%, rgba(196, 88, 58, 0.22), transparent 70%),
    radial-gradient(50% 60% at 10% 10%, rgba(217, 180, 90, 0.08), transparent 70%);
}
.hero .wrap { position: relative; display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); font-weight: 700; margin: 14px 0 20px; }
.hero h1 em { font-style: normal; color: var(--gold); display: block; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.reassure {
  display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 20px; padding: 0; list-style: none;
  color: var(--muted); font-size: 0.98rem;
}
.reassure li::before { content: "✦"; color: var(--gold); margin-right: 8px; font-size: 0.8em; }
@media (min-width: 1000px) {
  .hero .wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

/* ---------- the board: a real map with real tokens on it ---------- */
.board-frame {
  position: relative;
  padding: 10px;
  border-radius: 18px;
  background: linear-gradient(145deg, #4a3a22, #1f1810 40%, #3a2c18);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(217, 180, 90, 0.35), inset 0 1px 0 rgba(255, 230, 170, 0.25);
}
.board { position: relative; overflow: hidden; border-radius: 10px; aspect-ratio: 3 / 2; background: #1a140f; }
.board > img.map { width: 100%; height: 100%; object-fit: cover; }
.board .grid {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.16;
  background-image:
    linear-gradient(to right, rgba(255, 245, 220, 0.9) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 245, 220, 0.9) 1px, transparent 1px);
  background-size: calc(100% / 24) calc(100% / 16);
}
.board .vignette { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 80px 10px rgba(0, 0, 0, 0.55); }
.token {
  position: absolute; width: 7.4%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; border: 3px solid var(--ring, var(--gold));
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.7), 0 0 0 2px rgba(0, 0, 0, 0.55);
  object-fit: cover; background: #222;
}
.token.foe { --ring: var(--ember); }
.ping {
  position: absolute; width: 7%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; border: 3px solid var(--gold); pointer-events: none;
  animation: ping 2.4s ease-out infinite;
}
@keyframes ping { 0% { opacity: 0.9; transform: translate(-50%, -50%) scale(0.4); } 80%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.8); } }
.board-caption { margin-top: 14px; color: var(--muted); font-size: 0.95rem; text-align: center; }
.board-caption strong { color: var(--parchment); font-weight: 500; }
@media (min-width: 1000px) {
  .hero .board-frame { transform: perspective(1800px) rotateY(-7deg) rotateX(3deg); }
}

/* ---------- sections ---------- */
section { position: relative; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); margin: 12px 0 16px; }
.divider { height: 1px; border: 0; margin: 0; background: linear-gradient(90deg, transparent, var(--line-gold), transparent); }

/* Problem and promise */
.promise { background: var(--night); }
.promise blockquote {
  margin: 0 0 clamp(40px, 6vw, 64px);
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.9rem, 4.6vw, 3.4rem); line-height: 1.2; max-width: 18em;
}
.promise blockquote span { color: var(--gold); }
.split { display: grid; gap: 22px; }
.split article {
  position: relative; padding: clamp(24px, 3vw, 34px);
  border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel), rgba(27, 22, 32, 0.4));
}
.split h3 { font-size: 1.35rem; color: var(--gold-soft); margin-bottom: 10px; }
.split ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--muted); }
.split li { padding-left: 1.4em; position: relative; }
.split li::before { content: "◆"; position: absolute; left: 0; color: var(--bronze); font-size: 0.7em; top: 0.45em; }
.promise .note { margin-top: 28px; color: var(--muted); max-width: 46em; }
@media (min-width: 800px) { .split { grid-template-columns: 1fr 1fr; } }

/* Role ring colors for tokens and portraits */
.tank { --ring: #5b8fd6; }
.dps { --ring: var(--ember); }
.heal { --ring: #6fbf73; }

/* Show the game: alternating figure + text rows */
.showcase { display: grid; gap: clamp(64px, 9vw, 112px); }
.feature { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
.feature h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 10px 0 14px; }
.feature p { color: var(--muted); }
.feature p + p { margin-top: 12px; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 7fr 5fr; }
  .feature.flip { grid-template-columns: 5fr 7fr; }
  .feature.flip > figure { order: 2; }
}
figure { margin: 0; }
.hero-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 2vw, 22px); padding: clamp(20px, 3vw, 36px); border-radius: 18px; border: 1px solid var(--line); background: radial-gradient(80% 80% at 50% 40%, var(--panel-2), var(--night)); }
.hero-gallery figure { text-align: center; }
.hero-gallery img { width: 100%; aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--ring, var(--gold)); box-shadow: 0 16px 30px -14px rgba(0, 0, 0, 0.95); }
.hero-gallery figcaption { margin-top: 8px; font-size: 0.92rem; line-height: 1.3; color: var(--parchment); }
.hero-gallery figcaption small { display: block; font-family: var(--display); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.scene-stack { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: auto auto; gap: 12px; }
.scene-stack img { border-radius: 12px; border: 1px solid var(--line-gold); box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.95); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.scene-stack .big { grid-column: 1 / -1; }
.scene-stack .small { grid-column: span 3; }
.cast { display: flex; margin-top: 10px; padding-left: 10px; }
.cast img { width: 58px; height: 58px; border-radius: 50%; border: 3px solid var(--ember); margin-left: -10px; box-shadow: 0 8px 18px -6px rgba(0, 0, 0, 0.9); }
.cast img.friend { border-color: var(--gold); }
.caption-line { margin-top: 12px; color: var(--muted); font-size: 0.92rem; }

/* How it works */
.how { background: var(--night); }
.steps { display: grid; gap: 22px; padding: 0; margin: 0; list-style: none; counter-reset: step; }
.steps li {
  position: relative; padding: clamp(26px, 3vw, 34px) clamp(22px, 3vw, 30px) clamp(26px, 3vw, 32px);
  border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line);
}
.steps .numeral { font-family: var(--display); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--gold); opacity: 0.85; }
.steps h3 { font-size: 1.45rem; margin: 14px 0 10px; }
.steps p { color: var(--muted); }
.steps li:nth-child(2) { background: linear-gradient(180deg, #2a1d1a, var(--panel)); border-color: rgba(196, 88, 58, 0.35); }
.steps li:nth-child(3) { background: linear-gradient(180deg, #2a2415, var(--panel)); border-color: var(--line-gold); }
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li:nth-child(2) { transform: translateY(28px); }
  .steps li:nth-child(3) { transform: translateY(56px); }
  .how .section { padding-bottom: clamp(120px, 12vw, 170px); }
}

/* Adventures */
.adventures { display: grid; gap: clamp(28px, 4vw, 44px); }
.adventure {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 20px; border: 1px solid var(--line-gold);
  min-height: clamp(420px, 48vw, 540px);
  display: grid; align-items: end;
}
.adventure > picture, .adventure > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.adventure::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(10, 8, 12, 0.97) 8%, rgba(10, 8, 12, 0.78) 45%, rgba(10, 8, 12, 0.15) 85%);
}
.adventure .content { padding: clamp(24px, 4vw, 44px); max-width: 640px; }
.adventure h3, .adventure .h3 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 8px 0 12px; }
.adventure p { color: #d8ccb4; }
.adventure .meta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin-top: 22px; }
.adventure .faces { display: flex; padding-left: 10px; }
.adventure .faces img { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--gold); margin-left: -10px; box-shadow: 0 6px 14px -6px #000; }
.adventure .faces img.foe { border-color: var(--ember); }
.adventure .scenes { display: flex; gap: 8px; }
.adventure .scenes img { width: 88px; height: 58px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line-gold); }
@media (min-width: 900px) {
  .adventure:nth-child(even) .content { margin-left: auto; text-align: right; }
  .adventure:nth-child(even) .meta { justify-content: flex-end; }
}

/* Cloud vs self-hosted */
.choice { display: grid; gap: 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--line-gold); }
.choice article { padding: clamp(28px, 4vw, 48px); background: var(--panel); display: flex; flex-direction: column; }
.choice article + article { border-top: 1px solid var(--line-gold); background: linear-gradient(180deg, var(--panel-2), var(--panel)); }
.choice .for { font-family: var(--display); letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.78rem; color: var(--gold); }
.choice h3 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); margin: 10px 0 12px; }
.choice p { color: var(--muted); }
.choice ul { margin: 22px 0 30px; padding: 0; list-style: none; display: grid; gap: 10px; }
.choice li { padding-left: 1.6em; position: relative; }
.choice li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); }
.choice .btn { margin-top: auto; align-self: flex-start; }
.tradeoff { margin-top: 26px; text-align: center; color: var(--muted); font-size: 1.05rem; }
.tradeoff strong { color: var(--parchment); font-weight: 500; }
@media (min-width: 860px) {
  .choice { grid-template-columns: 1fr 1fr; }
  .choice article + article { border-top: 0; border-left: 1px solid var(--line-gold); }
}

/* Pricing: a comparison table (Free / Pro / Self-Hosted) */
.pricing { background: var(--night); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.compare-wrap { overflow-x: auto; border-radius: 20px; border: 1px solid var(--line-gold); background: var(--panel); }
.compare { width: 100%; min-width: 340px; border-collapse: collapse; }
.compare th, .compare td { padding: 14px clamp(8px, 2vw, 20px); text-align: center; }
.compare tbody th[scope="row"] { text-align: left; font-weight: 500; color: var(--parchment); font-size: clamp(0.92rem, 1.6vw, 1.05rem); line-height: 1.35; }
.compare tbody tr + tr th, .compare tbody tr + tr td { border-top: 1px solid var(--line); }
.compare thead th { vertical-align: bottom; padding-top: clamp(22px, 3vw, 32px); padding-bottom: 22px; border-bottom: 1px solid var(--line-gold); }
.compare thead td { border-bottom: 1px solid var(--line-gold); width: 40%; }
.compare thead th { width: 20%; }
.compare .plan { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(1rem, 2.2vw, 1.4rem); color: var(--parchment); }
.compare .price { display: block; margin-top: 6px; font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 4vw, 2.6rem); line-height: 1.05; color: var(--gold); }
.compare .per { display: block; min-height: 2.6em; margin: 4px 0 14px; font-size: clamp(0.78rem, 1.4vw, 0.92rem); line-height: 1.3; color: var(--muted); }
.compare .btn { white-space: normal; text-align: center; padding-inline: 0.9em; }
.compare .featured { background: linear-gradient(180deg, rgba(217, 180, 90, 0.14), rgba(217, 180, 90, 0.03)); box-shadow: inset 0 3px 0 var(--gold); }
.compare tbody td:nth-child(3) { background: rgba(217, 180, 90, 0.04); }
.compare tr.group th {
  padding-top: 26px; padding-bottom: 8px; text-align: left;
  font-family: var(--display); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold);
}
.compare tbody tr.group + tr th, .compare tbody tr.group + tr td { border-top: 0; }
.compare td.yes::before, .compare td.no::before { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-weight: 700; }
.compare td.yes::before { content: "✓"; color: var(--ink); background: var(--gold); }
.compare td.no::before { content: "✕"; color: var(--muted); border: 1px solid var(--line); font-size: 0.85rem; }
.compare td > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pricing .tradeoff { font-size: 0.98rem; }
@media (max-width: 560px) {
  .compare thead td { width: 31%; }
  .compare thead th { width: 23%; }
  .compare .btn-small { width: 100%; min-height: 36px; font-size: 0.82rem; padding: 0.4em 0.35em; border-radius: 10px; }
  .compare td.yes::before, .compare td.no::before { width: 26px; height: 26px; }
}

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 20px 4px; font-family: var(--display); font-weight: 600; font-size: 1.12rem; color: var(--parchment);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--body); font-size: 1.6rem; line-height: 1; color: var(--gold); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 4px 22px; color: var(--muted); max-width: 44em; }

/* Final call to action */
.final { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: clamp(96px, 14vw, 180px) 0; }
.final > picture, .final > picture img { position: absolute; inset: -4%; width: 108%; height: 108%; object-fit: cover; z-index: -2; }
.final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 80% at 50% 50%, rgba(13, 10, 15, 0.72), rgba(13, 10, 15, 0.96)); }
.final h2 { font-size: clamp(2.2rem, 5.4vw, 4rem); max-width: 14em; margin: 14px auto 18px; }
.final .lede { margin: 0 auto; }
.final .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

/* AI disclosure, just above the footer on every public page */
.ai-disclosure { border-top: 1px solid var(--line-gold); background: var(--panel); padding: 20px 0; color: #d9cfbd; font-size: 1rem; }
.ai-disclosure p { max-width: 860px; }
.ai-disclosure strong { color: var(--parchment); }
.ai-disclosure a { color: var(--gold-soft); }

/* Footer */
.site-footer { border-top: 1px solid var(--line-gold); background: var(--ink); padding: 44px 0 56px; color: var(--muted); font-size: 0.98rem; }
.site-footer .wrap { display: grid; gap: 22px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.site-footer .footer-navs { display: grid; gap: 14px; }
.site-footer nav a { color: var(--parchment); }
.site-footer .fine { font-size: 0.88rem; }
@media (min-width: 860px) {
  .site-footer .wrap { grid-template-columns: 1fr auto; align-items: start; }
}

/* Motion: a gentle entrance for the hero board and a slow drift on the final map. */
@media (prefers-reduced-motion: no-preference) {
  .hero .board-frame { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both 0.1s; }
  .final > picture img { animation: drift 40s ease-in-out infinite alternate; }
}
@keyframes rise { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
@keyframes drift { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.06) translate(-1.5%, -1%); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ping { animation: none; opacity: 0.8; }
  .btn:hover { transform: none; }
}

/* Legal pages (privacy, terms): plain, readable long-form text */
.legal { padding: clamp(40px, 7vw, 80px) 0 clamp(64px, 9vw, 110px); }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(2.1rem, 5vw, 3rem); margin: 10px 0 8px; }
.legal .updated { color: var(--muted); font-size: 0.98rem; margin-bottom: 30px; }
.legal .summary { border: 1px solid var(--line-gold); background: var(--panel); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 36px; }
.legal .summary h2 { font-size: 1.15rem; margin: 0 0 10px; color: var(--gold-soft); }
.legal h2 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); margin: 40px 0 12px; color: var(--parchment); }
.legal h3 { font-family: var(--body); font-size: 1.1rem; font-weight: 700; margin: 24px 0 8px; color: var(--parchment); }
.legal p, .legal li { color: #d9cfbd; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 1.3em; margin: 10px 0; display: grid; gap: 6px; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 1rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal th { color: var(--parchment); font-weight: 700; }
.legal td { color: #d9cfbd; }
.legal .table-wrap { overflow-x: auto; }
.legal a { color: var(--gold-soft); }

.adventure .soon {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--line-gold); background: rgba(217, 180, 90, 0.12); color: var(--gold-soft);
}

/* Links out of homepage sections into the topic pages */
.more { margin-top: clamp(28px, 4vw, 44px); }
@media (min-width: 860px) { .how .more { margin-top: 84px; } }
.adventure h3 a, .adventure .h3 a { color: inherit; text-decoration: none; }
.adventure h3 a:hover, .adventure .h3 a:hover { color: var(--gold-soft); }

/* ---------- Topic pages (how it works, for DMs, self-hosting, adventures) ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; list-style: none; font-size: 0.95rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin: 0 10px; color: var(--bronze); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--parchment); }
.crumbs [aria-current] { color: var(--parchment); }

.page-hero { position: relative; overflow: hidden; padding: clamp(28px, 5vw, 56px) 0 clamp(48px, 7vw, 88px); }
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(55% 80% at 85% 30%, rgba(196, 88, 58, 0.18), transparent 70%), radial-gradient(50% 60% at 5% 10%, rgba(217, 180, 90, 0.07), transparent 70%);
}
.page-hero .wrap { position: relative; display: grid; gap: clamp(28px, 5vw, 56px); align-items: center; }
.page-hero .crumbs { margin-bottom: clamp(24px, 4vw, 40px); }
.page-hero h1 { font-size: clamp(2.3rem, 5.6vw, 4.2rem); font-weight: 700; margin: 12px 0 18px; }
.page-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
@media (min-width: 1000px) { .page-hero .wrap.has-figure { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }
.page-hero.cover { min-height: clamp(460px, 60vw, 620px); display: grid; align-items: end; isolation: isolate; }
.page-hero.cover > picture, .page-hero.cover > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero.cover::before { z-index: -1; background: linear-gradient(0deg, rgba(13, 10, 15, 1) 4%, rgba(13, 10, 15, 0.82) 45%, rgba(13, 10, 15, 0.35) 100%); }
.page-hero .soon { display: inline-block; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-gold); background: rgba(217, 180, 90, 0.12); color: var(--gold-soft); }

/* Long-form text blocks */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0 0 16px; }
.prose h3 { font-size: 1.3rem; margin: 30px 0 10px; color: var(--gold-soft); }
.prose p, .prose li { color: #d9cfbd; }
.prose p + p, .prose ul + p, .prose p + ul, .prose ol + p, .prose p + ol { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 12px 0; display: grid; gap: 8px; }
.prose li::marker { color: var(--bronze); }
.prose strong { color: var(--parchment); }
.prose code, .prose pre { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.92em; }
.prose code { background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.prose pre { margin: 16px 0; padding: 16px 18px; overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; line-height: 1.55; color: var(--parchment); }
.prose pre code { background: none; border: 0; padding: 0; }
.prose .callout { margin: 20px 0; padding: 16px 20px; border-left: 3px solid var(--gold); background: var(--panel); border-radius: 0 12px 12px 0; }
.band { background: var(--night); }
.page-section { padding: clamp(56px, 8vw, 104px) 0; }

/* Cards: a simple grid of titled boxes */
.cards { display: grid; gap: 20px; padding: 0; margin: 0; list-style: none; }
.cards > * { padding: clamp(22px, 3vw, 30px); border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel), rgba(27, 22, 32, 0.4)); }
.cards h3 { font-size: 1.3rem; color: var(--gold-soft); margin-bottom: 10px; }
.cards p { color: var(--muted); }
.cards p + p { margin-top: 10px; }
@media (min-width: 800px) { .cards.two { grid-template-columns: 1fr 1fr; } .cards.three { grid-template-columns: repeat(3, 1fr); } }

/* Numbered steps as a vertical list (topic pages) */
.timeline { margin: 0; padding: 0; list-style: none; display: grid; gap: 18px; counter-reset: step; max-width: 820px; }
.timeline > li { counter-increment: step; position: relative; padding: 22px 24px 22px 76px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.timeline > li::before {
  content: counter(step); position: absolute; left: 22px; top: 20px;
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  font-family: var(--display); font-weight: 700; color: var(--ink); background: var(--gold);
}
.timeline h3 { font-size: 1.25rem; margin-bottom: 8px; }
.timeline p { color: var(--muted); }
.timeline p + p { margin-top: 8px; }

/* Map galleries and the adventure poster */
.gallery { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); padding: 0; margin: 0; list-style: none; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; border: 1px solid var(--line-gold); }
.gallery figcaption { margin-top: 8px; font-size: 0.95rem; color: var(--muted); }
.gallery figcaption strong { display: block; color: var(--parchment); font-weight: 500; }
.poster { max-width: 520px; }
.poster a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-gold); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9); }
.poster figcaption { margin-top: 10px; color: var(--muted); font-size: 0.95rem; }
.split-doc { display: grid; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (min-width: 960px) { .split-doc { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.people, .prose .people { display: grid; gap: 14px; padding: 0; margin: 16px 0 0; list-style: none; }
.people li { display: flex; gap: 14px; align-items: center; }
.people img { width: 60px; height: 60px; border-radius: 50%; border: 3px solid var(--gold); flex: none; }
.people img.foe { border-color: var(--ember); }
.people strong { display: block; color: var(--parchment); }
.people span { color: var(--muted); font-size: 0.98rem; }
.path, .prose .path { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0; margin: 16px 0; list-style: none; }
.path li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-gold); background: var(--panel); color: var(--parchment); font-size: 0.98rem; }
.path li.or { border: 0; background: none; color: var(--muted); padding: 0; }
.path li.arrow { border: 0; background: none; color: var(--bronze); padding: 0; }
.next-step { text-align: center; }
.next-step h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 10px auto 14px; max-width: 18em; }
.next-step .lede { margin: 0 auto; }
.next-step .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
