:root {
  --bg: #15121a;
  --bg-2: #1d1825;
  --panel: #221c2c;
  --panel-2: #2a2335;
  --ink: #ece6f0;
  --muted: #9d92ad;
  --accent: #c97b5a;
  --accent-2: #7c5cff;
  --good: #5fb37e;
  --warn: #d9a441;
  --bad: #d76c6c;
  --border: #342b42;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: radial-gradient(1200px 600px at 70% -10%, #2a2036, var(--bg));
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  min-height: 100vh;
}

.hidden { display: none !important; }

/* ---------- onboarding ---------- */
.screen {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}
.brand { text-align: center; margin-bottom: 32px; }
.brand h1 {
  font-size: 52px;
  margin: 0;
  letter-spacing: -1px;
  font-weight: 800;
}
.brand h1 span { color: var(--accent); }
.tagline { color: var(--muted); font-size: 17px; margin-top: 6px; }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.card h2 { margin: 0 0 6px; font-size: 20px; display: flex; align-items: center; gap: 10px; }
.step-num {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: #1a1014; font-size: 14px; font-weight: 700;
}
.hint { color: var(--muted); margin: 0 0 14px; font-size: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip {
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.15s ease;
}
.chip:hover { border-color: var(--accent); transform: translateY(-1px); }
.chip.selected { background: var(--accent); color: #1a1014; border-color: var(--accent); }

.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row input[type="text"] {
  flex: 1; min-width: 220px;
}
input[type="text"], textarea {
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--ink);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
}
input[type="text"]:focus, textarea:focus { border-color: var(--accent-2); }
.name-field { max-width: 180px; flex: 0 1 180px; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  padding: 12px 18px;
  transition: all 0.15s ease;
}
button:disabled { opacity: 0.5; cursor: not-allowed; }
.primary { background: var(--accent); color: #1a1014; font-weight: 600; }
.primary:hover:not(:disabled) { filter: brightness(1.08); }
.ghost {
  background: transparent; border: 1px solid var(--border); color: var(--ink);
  width: 100%;
}
.ghost:hover { border-color: var(--accent); }
.link-btn { background: none; color: var(--muted); padding: 6px 0; font-size: 13px; }
.link-btn:hover { color: var(--ink); }

.status { color: var(--muted); font-size: 13px; margin-top: 10px; min-height: 18px; }
.status.error { color: var(--bad); }

.existing-worlds, .story-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.world-row, .story-row {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 14px; cursor: pointer;
}
.world-row:hover, .story-row:hover { border-color: var(--accent); }
.world-row .meta, .story-row .meta { color: var(--muted); font-size: 13px; }
.world-summary {
  background: var(--bg-2); border-radius: 10px; padding: 14px; margin-bottom: 14px;
}
.world-summary .wtitle { font-weight: 700; font-size: 17px; }
.world-summary .wmeta { color: var(--muted); font-size: 13px; margin: 4px 0 8px; }
.world-summary .wbible { color: var(--ink); font-size: 14px; max-height: 120px; overflow: auto; }

/* ---------- game layout ---------- */
.game {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 300px;
  gap: 16px;
  max-width: 1500px;
  margin: 0 auto;
  padding: 16px;
  height: 100vh;
}
.rail { display: flex; flex-direction: column; gap: 16px; overflow-y: auto; padding-bottom: 20px; }
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.panel h3 {
  margin: 0 0 12px; font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted); font-weight: 700;
}

/* center / feed */
.center { display: flex; flex-direction: column; min-height: 0; }
.story-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 4px 6px 12px;
}
.story-title { font-size: 20px; font-weight: 700; }
.scene-line { color: var(--muted); font-size: 13px; margin-top: 2px; }
.chapter-badge {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 12px; font-size: 12px; color: var(--muted);
  white-space: nowrap;
}
.feed {
  flex: 1; overflow-y: auto; padding: 10px 6px;
  display: flex; flex-direction: column; gap: 16px;
}
.msg { max-width: 100%; }
.msg.player {
  align-self: flex-end;
  background: var(--accent-2); color: white;
  padding: 10px 14px; border-radius: 14px 14px 4px 14px;
  max-width: 80%; font-size: 15px;
}
.msg.gm .narration {
  background: var(--panel); border: 1px solid var(--border);
  padding: 16px 18px; border-radius: 4px 14px 14px 14px;
  font-size: 16px; white-space: pre-wrap;
}
.msg.gm .ask { color: var(--accent); font-weight: 600; margin-top: 10px; font-size: 15px; }

.dice-card {
  background: linear-gradient(135deg, var(--panel-2), var(--panel));
  border: 1px solid var(--accent); border-radius: 12px;
  padding: 12px 14px; font-size: 13px; align-self: center; max-width: 90%;
}
.dice-card .dice-head { font-weight: 700; margin-bottom: 4px; }
.dice-card .dice-math { color: var(--muted); font-family: ui-monospace, monospace; }
.dice-card .outcome { font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.outcome.crit-success, .outcome.success { color: var(--good); }
.outcome.partial { color: var(--warn); }
.outcome.failure, .outcome.crit-failure { color: var(--bad); }

.chapter-card {
  background: var(--bg-2); border: 1px solid var(--accent);
  border-radius: 14px; overflow: hidden; align-self: stretch;
}
.chapter-card img { width: 100%; display: block; }
.chapter-card .cc-body { padding: 14px 16px; }
.chapter-card .cc-title { font-weight: 700; font-size: 17px; color: var(--accent); }
.chapter-card .cc-recap { font-size: 14px; margin-top: 6px; }
.chapter-card .cc-turn { color: var(--muted); font-size: 13px; margin-top: 8px; font-style: italic; }

/* composer */
.composer { padding-top: 10px; }
.suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.suggestion {
  background: var(--panel); border: 1px solid var(--border); color: var(--ink);
  border-radius: 999px; padding: 7px 13px; font-size: 13px; cursor: pointer;
}
.suggestion:hover { border-color: var(--accent); color: var(--accent); }
.composer-row { display: flex; gap: 10px; align-items: flex-end; }
.composer-row textarea { flex: 1; resize: none; max-height: 160px; }

/* character sheet */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat {
  display: flex; justify-content: space-between;
  background: var(--bg-2); border-radius: 8px; padding: 6px 10px; font-size: 13px;
}
.stat .v { font-weight: 700; }
.char-name { font-weight: 700; font-size: 16px; }
.char-role { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.canon { margin-top: 12px; }
.canon-h {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); margin-bottom: 6px;
}
.canon-fact {
  font-size: 12px; background: var(--bg-2); border-left: 2px solid var(--accent);
  padding: 5px 8px; border-radius: 4px; margin-bottom: 4px; color: var(--ink);
}

/* mental status bars */
.mental-block { margin-bottom: 14px; }
.mental-block .who { display: flex; justify-content: space-between; align-items: baseline; }
.mental-block .who .name { font-weight: 600; font-size: 14px; }
.mental-block .who .state {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--accent); background: var(--bg-2); padding: 2px 8px; border-radius: 999px;
}
.bar-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12px; }
.bar-row .label { width: 64px; color: var(--muted); }
.bar { flex: 1; height: 6px; background: var(--bg-2); border-radius: 999px; overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 999px; }
.bar.stress > span { background: var(--bad); }
.bar.morale > span { background: var(--good); }
.bar.trust > span { background: var(--accent-2); }
.bar.composure > span { background: var(--warn); }
.bar-row .num { width: 24px; text-align: right; color: var(--muted); }

/* goals / inventory / relationships */
.goal, .inv-item, .rel-item {
  background: var(--bg-2); border-radius: 8px; padding: 8px 10px;
  font-size: 13px; margin-bottom: 6px;
}
.goal.completed { opacity: 0.5; text-decoration: line-through; }
.goal.failed, .goal.abandoned { opacity: 0.45; }
.rel-item { display: flex; justify-content: space-between; align-items: center; }
.rel-bar { width: 70px; height: 6px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.rel-bar > span { display: block; height: 100%; }
.empty { color: var(--muted); font-size: 13px; font-style: italic; }

/* gallery */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gallery .thumb { border-radius: 8px; overflow: hidden; border: 1px solid var(--border); cursor: pointer; }
.gallery .thumb img { width: 100%; display: block; aspect-ratio: 1; object-fit: cover; }
.gallery .thumb .cap { font-size: 11px; padding: 4px 6px; color: var(--muted); }
.toggle { cursor: pointer; display: flex; justify-content: space-between; }
.actions { display: flex; flex-direction: column; gap: 8px; }

/* loading dots */
.typing { display: inline-flex; gap: 4px; padding: 16px 18px; }
.typing span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--muted);
  animation: blink 1.2s infinite both;
}
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.2; } 40% { opacity: 1; } }

/* ---------- v0.3 §5A: carried items ---------- */
.item-glyph { opacity: 0.85; margin-right: 2px; }
.item-mark {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 1px 6px; border-radius: 999px; margin-left: 6px; vertical-align: middle;
}
.item-mark.eq { background: var(--bg-2); color: var(--accent-2); }
.item-mark.imp { background: var(--bg-2); color: var(--warn); cursor: help; }
.item-mark.wpn { color: var(--bad); margin-left: 4px; cursor: help; }

/* ---------- v0.3: structured profile ---------- */
.profile { margin-top: 12px; display: flex; flex-direction: column; gap: 5px; }
.prof-row { display: flex; gap: 8px; font-size: 12.5px; }
.prof-k {
  flex: 0 0 76px; color: var(--muted); text-transform: uppercase;
  font-size: 10px; letter-spacing: 0.06em; padding-top: 2px;
}
.prof-v { flex: 1; color: var(--ink); }
.rel-item.expandable { cursor: pointer; }
.rel-item .caret { color: var(--muted); font-size: 11px; margin-left: 2px; }
.rel-profile { padding: 6px 0 10px 42px; }
.rel-profile .profile { margin-top: 0; }

/* ---------- v0.3: image generating / unavailable states ---------- */
.img-generating { animation: imgpulse 1.4s ease-in-out infinite; }
@keyframes imgpulse { 0%, 100% { opacity: 0.78; } 50% { opacity: 1; } }
.img-unavailable { filter: grayscale(1); opacity: 0.55; cursor: default !important; }

/* ---------- v0.2 ---------- */

/* portraits */
.portrait {
  width: 56px; height: 56px; border-radius: 10px; object-fit: cover;
  border: 1px solid var(--border); cursor: pointer; background: var(--bg-2);
  flex: 0 0 auto;
}
.portrait.sm { width: 34px; height: 34px; border-radius: 8px; }
.char-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.char-head .meta { min-width: 0; }
.mental-block .who { gap: 8px; }
.mental-block .who .who-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rel-item .rel-left { display: flex; align-items: center; gap: 8px; min-width: 0; }

/* world panel */
.world-panel { font-size: 13px; }
.world-panel .wp-overview { color: var(--ink); margin-bottom: 10px; }
.world-panel h4 {
  margin: 10px 0 4px; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--muted);
}
.world-panel .wp-item { margin-bottom: 5px; }
.world-panel .wp-item b { color: var(--ink); }
.world-panel .wp-item span { color: var(--muted); }

/* world intro card in feed */
.world-card {
  background: var(--bg-2); border: 1px solid var(--accent-2);
  border-radius: 14px; padding: 16px 18px; align-self: stretch;
}
.world-card .wc-title { font-weight: 700; font-size: 18px; }
.world-card .wc-sub { color: var(--muted); font-size: 13px; margin: 2px 0 8px; }

/* inline scene/action images in feed */
.scene-img-wrap { align-self: stretch; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); position: relative; cursor: pointer; }
.scene-img-wrap img { width: 100%; display: block; }
.scene-img-wrap .badge {
  position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,0.55);
  color: #fff; border-radius: 999px; padding: 3px 9px; font-size: 12px;
}

/* encounter strip */
.encounter-strip {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: linear-gradient(135deg, #3a1f1f, var(--panel));
  border: 1px solid var(--bad); border-radius: 10px;
  padding: 8px 12px; margin-bottom: 10px; font-size: 13px;
}
.encounter-strip .es-kind { font-weight: 700; text-transform: capitalize; }
.encounter-strip .cond { background: var(--bg-2); border-radius: 999px; padding: 2px 9px; font-size: 12px; }

/* activity strip (softer) */
.activity-strip {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: linear-gradient(135deg, #1f2e2a, var(--panel));
  border: 1px solid var(--good); border-radius: 10px;
  padding: 8px 12px; margin-bottom: 10px; font-size: 13px;
}

/* waiting (retry) indicator */
.waiting { display: flex; align-items: center; gap: 8px; padding: 14px 18px; color: var(--warn); font-size: 14px; }
.waiting .spinner {
  width: 14px; height: 14px; border: 2px solid var(--warn); border-top-color: transparent;
  border-radius: 50%; animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.retry-card { align-self: center; text-align: center; background: var(--panel); border: 1px solid var(--warn); border-radius: 12px; padding: 14px 18px; }
.retry-card button { margin-top: 8px; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(8, 6, 12, 0.92);
  display: flex; align-items: center; justify-content: center;
}
.lb-img { max-width: 90vw; max-height: 84vh; border-radius: 8px; box-shadow: var(--shadow); }
.lb-caption {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: var(--ink); background: rgba(0,0,0,0.5); padding: 6px 14px; border-radius: 999px; font-size: 14px;
}
.lb-close {
  position: absolute; top: 18px; right: 22px; background: transparent; color: #fff;
  font-size: 26px; border: none; cursor: pointer; line-height: 1;
}
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.08); color: #fff; border: none; cursor: pointer;
  font-size: 40px; width: 56px; height: 80px; border-radius: 10px;
}
.lb-prev { left: 16px; } .lb-next { right: 16px; }
.lb-nav:hover { background: rgba(255,255,255,0.18); }

/* chapter reader */
.cr-container {
  background: var(--bg); border: 1px solid var(--border); border-radius: 14px;
  width: 90vw; max-width: 800px; height: 85vh; display: flex; flex-direction: column;
  position: relative; box-shadow: var(--shadow);
}
.cr-header { padding: 20px 24px; border-bottom: 1px solid var(--border); background: var(--panel); border-radius: 14px 14px 0 0; }
.cr-header h2 { margin: 0 0 8px; font-size: 20px; color: var(--accent); }
.cr-header div { font-size: 14px; color: var(--muted); }
.cr-container .feed { flex: 1; overflow-y: auto; padding: 20px 24px; }

@media (max-width: 1100px) {
  .game { grid-template-columns: 1fr; height: auto; }
  .rail { flex-direction: row; flex-wrap: wrap; }
  .rail .panel { flex: 1 1 240px; }
  .feed { max-height: 60vh; }
}

/* ==========================================================================
   LANDING PAGE & MARKETING STYLES
   ========================================================================== */

.landing-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

/* Navigation Bar */
.landing-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 40px;
}
.nav-brand {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--ink);
}
.nav-brand span { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-link:hover {
  color: var(--ink);
}
.nav-cta {
  background: var(--accent);
  color: #1a1014;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
}
.nav-cta:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 40px 10px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  background: rgba(201, 123, 90, 0.12);
  color: var(--accent);
  border: 1px solid rgba(201, 123, 90, 0.35);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.hero-title {
  font-size: 58px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -1.5px;
  margin: 0 0 20px;
  color: #ffffff;
}
.hero-title span {
  background: linear-gradient(135deg, var(--accent) 0%, #e09875 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  max-width: 680px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 32px;
}
.hero-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.hero-primary-btn {
  background: linear-gradient(135deg, var(--accent) 0%, #b86948 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 17px;
  padding: 14px 32px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(201, 123, 90, 0.35);
  transition: all 0.2s ease;
}
.hero-primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(201, 123, 90, 0.45);
}
.hero-secondary-btn {
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 24px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
}
.hero-secondary-btn:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.hero-perks {
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Simulated Turn Demo Card */
.demo-card {
  width: 100%;
  max-width: 780px;
  margin: 48px auto 0;
  background: rgba(30, 24, 38, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(201, 123, 90, 0.3);
  border-radius: 18px;
  padding: 24px;
  text-align: left;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(201, 123, 90, 0.1);
  position: relative;
}
.demo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 8px;
}
.demo-world-tag { color: var(--ink); }
.genre-badge {
  background: var(--panel-2);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  color: var(--accent);
  margin-left: 6px;
}
.demo-chapter-badge {
  background: rgba(124, 92, 255, 0.15);
  border: 1px solid rgba(124, 92, 255, 0.35);
  color: #b5a2ff;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
}
.demo-char-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.demo-avatar {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #3d2d52 0%, #201729 100%);
  border: 1px solid var(--accent);
  display: grid;
  place-items: center;
  font-size: 20px;
}
.demo-char-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}
.demo-char-role {
  font-weight: 400;
  color: var(--muted);
  font-size: 13px;
}
.demo-status-tags {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}
.status-chip {
  background: var(--bg-2);
  border: 1px solid var(--border);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--muted);
}
.status-chip.chip-good {
  color: var(--good);
  border-color: rgba(95, 179, 126, 0.4);
}
.demo-narration {
  background: var(--bg-2);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  margin-bottom: 14px;
  font-size: 14.5px;
  line-height: 1.6;
  color: #ded6e8;
}
.demo-narration p { margin: 0; }
.demo-check-badge {
  background: rgba(95, 179, 126, 0.1);
  border: 1px solid rgba(95, 179, 126, 0.3);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--ink);
  margin-bottom: 16px;
}
.demo-check-badge .dice-icon { font-size: 16px; margin-right: 4px; }
.check-desc {
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 4px;
}
.demo-choices {
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.demo-choice-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.demo-chips {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.demo-chips .chip {
  text-align: left;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13.5px;
}

/* Common Section Header */
.landing-section {
  padding: 70px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.section-badge {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 12px;
  color: #ffffff;
}
.section-subtitle {
  font-size: 17px;
  color: var(--muted);
  max-width: 600px;
  margin: 0 0 36px;
  line-height: 1.5;
}

/* Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.step-card:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 123, 90, 0.4);
}
.step-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent) 0%, #8f4c30 100%);
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.step-card h3 {
  font-size: 20px;
  margin: 0 0 10px;
  color: #ffffff;
}
.step-card p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
}

/* Worlds Grid */
.worlds-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.world-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}
.world-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.world-card-header {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.world-genre {
  background: rgba(201, 123, 90, 0.15);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}
.world-tone {
  background: var(--panel-2);
  color: var(--muted);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
}
.world-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #ffffff;
}
.world-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}
.feature-card:hover {
  border-color: rgba(124, 92, 255, 0.4);
  transform: translateY(-2px);
}
.feature-icon {
  font-size: 32px;
  margin-bottom: 14px;
}
.feature-card h3 {
  font-size: 17px;
  margin: 0 0 8px;
  color: #ffffff;
}
.feature-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

/* FAQ Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 820px;
}
.faq-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.faq-item[open] {
  border-color: rgba(201, 123, 90, 0.4);
}
.faq-question {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: "▾";
  font-size: 16px;
  color: var(--accent);
  transition: transform 0.2s ease;
}
.faq-item[open] .faq-question::after {
  transform: rotate(180deg);
}
.faq-answer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
}

/* Sign In / Auth Section on Landing Page */
.auth-landing-card {
  display: flex;
  justify-content: center;
  padding-top: 60px;
}
.auth-box {
  width: 100%;
  max-width: 480px;
  margin: 0;
  border: 1px solid rgba(201, 123, 90, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(201, 123, 90, 0.15);
  padding: 32px 28px;
}
.auth-box-header {
  text-align: center;
  margin-bottom: 24px;
}
.auth-box-header h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 8px;
  color: #ffffff;
}
.auth-box-header .hint {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* Footer */
.landing-footer {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}
.footer-brand {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}
.footer-brand span { color: var(--accent); }
.footer-tagline {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 16px;
}
.footer-links a {
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
}
.footer-links a:hover {
  text-decoration: underline;
}
.footer-copy {
  color: rgba(157, 146, 173, 0.6);
  font-size: 12px;
  margin-top: 24px;
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 860px) {
  .hero-title { font-size: 40px; }
  .hero-subtitle { font-size: 16px; }
  .steps-grid { grid-template-columns: 1fr; }
  .worlds-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

