/* Explorio — site styles. Colors come from the game's own design kit (docs/design-system/docs/palette.json). */
:root {
  --canvas: #0e0d0c;
  --canvas-deep: #0b0a09;
  --surface: #131210;
  --surface-raised: #1a1714;
  --line: #3b342b;
  --line-bright: #73604b;
  --ivory: #e6d9c8;
  --ivory-muted: #c8b9a5;
  --secondary: #a79784;
  --tertiary: #8a7e71; /* a touch lighter than the game's #756B60 so small text passes 4.5:1 on the canvas */
  --gold: #baa081;
  --gold-bright: #d6b98f;
  --gold-dim: #756148;
  --gold-glow: #e2c08f;
  --danger: #ae625c;

  --serif: "EB Garamond", Garamond, "Times New Roman", serif;
  --display: "Cormorant Garamond", "Cormorant", Garamond, serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;

  --page: 1180px;
  --read: 680px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.37, 0, .63, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold-bright); text-decoration-color: var(--gold-dim); text-underline-offset: 3px; }
a:hover { color: var(--gold-glow); text-decoration-color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; border-radius: 4px; }
::selection { background: #3a2f22; color: var(--ivory); }

.skip { position: absolute; left: -9999px; top: 8px; }
.skip:focus { left: 16px; z-index: 100; background: var(--surface-raised); padding: 8px 14px; }

.wrap { width: 100%; max-width: var(--page); margin: 0 auto; padding-inline: var(--gutter); }
.icon { width: 1em; height: 1em; flex: none; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(14, 13, 12, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ivory); text-decoration: none; font-family: var(--display); font-size: 27px; font-weight: 500; letter-spacing: .02em; }
.brand:hover { color: var(--ivory); }
.brand .icon { color: var(--gold); font-size: 26px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--secondary); text-decoration: none; font-family: var(--display); font-size: 19px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ivory); }
.nav .btn { color: var(--ivory); }
@media (max-width: 760px) { .nav .hide-sm { display: none; } .nav { gap: 18px; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; padding: 0 26px;
  border: 1px solid var(--line-bright); border-radius: 999px;
  color: var(--ivory); background: transparent; text-decoration: none;
  font-family: var(--display); font-size: 21px; font-weight: 500; letter-spacing: .01em;
  cursor: pointer; transition: border-color .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.btn:hover { border-color: var(--gold); background: var(--surface-raised); color: var(--ivory); }
.btn .icon { color: var(--gold); font-size: 20px; }
.btn-primary { border-color: var(--gold); background: linear-gradient(180deg, #2a2219, #1c1712); box-shadow: inset 0 1px 0 rgba(226, 192, 143, .14); min-height: 58px; padding: 0 34px; font-size: 24px; }
.btn-primary:hover { border-color: var(--gold-glow); background: linear-gradient(180deg, #33291d, #211b15); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 18px; }

/* desktop vs phone download */
.desktop-only { }
.phone-only { display: none !important; }
html.is-phone .desktop-only { display: none !important; }
html.is-phone .phone-only { display: flex !important; }

.phone-note {
  flex-direction: column; align-items: center; gap: 14px; text-align: center;
  border: 1px solid var(--line-bright); border-radius: 18px; padding: 22px 22px 20px; max-width: 440px; margin: 0 auto;
  background: var(--surface);
}
.phone-note p { margin: 0; font-family: var(--display); font-size: 24px; line-height: 1.25; color: var(--ivory); }
.phone-note p strong { color: var(--gold-bright); font-weight: 500; }
.phone-note small { font-style: italic; color: var(--secondary); font-size: 17px; }

/* ---------- small type ---------- */
.eyebrow { display: flex; align-items: center; gap: 14px; justify-content: center; font-family: var(--display); font-style: italic; color: var(--gold); font-size: 20px; letter-spacing: .02em; margin: 0 0 18px; }
.eyebrow::before, .eyebrow::after { content: ""; height: 1px; width: 56px; background: linear-gradient(90deg, transparent, var(--gold-dim)); }
.eyebrow::after { transform: scaleX(-1); }
.eyebrow.left { justify-content: flex-start; }
.eyebrow.left::before { display: none; }
.eyebrow.left::after { transform: none; background: linear-gradient(90deg, var(--gold-dim), transparent); }
.meta { font-style: italic; color: var(--tertiary); font-size: 17px; }

h1, h2, h3 { font-family: var(--display); font-weight: 500; color: var(--ivory); margin: 0; letter-spacing: -.005em; }
h2 { font-size: clamp(38px, 5vw, 60px); line-height: 1.05; }
h3 { font-size: 30px; line-height: 1.15; }
.lede { font-size: clamp(20px, 2.1vw, 23px); color: var(--ivory-muted); max-width: 40ch; }
.center { text-align: center; margin-inline: auto; }

.rule { display: flex; align-items: center; gap: 16px; color: var(--gold-dim); margin: 0 auto; max-width: 420px; }
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line-bright)); }
.rule::after { transform: scaleX(-1); }
.rule .diamond { width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid var(--gold); }

section { position: relative; }
.section { padding-block: clamp(80px, 11vw, 150px); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(64px, 9vw, 120px); }
.hero-art { position: absolute; inset: 0 0 auto auto; width: min(58vw, 760px); height: min(92vh, 860px); pointer-events: none; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; opacity: .5; filter: saturate(.75); }
.hero-art::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, var(--canvas) 0%, rgba(14,13,12,.82) 26%, rgba(14,13,12,.15) 60%, rgba(14,13,12,.55) 100%),
  linear-gradient(0deg, var(--canvas) 2%, rgba(14,13,12,0) 45%, rgba(14,13,12,.4) 100%); }
.hero-copy { position: relative; max-width: 700px; }
.hero h1 { font-size: clamp(76px, 12vw, 150px); line-height: .9; letter-spacing: -.01em; font-weight: 500; }
.hero .tagline { margin: 22px 0 0; font-family: var(--display); font-style: italic; font-size: clamp(25px, 3vw, 34px); line-height: 1.25; color: var(--ivory-muted); max-width: 22em; }
.hero .lede { margin: 22px 0 0; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: 36px; }
.cta-row .meta { margin: 0; }
.cta-stack { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.hero .phone-note { margin: 34px 0 0; text-align: left; align-items: flex-start; }

.hero-shot { position: relative; margin-top: clamp(56px, 8vw, 96px); }
.frame { position: relative; border: 1px solid var(--line-bright); border-radius: 14px; overflow: hidden; background: var(--canvas-deep); box-shadow: 0 40px 120px rgba(0,0,0,.65), 0 0 0 6px rgba(186,160,129,.04); }
.frame img { width: 100%; }
.hero-shot .frame { border-radius: 16px; }
.caption { margin: 16px 0 0; text-align: center; font-style: italic; color: var(--secondary); font-size: 17px; }

/* ---------- a turn, as prose ---------- */
.turn { max-width: var(--read); margin: 56px auto 0; }
.turn p { margin: 0 0 1.1em; font-size: clamp(20px, 2vw, 23px); line-height: 1.62; color: var(--ivory); }
.act { display: flex; gap: 18px; align-items: flex-start; border-left: 1px solid var(--line-bright); padding: 4px 0 4px 22px; margin: 34px 0 30px; }
.act .icon { color: var(--gold); font-size: 20px; margin-top: 8px; }
.act span { font-family: var(--display); font-style: italic; font-size: clamp(22px, 2.3vw, 26px); line-height: 1.4; color: var(--ivory-muted); }
.margin-note { display: block; font-family: var(--display); font-style: italic; color: var(--gold); font-size: 18px; margin: -6px 0 22px; }
.turn .fade { color: var(--ivory-muted); }

/* ---------- features ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.feature + .feature { margin-top: clamp(80px, 11vw, 140px); }
.feature.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature.flip .feature-copy { order: 2; }
.feature-copy h3 { font-size: clamp(32px, 3.6vw, 44px); line-height: 1.08; }
.feature-copy p { color: var(--ivory-muted); margin: 18px 0 0; font-size: 20px; }
.feature-copy .tab-name { display: inline-flex; align-items: center; gap: 10px; color: var(--gold); font-family: var(--display); font-style: italic; font-size: 19px; margin-bottom: 14px; }
.feature-copy .tab-name .icon { font-size: 22px; }
@media (max-width: 860px) {
  .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature.flip .feature-copy { order: 0; }
}

/* ---------- vows (what it doesn't do) ---------- */
.vows { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 56px; }
.vow { padding: 34px 28px 36px; border-left: 1px solid var(--line); }
.vow:first-child { border-left: 0; }
.vow .icon { color: var(--gold); font-size: 30px; }
.vow h3 { font-size: 25px; margin-top: 18px; }
.vow p { margin: 10px 0 0; color: var(--secondary); font-size: 18px; line-height: 1.55; }
@media (max-width: 960px) { .vows { grid-template-columns: repeat(2, minmax(0, 1fr)); } .vow:nth-child(3) { border-left: 0; } .vow:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 560px) { .vows { grid-template-columns: 1fr; } .vow { border-left: 0; } .vow + .vow { border-top: 1px solid var(--line); } }

/* ---------- worlds ---------- */
.worlds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 56px; }
.world { position: relative; border: 1px solid var(--line); border-radius: 16px; padding: 34px 32px 32px; background: linear-gradient(180deg, var(--surface), var(--canvas)); overflow: hidden; min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; }
.world .bg { position: absolute; inset: 0; }
.world .bg img { width: 100%; height: 100%; object-fit: cover; opacity: .34; filter: saturate(.7); }
.world .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--canvas) 18%, rgba(14,13,12,.2) 100%); }
.world > *:not(.bg) { position: relative; }
.world .kicker { font-family: var(--display); font-style: italic; color: var(--gold); font-size: 19px; }
.world h3 { font-size: 38px; margin-top: 6px; }
.world p { margin: 12px 0 0; color: var(--ivory-muted); font-size: 19px; }
.world.coming { border-style: dashed; }
@media (max-width: 760px) { .worlds { grid-template-columns: 1fr; } }

/* ---------- storytellers ---------- */
.tellers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.teller { border: 1px solid var(--line); border-radius: 14px; padding: 22px 22px 20px; background: var(--surface); }
.teller h3 { font-size: 26px; }
.teller p { margin: 8px 0 0; color: var(--secondary); font-size: 17px; line-height: 1.5; }
.teller .speed { margin-top: 14px; font-family: var(--display); font-style: italic; color: var(--gold); font-size: 18px; }
@media (max-width: 900px) { .tellers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .tellers { grid-template-columns: 1fr; } }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; margin-top: 56px; }
.gallery figure { margin: 0; grid-column: span 3; }
.gallery figure.wide { grid-column: span 6; }
.gallery figure.third { grid-column: span 2; }
.gallery figcaption { margin-top: 10px; font-style: italic; color: var(--secondary); font-size: 16px; }
.gallery .frame { border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.gallery button { all: unset; display: block; cursor: zoom-in; border-radius: 10px; }
.gallery button:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
@media (max-width: 760px) { .gallery figure, .gallery figure.third { grid-column: span 6; } }

.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(8,7,6,.94); display: none; align-items: center; justify-content: center; padding: 3vw; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 92vh; width: auto; border: 1px solid var(--line-bright); border-radius: 10px; }
.lightbox button { position: absolute; top: 18px; right: 18px; }

/* ---------- final call ---------- */
.final { text-align: center; }
.final h2 { font-size: clamp(44px, 6vw, 76px); }
.final .lede { margin: 18px auto 0; }
.final .cta-row { justify-content: center; }
.final .cta-stack { align-items: center; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--tertiary); font-size: 16px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.site-foot a { color: var(--secondary); text-decoration: none; }
.site-foot a:hover { color: var(--ivory); }
.site-foot .brand { font-size: 22px; }
.site-foot .spacer { flex: 1; }

/* ---------- setup page ---------- */
.page-head { padding-top: clamp(64px, 8vw, 110px); padding-bottom: 20px; }
.page-head h1 { font-size: clamp(56px, 8vw, 96px); line-height: .95; }
.page-head .lede { margin-top: 20px; max-width: 46ch; }
.toc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.toc a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; color: var(--secondary); text-decoration: none; font-family: var(--display); font-size: 18px; }
.toc a:hover { border-color: var(--line-bright); color: var(--ivory); }

.doc { max-width: 860px; }
.doc h2 { font-size: clamp(36px, 4.4vw, 50px); scroll-margin-top: 90px; }
.doc > section + section { margin-top: clamp(72px, 9vw, 112px); }
.doc p { color: var(--ivory-muted); }

.flow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 0; margin-top: 36px; }
.node { border: 1px solid var(--line-bright); border-radius: 14px; padding: 20px 20px 18px; background: var(--surface); }
.node .icon { color: var(--gold); font-size: 28px; }
.node h3 { font-size: 24px; margin-top: 12px; }
.node p { margin: 6px 0 0; font-size: 16.5px; line-height: 1.5; color: var(--secondary); }
.node.you { border-color: var(--gold); }
.link { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; padding: 0 12px; min-width: 96px; color: var(--gold); }
.link .line { width: 100%; height: 1px; background: linear-gradient(90deg, var(--gold-dim), var(--gold), var(--gold-dim)); position: relative; }
.link .line::after { content: ""; position: absolute; right: -1px; top: -4px; width: 8px; height: 8px; border-top: 1px solid var(--gold); border-right: 1px solid var(--gold); transform: rotate(45deg); }
.link small { font-style: italic; color: var(--secondary); font-size: 15px; text-align: center; line-height: 1.3; }
@media (max-width: 820px) {
  .flow { grid-template-columns: 1fr; }
  .link { flex-direction: row; min-height: 56px; padding: 6px 0; }
  .link .line { width: 1px; height: 40px; background: linear-gradient(180deg, var(--gold-dim), var(--gold)); }
  .link .line::after { right: -4px; top: auto; bottom: -1px; transform: rotate(135deg); }
}
.facts { margin: 28px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.facts li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ivory-muted); font-size: 19px; }
.facts li .icon { color: var(--gold); font-size: 22px; margin-top: 4px; }

.steps { list-style: none; margin: 34px 0 0; padding: 0; counter-reset: step; }
.steps > li { position: relative; padding: 0 0 44px 76px; counter-increment: step; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: -4px; width: 48px; height: 48px; border: 1px solid var(--gold); border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 25px; color: var(--gold-bright); background: var(--canvas); }
.steps > li::after { content: ""; position: absolute; left: 24px; top: 52px; bottom: 8px; width: 1px; background: var(--line); }
.steps > li:last-child::after { display: none; }
.steps h3 { font-size: 28px; }
.steps p { margin: 8px 0 0; }
@media (max-width: 560px) { .steps > li { padding-left: 62px; } .steps > li::before { width: 42px; height: 42px; font-size: 22px; } .steps > li::after { left: 21px; top: 46px; } }

.tabs { margin-top: 18px; }
.tablist { display: flex; flex-wrap: wrap; gap: 4px 26px; border-bottom: 1px solid var(--line); }
.tablist button { all: unset; cursor: pointer; padding: 10px 2px 12px; font-family: var(--display); font-size: 21px; color: var(--secondary); position: relative; }
.tablist button:hover { color: var(--ivory); }
.tablist button[aria-selected="true"] { color: var(--ivory); }
.tablist button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-glow), transparent); }
.tablist button:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
.tabpanel { padding-top: 22px; }
.tabpanel[hidden] { display: none; }
.tabpanel p { margin: 0 0 12px; font-size: 19px; }
.tag { display: inline-block; font-family: var(--display); font-style: italic; color: var(--gold); font-size: 18px; margin-left: 8px; }

.code { position: relative; margin: 12px 0 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--canvas-deep); }
.code pre { margin: 0; padding: 16px 18px; padding-right: 92px; overflow-x: auto; font-family: var(--mono); font-size: 15px; line-height: 1.6; color: var(--ivory); }
.code pre .c { color: var(--tertiary); }
.code button { position: absolute; top: 9px; right: 9px; min-height: 34px; padding: 0 14px; border: 1px solid var(--line-bright); border-radius: 999px; background: var(--surface); color: var(--secondary); font-family: var(--display); font-size: 16px; cursor: pointer; }
.code button:hover { color: var(--ivory); border-color: var(--gold); }

.table-box { overflow-x: auto; margin-top: 24px; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 18px; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-family: var(--display); font-weight: 500; font-size: 18px; color: var(--gold); font-style: italic; background: var(--surface); }
td { color: var(--ivory-muted); }
td:first-child { color: var(--ivory); }

.faq { margin-top: 28px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 20px 4px; font-family: var(--display); font-size: 24px; line-height: 1.25; color: var(--ivory); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; margin-left: auto; flex: none; width: 9px; height: 9px; border-right: 1px solid var(--gold); border-bottom: 1px solid var(--gold); transform: rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg); }
.faq summary:hover { color: var(--gold-bright); }
.faq .answer { padding: 0 4px 22px; }
.faq .answer p { margin: 0 0 12px; font-size: 19px; }
.quote { font-family: var(--display); font-style: italic; color: var(--ivory); }

.note-box { margin-top: 26px; border: 1px solid var(--line-bright); border-radius: 14px; padding: 20px 22px; background: var(--surface); display: flex; gap: 16px; }
.note-box .icon { color: var(--gold); font-size: 24px; margin-top: 4px; }
.note-box p { margin: 0; font-size: 18.5px; }

.shot-inline { margin-top: 22px; }
.shot-inline .frame { border-radius: 12px; }

code { font-family: var(--mono); font-size: .8em; background: var(--surface-raised); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--ivory); }
.code code { all: unset; }
h1, h2, h3 { text-wrap: balance; }
.lede, .feature-copy p, .turn p { text-wrap: pretty; }
.world .bg img { object-position: 50% 85%; }
.hero-art img { object-position: 60% 70%; }

/* hero: a single candle-warm glow instead of a second abbey picture */
.hero-glow { position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 900px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(214,185,143,.10), rgba(214,185,143,.035) 45%, transparent 75%); }
.turn em { font-style: italic; color: var(--gold-bright); }

/* memories */
.minds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 52px; }
.mind { border: 1px solid var(--line-bright); border-radius: 16px; padding: 28px 30px 24px; background: linear-gradient(180deg, var(--surface), var(--canvas)); display: flex; flex-direction: column; }
.mind header { border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.mind h3 { font-size: 32px; }
.mind .role { display: block; margin-top: 4px; font-family: var(--display); font-style: italic; color: var(--secondary); font-size: 18px; }
.mind ul { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.mind li { font-family: var(--display); font-style: italic; font-size: 22px; line-height: 1.38; color: var(--ivory); padding-left: 18px; border-left: 1px solid var(--gold-dim); }
.mind li em { font-style: italic; color: var(--gold-bright); }
.trust { margin: 20px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-family: var(--display); font-size: 22px; color: var(--ivory); }
.trust span { font-style: italic; color: var(--gold); font-size: 18px; }
.trust small { font-style: italic; color: var(--secondary); font-size: 17px; }
.trust.down { color: #d39a90; }
.trust.up { color: #b9c8ab; }
@media (max-width: 820px) { .minds { grid-template-columns: 1fr; } }

/* most games vs Explorio */
.versus { margin: 52px auto 0; max-width: 980px; border-top: 1px solid var(--line); }
.vs-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.vs-row span { padding: 20px 24px; font-size: 19.5px; line-height: 1.5; }
.vs-row span:first-child { color: var(--tertiary); text-decoration: line-through; text-decoration-color: rgba(138,126,113,.45); text-decoration-thickness: 1px; }
.vs-row span:last-child { color: var(--ivory); border-left: 1px solid var(--line); }
.vs-head span { font-family: var(--display); font-style: italic; font-size: 20px; color: var(--gold) !important; text-decoration: none !important; padding-block: 14px; }
.vs-head span:first-child { color: var(--tertiary) !important; }
@media (max-width: 640px) {
  .vs-row { grid-template-columns: 1fr; }
  .vs-row span:last-child { border-left: 0; padding-top: 0; }
  .vs-row span { padding: 14px 4px; }
  .vs-head { display: none; }
}

/* ===== one idea per screen ===== */
.screen { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: clamp(72px, 10vh, 120px); position: relative; }
.screen h2 { font-size: clamp(42px, 6vw, 78px); line-height: 1.02; }
.screen > .wrap > .caption, .screen .wrap.narrow > .caption { margin-top: 34px; }
.narrow { max-width: 900px; }
.hero.screen { padding-top: 40px; min-height: calc(100svh - 69px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-grid .hero-copy { max-width: none; }
.hero h1 { font-size: clamp(72px, 9.5vw, 136px); }
.hero .tagline { font-size: clamp(28px, 3vw, 40px); margin-top: 18px; color: var(--ivory); }
.hero .cta-row { margin-top: 40px; }
.hero-grid .hero-shot { margin: 0; margin-right: calc(-1 * clamp(40px, 8vw, 160px)); }
.hero-grid .hero-shot .frame { box-shadow: 0 50px 140px rgba(0,0,0,.7), 0 0 80px rgba(214,185,143,.06); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-grid .hero-shot { margin-right: 0; }
}
.scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border: 1px solid var(--line-bright); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (max-height: 700px), (max-width: 900px) { .scroll-cue { display: none; } }

/* reveal on scroll */
.reveal > * { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in > * { opacity: 1; transform: none; }
.reveal.in > *:nth-child(2) { transition-delay: .5s; }
.reveal.in > *:nth-child(3) { transition-delay: 1.3s; }
.reveal.in > *:nth-child(4) { transition-delay: 1.8s; }
.reveal.in > *:nth-child(5) { transition-delay: 2.1s; }
.reveal.in > *:nth-child(6) { transition-delay: 2.4s; }
@media (prefers-reduced-motion: reduce) { .reveal > * { opacity: 1; transform: none; } }
.no-js .reveal > * { opacity: 1; transform: none; }

/* say anything */
@media (max-width: 560px) { .said { margin-left: 0; } }

/* centered tabs */
.center-tabs { justify-content: center; border-bottom: 0; margin-top: 36px; gap: 4px 34px; }
.center-tabs button { display: inline-flex; align-items: center; gap: 10px; font-size: 23px; }
.center-tabs button .icon { color: var(--gold); font-size: 22px; }

/* the mind map */
.mindmap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .8fr) minmax(0, 1fr); grid-template-rows: auto auto auto; gap: 28px 40px; margin: 36px auto 0; max-width: 1080px; padding: 10px 0; }
.mm-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.mm-lines path { fill: none; stroke: var(--gold-dim); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 3 5; animation: drift 8s linear infinite; }
@keyframes drift { to { stroke-dashoffset: -80; } }
.mm-core { grid-column: 2; grid-row: 2; position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 18px 10px; }
.mm-core::before { content: ""; position: absolute; inset: -30px; border-radius: 50%; background: radial-gradient(closest-side, rgba(226,192,143,.16), transparent 70%); animation: breathe 5s var(--ease) infinite; pointer-events: none; }
@keyframes breathe { 50% { transform: scale(1.12); opacity: .55; } }
.medallion { position: relative; width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold); box-shadow: 0 0 0 6px var(--canvas), 0 0 0 7px var(--gold-dim); background: radial-gradient(circle at 50% 35%, #2a2219, #141210); font-family: var(--display); font-size: 52px; color: var(--gold-bright); margin-bottom: 14px; }
.mm-core strong { position: relative; font-family: var(--display); font-weight: 500; font-size: 32px; color: var(--ivory); }
.mm-core > span:last-child { position: relative; font-family: var(--display); font-style: italic; color: var(--secondary); font-size: 19px; }
.mm-node { position: relative; background: rgba(19,18,16,.92); border: 1px solid var(--line-bright); border-radius: 16px; padding: 18px 22px 20px; align-self: center; }
.mm-feels { grid-column: 1; grid-row: 1; }
.mm-remembers { grid-column: 3; grid-row: 1; }
.mm-wants { grid-column: 1; grid-row: 3; }
.mm-hides { grid-column: 3; grid-row: 3; }
.mm-label { display: block; font-family: var(--display); font-style: italic; color: var(--gold); font-size: 18px; margin-bottom: 10px; letter-spacing: .02em; }
.mm-node p { margin: 0; font-size: 20px; line-height: 1.45; color: var(--ivory); }
.mm-node q { display: block; font-family: var(--display); font-style: italic; font-size: 24px; line-height: 1.3; color: var(--ivory); quotes: "“" "”"; }
.feel-path { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.feel-path li { position: relative; display: flex; align-items: baseline; gap: 14px; padding: 6px 0 6px 22px; font-family: var(--display); font-size: 24px; color: var(--secondary); }
.feel-path li::before { content: ""; position: absolute; left: 2px; top: 50%; width: 7px; height: 7px; margin-top: -3px; transform: rotate(45deg); border: 1px solid var(--gold-dim); background: var(--canvas); }
.feel-path li + li::after { content: ""; position: absolute; left: 5px; top: -12px; height: 24px; width: 1px; background: var(--line-bright); }
.feel-path li:last-child { color: var(--ivory); }
.feel-path li:last-child::before { border-color: var(--gold-glow); background: var(--gold); box-shadow: 0 0 10px rgba(226,192,143,.6); }
.feel-path time { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--tertiary); min-width: 40px; }
.redacted { display: flex; flex-direction: column; gap: 9px; padding: 6px 0 2px; }
.redacted span { display: block; height: 13px; border-radius: 3px; background: linear-gradient(90deg, #2a241d, #3a3128 50%, #2a241d); background-size: 200% 100%; animation: shimmer 3.5s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.mm-node .hint { margin-top: 12px; font-style: italic; color: var(--secondary); font-size: 17px; }
.mindmap.reveal > * { transition-delay: 0s; }
.mindmap.reveal.in .mm-core { transition-delay: 0s; }
.mindmap.reveal.in .mm-feels { transition-delay: .25s; }
.mindmap.reveal.in .mm-remembers { transition-delay: .5s; }
.mindmap.reveal.in .mm-wants { transition-delay: .75s; }
.mindmap.reveal.in .mm-hides { transition-delay: 1s; }
.mindmap.reveal .feel-path li { opacity: .25; transition: opacity .6s var(--ease); }
.mindmap.reveal.in .feel-path li { opacity: 1; }
.mindmap.reveal.in .feel-path li:nth-child(1) { transition-delay: .6s; }
.mindmap.reveal.in .feel-path li:nth-child(2) { transition-delay: 1.3s; }
.mindmap.reveal.in .feel-path li:nth-child(3) { transition-delay: 2s; }
@media (max-width: 860px) {
  .mindmap { grid-template-columns: 1fr; gap: 16px; }
  .mm-lines { display: none; }
  .mm-core, .mm-feels, .mm-remembers, .mm-wants, .mm-hides { grid-column: 1; grid-row: auto; }
  .mm-core { order: -1; padding-bottom: 8px; }
  .mindmap::before { content: ""; position: absolute; left: 50%; top: 140px; bottom: 20px; width: 1px; background: linear-gradient(var(--gold-dim), transparent); }
}
@media (prefers-reduced-motion: reduce) { .mm-lines path, .mm-core::before, .redacted span, .scroll-cue span { animation: none; } }

/* not a script */
.beats { list-style: none; margin: 54px auto 0; padding: 0; max-width: 760px; }
.beats li { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.25fr); align-items: center; gap: 22px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.beats li::after { content: ""; grid-column: 2; grid-row: 1; width: 34px; height: 1px; background: linear-gradient(90deg, var(--gold-dim), var(--gold)); }
.beat-old { grid-column: 1; text-align: right; font-size: 21px; color: var(--tertiary); text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: rgba(138,126,113,.5); }
.beat-new { grid-column: 3; font-family: var(--display); font-size: clamp(25px, 2.6vw, 31px); color: var(--ivory); line-height: 1.2; }
@media (max-width: 560px) {
  .beats li { grid-template-columns: 1fr; gap: 4px; }
  .beats li::after { display: none; }
  .beat-old, .beat-new { grid-column: 1; text-align: left; }
}

/* kept */
.kept-tabs .tabpanel { padding-top: 0; }
.kept-line { text-align: center; font-family: var(--display); font-style: italic; color: var(--ivory-muted); font-size: 23px; margin: 22px 0 26px !important; }
.kept-tabs .frame { max-width: 1060px; margin: 0 auto; }

/* worlds, simpler */
.worlds .world { min-height: 220px; justify-content: center; text-align: center; align-items: center; }
.worlds .world h3 { font-size: clamp(30px, 3vw, 40px); }
.screen .caption a { font-style: normal; }

/* final */
.final.screen { min-height: 80svh; }
.final h2 { font-size: clamp(40px, 5.6vw, 72px); font-style: italic; font-weight: 400; }
.final .cta-row { margin-top: 44px; }

/* v2 tweaks: header-aware screens, a wide two-row mind map, no phone overflow */
.screen { scroll-margin-top: 69px; min-height: calc(100svh - 69px); }
html, body { overflow-x: clip; }
#minds h2 { font-size: clamp(38px, 4.6vw, 60px); }
#minds .center-tabs { margin-top: 22px; }
.mindmap { grid-template-columns: minmax(0, 1fr) minmax(200px, .62fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 22px 56px; margin-top: 26px; }
.mm-core { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.mm-feels { grid-column: 1; grid-row: 1; }
.mm-wants { grid-column: 1; grid-row: 2; }
.mm-remembers { grid-column: 3; grid-row: 1; }
.mm-hides { grid-column: 3; grid-row: 2; }
@media (max-width: 860px) {
  .mindmap { grid-template-columns: 1fr; grid-template-rows: none; }
  .mm-core, .mm-feels, .mm-remembers, .mm-wants, .mm-hides { grid-column: 1; grid-row: auto; }
  .mm-core::before { inset: -10px 0; }
}

/* v3: no visible scrollbar */
html { scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* v3: a much bigger hero shot that runs to the window edge */
.hero .wrap.hero-grid { max-width: 1760px; grid-template-columns: minmax(400px, .8fr) minmax(0, 2fr); gap: clamp(32px, 4vw, 64px); padding-right: 0; }
.hero h1 { font-size: clamp(64px, 7.2vw, 120px); }
.hero .tagline { font-size: clamp(26px, 2.4vw, 36px); }
.hero-grid .hero-shot { margin-right: 0; }
.hero-grid .hero-shot .frame { border-radius: 16px 0 0 16px; border-right: 0; }
@media (min-width: 1761px) { .hero-grid .hero-shot .frame { border-radius: 16px; border-right: 1px solid var(--line-bright); } .hero .wrap.hero-grid { padding-right: var(--gutter); } }
@media (max-width: 900px) {
  .hero .wrap.hero-grid { grid-template-columns: 1fr; padding-right: var(--gutter); }
  .hero-grid .hero-shot .frame { border-radius: 12px; border-right: 1px solid var(--line-bright); }
}

/* v3: powered by — big logos */
.powered { list-style: none; margin: 56px auto 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1000px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.powered li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 44px 20px 40px; }
.powered li + li { border-left: 1px solid var(--line); }
.powered .logo { width: 88px; height: 88px; color: var(--ivory); margin-bottom: 18px; filter: drop-shadow(0 0 24px rgba(214,185,143,.12)); }
.powered .tool { font-family: var(--display); font-size: 34px; font-weight: 500; color: var(--ivory); line-height: 1.1; }
.powered .maker { font-family: var(--display); font-style: italic; font-size: 19px; color: var(--secondary); }
#powered .caption { margin-top: 34px; }
@media (max-width: 640px) {
  .powered { grid-template-columns: 1fr; }
  .powered li + li { border-left: 0; border-top: 1px solid var(--line); }
  .powered li { padding: 30px 12px; }
  .powered .logo { width: 64px; height: 64px; }
}

/* setup head: copy left, logos right */
.setup-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.works-with { border: 1px solid var(--line-bright); border-radius: 20px; padding: 30px 34px 26px; background: linear-gradient(180deg, var(--surface), var(--canvas)); }
.works-with .eyebrow { margin-bottom: 8px; }
.powered.stacked { grid-template-columns: 1fr; margin: 0; border: 0; max-width: none; }
.powered.stacked li { flex-direction: row; text-align: left; gap: 22px; padding: 20px 0; align-items: center; flex-wrap: wrap; }
.powered.stacked li + li { border-left: 0; border-top: 1px solid var(--line); }
.powered.stacked .logo { width: 64px; height: 64px; margin: 0; }
.powered.stacked .tool { font-size: 32px; }
.powered.stacked .maker { flex-basis: 100%; margin: -6px 0 0 86px; font-size: 18px; }
.works-with .meta { margin: 14px 0 0; }
@media (max-width: 900px) { .setup-head { grid-template-columns: 1fr; } }
.powered.stacked li { row-gap: 0; column-gap: 22px; }
.powered.stacked .maker { margin-top: 2px; }

/* v4: hero is a statement, not the name */
.hero h1 { font-size: clamp(44px, 4.6vw, 78px); line-height: 1.02; letter-spacing: -.005em; max-width: 13em; text-wrap: balance; }
.hero .hero-sub { margin: 26px 0 0; font-size: clamp(19px, 1.45vw, 23px); line-height: 1.55; color: var(--ivory-muted); max-width: 34em; text-wrap: pretty; }
.hero .cta-row { align-items: center; }

/* v5: how you play — pick an action, see the real answer */
.play { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: start; margin-top: 52px; text-align: left; }
.step-label { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-family: var(--display); font-style: italic; font-size: 20px; color: var(--gold); letter-spacing: .02em; }
.step-label b { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--gold-dim); display: grid; place-items: center; font-style: normal; font-weight: 500; font-size: 16px; color: var(--gold-bright); line-height: 1; }
.play-left .step-label:not(:first-child) { margin-top: 34px; }
.scene p { margin: 0 0 10px; font-size: 21px; color: var(--ivory); }
.scene blockquote { margin: 0; padding: 2px 0 2px 20px; border-left: 1px solid var(--line-bright); font-style: italic; font-size: 19px; line-height: 1.5; color: var(--ivory-muted); }
.scene cite { display: block; margin-top: 6px; font-family: var(--display); font-size: 17px; color: var(--secondary); }
.scene cite::before { content: "— "; }
.step-help { margin: 0 0 14px; font-size: 19px; color: var(--ivory-muted); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips button { all: unset; box-sizing: border-box; cursor: pointer; padding: 9px 18px; border: 1px solid var(--line-bright); border-radius: 999px; font-family: var(--display); font-size: 20px; line-height: 1.2; color: var(--ivory-muted); transition: border-color .25s var(--ease), color .25s var(--ease), background .25s var(--ease); }
.chips button:hover { border-color: var(--gold); color: var(--ivory); }
.chips button[aria-selected="true"] { border-color: var(--gold-bright); color: var(--ivory); background: var(--surface-raised); }
.chips button:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
.mock-composer { display: flex; align-items: flex-start; gap: 14px; margin-top: 18px; padding: 16px 18px; min-height: 92px; border: 1px solid var(--line-bright); border-radius: 14px; background: var(--canvas-deep); }
.mock-composer .icon { flex: none; color: var(--gold); font-size: 22px; margin-top: 4px; }
.mock-composer .typed { font-family: var(--display); font-style: italic; font-size: 21px; line-height: 1.4; color: var(--ivory); }
.mock-composer .typed::after { content: ""; display: inline-block; width: 1.5px; height: 1.05em; margin-left: 3px; vertical-align: -3px; background: var(--gold); animation: caret 1.1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.play-right { border: 1px solid var(--line-bright); border-radius: 18px; padding: 30px 34px 30px; background: linear-gradient(180deg, var(--surface), var(--canvas)); box-shadow: 0 40px 110px rgba(0,0,0,.5); min-height: 520px; }
.play-right .tabpanel { padding-top: 0; }
.answer .step-label:not(:first-child) { margin-top: 26px; }
.answer .dice { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; font-size: 19px; color: var(--ivory-muted); }
.answer .dice .icon { color: var(--gold); font-size: 24px; }
.answer .dice strong { font-family: var(--display); font-weight: 500; font-size: 21px; color: var(--gold-bright); }
.answer .dice.bad strong { color: var(--danger); }
.answer .prose p { margin: 0 0 12px; font-size: 20px; line-height: 1.55; color: var(--ivory); }
.answer .prose p:last-child { margin-bottom: 0; }
.after { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.after .changed { font-family: var(--display); font-style: italic; font-size: 19px; color: var(--secondary); padding-left: 18px; position: relative; }
.after .changed::before { content: ""; position: absolute; left: 2px; top: .62em; width: 5px; height: 5px; background: var(--gold-dim); transform: rotate(45deg); }
.after .memory { margin-top: 4px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(186,160,129,.045); font-style: italic; font-size: 19px; line-height: 1.5; color: var(--ivory-muted); }
.after .memory span { display: block; margin-bottom: 4px; font-family: var(--display); font-size: 16px; letter-spacing: .04em; color: var(--gold); }
/* the answer arrives one part at a time (only when the script asks for it) */
.answer.wait > * { opacity: 0; }
.answer.go > * { animation: arrive .7s var(--ease) both; }
.answer.go > *:nth-child(1), .answer.go > *:nth-child(2) { animation-delay: .05s; }
.answer.go > *:nth-child(3), .answer.go > *:nth-child(4) { animation-delay: .75s; }
.answer.go > *:nth-child(5), .answer.go > *:nth-child(6) { animation-delay: 1.9s; }
@keyframes arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .answer.wait > * { opacity: 1; } .answer.go > * { animation: none; } .mock-composer .typed::after { animation: none; } }
@media (max-width: 900px) {
  .play { grid-template-columns: 1fr; margin-top: 36px; }
  .play-right { padding: 22px 20px; min-height: 0; }
  .chips button { font-size: 18px; padding: 8px 15px; }
}

/* v5b: keep "how you play" to about one screen */
#play.screen { padding-block: clamp(36px, 6vh, 72px); }
#play h2 { font-size: clamp(38px, 4.3vw, 60px); }
#play h2 span { white-space: nowrap; }
.play { margin-top: 34px; }
.step-label { margin-bottom: 8px; font-size: 19px; }
.play-left .step-label:not(:first-child) { margin-top: 26px; }
.scene p { font-size: 20px; margin-bottom: 8px; }
.scene blockquote { font-size: 18px; }
.scene cite { display: inline; margin: 0 0 0 8px; }
.step-help { margin-bottom: 12px; font-size: 18px; }
.chips button { font-size: 19px; padding: 8px 16px; }
.mock-composer { min-height: 78px; margin-top: 16px; padding: 14px 16px; }
.mock-composer .typed { font-size: 20px; }
.play-right { padding: 24px 30px 26px; min-height: 468px; }
.answer .step-label:not(:first-child) { margin-top: 18px; }
.answer .prose p { font-size: 19px; line-height: 1.5; margin-bottom: 10px; }
.after .memory { padding: 11px 16px 12px; font-size: 18px; line-height: 1.45; }
.after .changed { font-size: 18px; }
#play .caption { margin-top: 22px; }
@media (max-width: 900px) { #play h2 span { display: block; white-space: normal; } .play-right { min-height: 0; padding: 20px 18px; } }
