/* ==================================================================
   DESTINY VS FREEWILL — site styles
   Day: warm beige paper. Night: the navy-and-gold sky of the book cover.
   Colours carry meaning everywhere: teal = destiny, rose = freewill,
   gold = karma (and every "buy" button).
================================================================== */
:root {
  --bg: #F5EEDF; --surface: #FBF6EC; --wash: #EFE5D0; --ink: #2F3B36; --muted: #5A6660; --line: #E0D3B8;
  --teal: #2E7F72; --teal-soft: #D3EAE3; --rose: #A8385E; --rose-soft: #F6D8E1; --gold: #E3B65A; --gold-deep: #8A6214; --gold-soft: #F7E6BF;
  --on-gold: #3D2A05; --glow: rgba(227,182,90,.35); --mist: rgba(111,179,166,.18); --mist2: rgba(217,139,163,.16);
  --shadow: 0 18px 40px -24px rgba(47,59,54,.35); --topbar: rgba(245,238,223,.86);
  --f-display: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-body: "Mukta Vaani", "Segoe UI", system-ui, sans-serif;
  --r: 22px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0B1530; --surface: #13213F; --wash: #0F1C3A; --ink: #F3E7C4; --muted: #B7C1D6; --line: #263A63;
  --teal: #8FD0C4; --teal-soft: #173A48; --rose: #F0A9C0; --rose-soft: #3A2546; --gold: #E8C477; --gold-deep: #E8C477; --gold-soft: #33301F;
  --on-gold: #2A1C02; --glow: rgba(232,196,119,.20); --mist: rgba(143,208,196,.08); --mist2: rgba(240,169,192,.07);
  --shadow: 0 18px 40px -24px rgba(0,0,0,.7); --topbar: rgba(11,21,48,.84); color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #0B1530; --surface: #13213F; --wash: #0F1C3A; --ink: #F3E7C4; --muted: #B7C1D6; --line: #263A63;
  --teal: #8FD0C4; --teal-soft: #173A48; --rose: #F0A9C0; --rose-soft: #3A2546; --gold: #E8C477; --gold-deep: #E8C477; --gold-soft: #33301F;
  --on-gold: #2A1C02; --glow: rgba(232,196,119,.20); --mist: rgba(143,208,196,.08); --mist2: rgba(240,169,192,.07);
  --shadow: 0 18px 40px -24px rgba(0,0,0,.7); --topbar: rgba(11,21,48,.84); color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.7 var(--f-body); overflow-x: hidden; transition: background-color .5s, color .5s; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.12; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: 1.55rem; }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }
[hidden] { display: none !important; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { top: calc(10px + env(safe-area-inset-top, 0px)); }
#sky { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
main, .site-footer { position: relative; z-index: 1; }
.wrap { max-width: 1140px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.wrap.narrow { max-width: 760px; }
section { position: relative; padding-block: clamp(60px, 8vw, 104px); }
section.is-alt, .is-alt { background: var(--wash); }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.mt { margin-top: 18px; }
.center { text-align: center; }
.center-col { display: grid; gap: 16px; justify-items: center; text-align: center; }
.eyebrow { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); font-weight: 500; }
.lede { color: var(--muted); max-width: 62ch; font-size: 1.05rem; }
.head { display: grid; gap: 12px; margin-bottom: 40px; max-width: 720px; }
.head.center { margin-inline: auto; text-align: center; justify-items: center; }
.read-more-row { margin-top: 32px; }
.read-more { color: var(--gold-deep); font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.read-more:hover { color: var(--ink); }

/* ---------- buttons, tags ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 500 1rem/1.2 var(--f-body); padding: 13px 24px; border-radius: 999px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .2s, background-color .3s, border-color .3s; text-align: center; }
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-gold:hover { background: color-mix(in srgb, var(--gold) 88%, var(--ink)); }
.btn-line { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--gold); }
.btn-sm { padding: 9px 18px; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }
.btn-col { display: grid; gap: 10px; }
.is-here { opacity: .7; cursor: default; }
.is-here:hover { transform: none; }
.tag { display: inline-block; font-size: .8rem; padding: 3px 12px; border-radius: 999px; font-weight: 500; line-height: 1.6; }
.t-teal { background: var(--teal-soft); color: var(--teal); }
.t-rose { background: var(--rose-soft); color: var(--rose); }
.t-gold { background: var(--gold-soft); color: var(--gold-deep); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; display: grid; place-items: center; flex: none; padding: 0; }
.icon-btn svg { width: 20px; height: 20px; }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-btn .i-sun { display: block; } :root:not([data-theme="light"]) .theme-btn .i-moon { display: none; } }

/* ---------- top bar & drawer ---------- */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--topbar); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.topbar-in { display: flex; align-items: center; gap: 14px; height: 68px; }
.brand { font-family: var(--f-display); font-size: 1.45rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.brand i { color: var(--gold-deep); font-weight: 500; }
.theme-btn { margin-left: auto; }
.topbar-buy { white-space: nowrap; }
@media (max-width: 460px) { .brand { font-size: 1.15rem; } .topbar-in { gap: 10px; } .topbar-buy { padding: 8px 14px; } }
.nav-overlay { position: fixed; inset: 0; z-index: 70; background: rgba(8,14,32,.45); }
.nav-drawer { position: fixed; z-index: 80; top: 0; bottom: 0; left: 0; width: min(360px, 88vw); background: var(--surface); border-right: 1px solid var(--line); transform: translateX(-102%); transition: transform .35s ease; display: flex; flex-direction: column; padding: calc(16px + env(safe-area-inset-top, 0px)) 22px calc(20px + env(safe-area-inset-bottom, 0px)) max(22px, env(safe-area-inset-left, 0px)); overflow-y: auto; }
.nav-drawer.is-open { transform: none; box-shadow: var(--shadow); }
.nav-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.nav-badge { font-size: .8rem; color: var(--gold-deep); margin: 8px 0 10px; }
.nav-drawer-body { display: grid; gap: 2px; flex: 1; }
.nav-group { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 16px 0 4px; }
.nav-link { text-decoration: none; padding: 8px 12px; border-radius: 10px; font-size: 1rem; }
.nav-link:hover { background: var(--wash); }
.nav-link.on { background: var(--gold-soft); color: var(--gold-deep); font-weight: 500; }
.nav-drawer-foot { display: grid; gap: 10px; margin-top: 20px; }

/* ---------- home hero ---------- */
.hero { overflow: hidden; padding-block: clamp(40px, 6vw, 80px) clamp(56px, 8vw, 96px); }
.hero::before, .page-hero::before { content: ""; position: absolute; inset: -10% -5% auto; height: 120%; background:
  radial-gradient(40% 50% at 74% 42%, var(--glow), transparent 70%),
  radial-gradient(35% 40% at 12% 22%, var(--mist), transparent 70%),
  radial-gradient(30% 35% at 40% 92%, var(--mist2), transparent 70%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-copy { display: grid; gap: 20px; min-width: 0; }
.hero-title { font-size: clamp(3.3rem, 8.5vw, 6.6rem); line-height: .95; letter-spacing: -.01em; }
.hero-title .d, .page-title span, .big-quote span { color: var(--teal); }
.hero-title .f, .page-title em, .big-quote em { color: var(--rose); }
.hero-title .vs { font-style: italic; font-weight: 500; font-size: .48em; color: var(--gold-deep); display: inline-block; padding: 0 .25em; vertical-align: .38em; }
.hero-sub { font-family: var(--f-display); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.8rem); color: var(--muted); line-height: 1.3; }
.badge-line { display: flex; align-items: center; gap: 14px; font-size: .92rem; color: var(--muted); }
.badge-line img { width: 64px; height: 64px; flex: none; }
.hero-book { position: relative; justify-self: center; max-width: 380px; width: 100%; }
.hero-book::before { content: ""; position: absolute; inset: 6% -14%; border-radius: 50%; background: radial-gradient(circle, var(--glow), transparent 65%); z-index: -1; }
.hero-book img { display: block; width: 100%; filter: drop-shadow(0 30px 40px rgba(8,18,40,.38)); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px) rotate(-.6deg); } }
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; } .hero-book { max-width: 250px; order: -1; } }

/* ---------- inner page hero ---------- */
.page-hero { overflow: hidden; padding-block: clamp(36px, 5vw, 64px) clamp(36px, 5vw, 56px); }
.page-hero .wrap { position: relative; display: grid; gap: 14px; }
.page-title { font-size: clamp(2.6rem, 6.4vw, 4.6rem); line-height: 1; }
.page-title em { font-style: italic; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 6px; padding: 0; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.about-main { display: grid; gap: 20px; }
.big-quote { font-family: var(--f-display); font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.22; font-style: italic; }
.big-quote.small-q { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.dedication { font-style: italic; color: var(--muted); }
.why-list { display: grid; gap: 22px; }
.why-list div { display: grid; gap: 4px; padding-left: 18px; border-left: 2px solid var(--gold); }
.why-list b { font-weight: 600; }
.why-list p { color: var(--muted); }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- try (mini game on home) ---------- */
.try-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; }
.try-grid > div:first-child { display: grid; gap: 12px; }
@media (max-width: 820px) { .try-grid { grid-template-columns: 1fr; } }

/* ---------- voices ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; position: relative; }
.voice { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 32px; display: grid; gap: 14px; align-content: start; }
.who { display: flex; align-items: center; gap: 14px; }
.who > div { display: grid; gap: 4px; justify-items: start; }
.glyph { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display); font-size: 1.7rem; font-weight: 700; background: var(--cs); color: var(--c); flex: none; }
.bubble { font-family: var(--f-display); font-size: 1.35rem; font-style: italic; line-height: 1.35; }
.cup { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 66px; height: 66px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); display: grid; place-items: center; z-index: 2; color: var(--gold-deep); }
@media (max-width: 820px) { .duo { grid-template-columns: 1fr; } .cup { display: none; } }
.char-full { display: grid; grid-template-columns: 200px 1fr; gap: 48px; align-items: start; padding-block: 40px; border-bottom: 1px solid var(--line); }
.char-full.flip { grid-template-columns: 1fr 200px; }
.char-full.flip .char-mark { order: 2; }
.char-mark { width: 200px; height: 200px; border-radius: 50%; display: grid; place-items: center; font: 700 7rem/1 var(--f-display); color: var(--c); background: radial-gradient(circle at 35% 30%, var(--surface), var(--cs)); border: 1px solid var(--line); }
.char-body { display: grid; gap: 16px; min-width: 0; }
.char-quotes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-family: var(--f-display); font-style: italic; font-size: 1.2rem; color: var(--muted); }
.char-quotes li { padding-left: 16px; border-left: 2px solid var(--c); }
.note-card { margin-top: 48px; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 4vw, 40px); display: grid; gap: 14px; }
@media (max-width: 760px) { .char-full, .char-full.flip { grid-template-columns: 1fr; gap: 24px; } .char-full.flip .char-mark { order: 0; } .char-mark { width: 120px; height: 120px; font-size: 4.4rem; } }

/* ---------- saint & two legs ---------- */
.saint-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.saint-grid > div:first-child { display: grid; gap: 16px; }
.saint-steps { display: flex; flex-wrap: wrap; gap: 10px; }
.saint-say { font-family: var(--f-display); font-style: italic; font-size: 1.5rem; min-height: 2.4em; line-height: 1.3; }
.legs { justify-self: center; width: min(240px, 70vw); }
.legs-svg { width: 100%; fill: none; stroke: var(--ink); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.legs-svg circle { fill: var(--gold-soft); }
.legs-svg .ground { stroke: var(--line); stroke-width: 4; }
.legs-svg path { transition: transform .6s cubic-bezier(.3,1.4,.5,1); transform-origin: 100px 130px; }
.legs.r-up .leg-r { stroke: var(--rose); transform: rotate(38deg); }
.legs.l-try .leg-l { stroke: var(--teal); animation: wobble .5s ease 2; }
@keyframes wobble { 30% { transform: rotate(-14deg); } 60% { transform: rotate(6deg); } }
@media (max-width: 760px) { .saint-grid { grid-template-columns: 1fr; } }

/* ---------- journey path ---------- */
.path { list-style: none; margin: 0; padding: 0; position: relative; max-width: 860px; }
.path::before { content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--teal), var(--gold) 50%, var(--rose)); }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 22px; padding-block: 16px; }
.step .n { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 2px solid var(--c); color: var(--c); font: 700 1.4rem var(--f-display); position: relative; z-index: 1; }
.is-alt .step .n { background: var(--wash); }
.step > div { display: grid; gap: 6px; min-width: 0; padding-top: 4px; }
.step small { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c); font-weight: 500; }
.path-big .step { padding-block: 26px; }
.path-big h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.mini-ch { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.mini-ch li { font-weight: 500; }
.mini-ch li span { font-family: var(--f-display); color: var(--gold-deep); margin-right: 8px; font-weight: 700; }
.mini-ch li i { display: block; font-weight: 400; color: var(--muted); font-size: .95rem; }
.chain-explain { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 36px; }

/* ---------- chapters ---------- */
.ch-list { columns: 2; column-gap: 56px; list-style: none; margin: 0; padding: 0; }
.ch-list li { break-inside: avoid; display: grid; grid-template-columns: 38px 1fr; gap: 10px; padding-block: 13px; border-bottom: 1px solid var(--line); }
.ch-list-3 { columns: 3; margin-bottom: 28px; }
.ch-n { font: 600 1.1rem var(--f-display); color: var(--gold-deep); font-variant-numeric: tabular-nums; }
.ch-list b { font-weight: 500; display: block; }
.ch-list span:not(.ch-n) { color: var(--muted); font-size: .92rem; line-height: 1.5; display: block; }
@media (max-width: 860px) { .ch-list-3 { columns: 1; } }
@media (max-width: 760px) { .ch-list { columns: 1; } }
.ch-group { margin-bottom: 44px; }
.ch-group > .eyebrow { margin-bottom: 8px; }
.ch-card { display: grid; grid-template-columns: 70px 1fr; gap: 18px; padding-block: 24px; border-bottom: 1px solid var(--line); }
.ch-card .ch-n { font-size: 2.4rem; line-height: 1; color: var(--c); }
.ch-card h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 6px; }
.ch-line { font-family: var(--f-display); font-style: italic; font-size: 1.25rem; line-height: 1.35; margin-bottom: 8px; }
.ch-card .muted { max-width: 70ch; }

/* ---------- game cards ---------- */
.gm-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.gm-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.gm-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gm-card { position: relative; overflow: hidden; display: grid; gap: 8px; align-content: start; padding: 24px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: transform .25s, border-color .25s; }
.gm-card:hover { transform: translateY(-4px); border-color: var(--c); }
.gm-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 150px; height: 150px; border-radius: 50%; background: var(--c); opacity: .14; transition: transform .4s; }
.gm-card:hover::after { transform: scale(1.25); }
.gm-icon { font-size: 1.8rem; color: var(--c); line-height: 1; }
.gm-time { font-size: .78rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.gm-name { font-size: 1.5rem; }
.gm-tag { color: var(--muted); font-size: .95rem; }
.gm-about { color: var(--muted); }
.gm-chapter { font-size: .85rem; color: var(--gold-deep); }
.gm-play { color: var(--c); font-weight: 500; margin-top: 6px; }
.gm-card.is-large { padding: 32px; }
.gm-card.is-large .gm-name { font-size: 1.9rem; }
.played-line { margin-top: 24px; color: var(--muted); font-size: .92rem; }
@media (max-width: 960px) { .gm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gm-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .gm-grid, .gm-grid-2, .gm-grid-3 { grid-template-columns: 1fr; } }

/* ---------- results ---------- */
.res-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.res-card { display: grid; gap: 6px; align-content: start; padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--c); text-decoration: none; transition: transform .2s; }
.res-card:hover { transform: translateY(-3px); }
.res-card h3 { font-size: 1.35rem; }
.res-card p { color: var(--muted); font-size: .92rem; }
.res-score { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--c); font-weight: 500; }
@media (max-width: 860px) { .res-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .res-grid { grid-template-columns: 1fr; } }
.result-hero { overflow: hidden; padding-block: clamp(36px, 5vw, 64px); }
.result-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 80% 30%, var(--glow), transparent 70%); pointer-events: none; }
.result-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.result-grid > div { display: grid; gap: 16px; justify-items: start; min-width: 0; }
.result-hero .page-title { color: var(--c); }
.result-quote { margin: 4px 0; padding-left: 18px; border-left: 3px solid var(--c); font: italic 500 1.45rem/1.35 var(--f-display); }
.result-quote cite { display: block; font: 400 .85rem var(--f-body); color: var(--muted); margin-top: 6px; font-style: normal; }
.result-img { margin: 0; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.result-img img { display: block; width: 100%; }
.share-label { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.share-btn { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 8px 16px; font: 500 .9rem var(--f-body); text-decoration: none; cursor: pointer; }
.share-btn:hover { border-color: var(--gold); }
.share-btn.wa { background: #25D366; color: #06381b; border-color: transparent; }
@media (max-width: 860px) { .result-grid { grid-template-columns: 1fr; } }

/* ---------- game stage (played in games.js) ---------- */
.game-sec { padding-top: 8px; }
.stage { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(20px, 4vw, 40px); min-height: 440px; display: grid; gap: 20px; align-content: start; box-shadow: var(--shadow); }
.stage-mini { min-height: 0; }
.stage-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.stage h3 { font-size: 1.75rem; }
.prog { height: 6px; border-radius: 6px; background: var(--wash); overflow: hidden; }
.prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--gold), var(--rose)); transition: width .5s; }
.moment { font-family: var(--f-display); font-size: clamp(1.55rem, 3.4vw, 2.3rem); line-height: 1.25; text-align: center; padding: 34px 18px; border-radius: 22px; background: var(--wash); text-wrap: balance; animation: drift .7s ease; }
.moment.left { text-align: left; font-size: clamp(1.3rem, 2.6vw, 1.7rem); padding: 24px; }
.moment small { display: block; font-family: var(--f-body); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; }
.moment .q-hint { display: block; font-size: .65em; color: var(--muted); margin-top: 6px; }
@keyframes drift { from { opacity: .2; transform: translateY(-12px) rotate(-1deg); } }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choices.list { grid-template-columns: 1fr; }
.choice { border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 16px; padding: 14px 18px; font: 400 1rem/1.45 var(--f-body); cursor: pointer; text-align: left; transition: transform .2s, border-color .2s, background-color .3s; }
.choice:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--gold); }
.choice.big { text-align: center; font: 600 1.6rem/1.2 var(--f-display); padding: 18px; }
.choice.d { color: var(--teal); } .choice.f { color: var(--rose); }
.choice.d:hover:not(:disabled) { border-color: var(--teal); } .choice.f:hover:not(:disabled) { border-color: var(--rose); }
.choice:disabled { cursor: default; opacity: .45; }
.choice.picked { opacity: 1; border-color: var(--gold); background: var(--gold-soft); }
.choice b { font-weight: 600; }
.choice .sub { display: block; color: var(--muted); font-size: .92rem; }
.fb { display: grid; gap: 14px; justify-items: start; }
.feedback { border-left: 3px solid var(--c); padding: 4px 0 4px 16px; display: grid; gap: 6px; animation: drift .5s ease; }
.feedback b { font-weight: 600; color: var(--c); }
.feedback q, .feedback .said { font-family: var(--f-display); font-style: italic; font-size: 1.3rem; line-height: 1.35; }
.chain { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pill { font-size: .86rem; padding: 5px 12px; border-radius: 999px; background: var(--wash); color: var(--muted); line-height: 1.4; }
.pill.a { background: var(--teal-soft); color: var(--teal); }
.pill.r { background: var(--rose-soft); color: var(--rose); }
.pill.g { background: var(--gold-soft); color: var(--gold-deep); }
.arw { color: var(--gold-deep); }
.result { display: grid; gap: 16px; text-align: center; justify-items: center; padding-block: 8px; }
.result .num { font: 700 clamp(3.5rem, 8vw, 5rem)/1 var(--f-display); color: var(--gold-deep); }
.result h4 { font-size: clamp(1.7rem, 3.4vw, 2.2rem); }
.result q { font-family: var(--f-display); font-style: italic; font-size: 1.35rem; line-height: 1.35; max-width: 42ch; }
.result p { color: var(--muted); max-width: 56ch; }
.result .chain { justify-content: center; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.bars { display: grid; gap: 12px; width: 100%; max-width: 460px; text-align: left; }
.bar { display: grid; gap: 4px; }
.bar span { display: flex; justify-content: space-between; font-size: .92rem; font-variant-numeric: tabular-nums; }
.bar div { height: 10px; border-radius: 10px; background: var(--wash); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--c); transition: width .8s; }
.chat { display: grid; gap: 12px; max-height: 520px; overflow-y: auto; padding-right: 4px; align-content: start; }
.msg { max-width: 82%; padding: 12px 16px; border-radius: 18px; line-height: 1.55; animation: drift .45s ease; }
.msg small { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 2px; }
.msg.g { background: var(--teal-soft); justify-self: start; border-bottom-left-radius: 4px; }
.msg.g small { color: var(--teal); }
.msg.q { background: var(--rose-soft); justify-self: end; border-bottom-right-radius: 4px; }
.msg.q small { color: var(--rose); }
.msg p + p { margin-top: 8px; }
.typing { justify-self: start; color: var(--muted); font-style: italic; font-size: .92rem; }
.ask { display: flex; flex-wrap: wrap; gap: 8px; }
.ask button { border: 1px solid var(--rose); background: transparent; color: var(--rose); border-radius: 999px; padding: 8px 16px; font: 500 .95rem/1.4 var(--f-body); cursor: pointer; text-align: left; }
.ask button:hover { background: var(--rose-soft); }
.ask button.end { border-color: var(--gold-deep); color: var(--gold-deep); }
.ask button.end:hover { background: var(--gold-soft); }
@media (max-width: 560px) { .choices { grid-template-columns: 1fr; } .msg { max-width: 94%; } }

/* ---------- game info ---------- */
.game-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.game-info-grid > div { display: grid; gap: 14px; }
.howto { margin: 0; padding-left: 22px; display: grid; gap: 10px; color: var(--muted); }
.howto b { color: var(--ink); font-weight: 600; }
.from-book { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 30px; display: grid; gap: 12px; }
.from-book-chapter { font-weight: 500; }
.from-book blockquote { margin: 0; font: italic 500 1.4rem/1.35 var(--f-display); padding-left: 16px; border-left: 3px solid var(--gold); }
@media (max-width: 820px) { .game-info-grid { grid-template-columns: 1fr; } }

/* ---------- reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
.review { margin: 0; border-top: 2px solid var(--c); padding-top: 20px; display: grid; gap: 10px; align-content: start; text-decoration: none; }
.review blockquote { margin: 0; font: italic 500 1.35rem/1.38 var(--f-display); }
.review figcaption { font-weight: 500; }
.rv-title { font-weight: 600; }
.rv-source { color: var(--muted); font-weight: 400; font-size: .88rem; }
.stars { color: var(--gold-deep); letter-spacing: 3px; font-size: .9rem; }
@media (max-width: 700px) { .reviews { grid-template-columns: 1fr; } }

/* ---------- audience ---------- */
.aud { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 48px; }
.aud div { display: grid; gap: 8px; }
.aud h3 { font-size: 1.4rem; }
@media (max-width: 700px) { .aud { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 840px; }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 18px 44px 18px 0; font-weight: 500; font-size: 1.05rem; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 6px; top: 11px; font-size: 1.7rem; color: var(--gold-deep); transition: transform .3s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); padding-bottom: 18px; max-width: 70ch; }

/* ---------- author ---------- */
.author { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center; }
.portrait { position: relative; isolation: isolate; }
.portrait img { width: 100%; border-radius: 200px 200px 24px 24px; display: block; }
.portrait::before { content: ""; position: absolute; inset: -14px -14px 14px 14px; border: 1px solid var(--gold); border-radius: 200px 200px 24px 24px; z-index: -1; }
.author-copy { display: grid; gap: 16px; min-width: 0; }
.author-copy p { color: var(--muted); max-width: 64ch; }
@media (max-width: 760px) { .author { grid-template-columns: 1fr; } .portrait { max-width: 230px; } }

/* ---------- books ---------- */
.bk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.bk-card { display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 20px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); align-items: start; }
.bk-card.is-featured { border-color: var(--gold); }
.bk-cover { position: relative; aspect-ratio: 5/8; max-width: 100%; border-radius: 6px; overflow: hidden; box-shadow: 0 10px 22px -12px rgba(0,0,0,.45); }
.bk-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bk-cover-type { display: grid; align-content: space-between; padding: 10px; background: linear-gradient(160deg, #13213F, #2a3d6b); color: #F3E7C4; text-align: center; font-family: var(--f-display); }
.bk-type-top { font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; }
.bk-type-title { font-size: 1rem; font-weight: 700; line-height: 1.1; }
.bk-type-sub { font-size: .62rem; line-height: 1.2; }
.bk-lang-ribbon { position: absolute; top: 6px; right: -26px; transform: rotate(35deg); background: var(--gold); color: var(--on-gold); font-size: .62rem; padding: 2px 30px; z-index: 1; }
.bk-body { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.bk-meta { display: flex; gap: 10px; font-size: .78rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.bk-title { font-size: 1.35rem; }
.bk-sub { font-size: .88rem; color: var(--gold-deep); line-height: 1.4; }
.bk-about { font-size: .9rem; color: var(--muted); line-height: 1.55; }
.bk-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
@media (max-width: 1000px) { .bk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .bk-grid { grid-template-columns: 1fr; } .bk-card { grid-template-columns: 90px 1fr; } }

/* ---------- buy ---------- */
.buy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(22px, 4vw, 32px); display: grid; gap: 18px; align-content: start; justify-items: start; }
.panel > * { max-width: 100%; }
.panel-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; width: 100%; }
.covers { display: flex; gap: 14px; }
.covers img { width: 84px; border-radius: 6px; box-shadow: 0 8px 18px rgba(0,0,0,.18); }
.price { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.price s { color: var(--muted); }
.price b { font: 700 2.6rem/1 var(--f-display); color: var(--gold-deep); }
.steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; color: var(--muted); }
.steps li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; }
.steps li > span { width: 28px; height: 28px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-deep); display: grid; place-items: center; font-weight: 600; font-size: .85rem; }
.steps b { color: var(--ink); }
.formats { display: flex; gap: 6px; flex-wrap: wrap; }
.fmt { border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 999px; padding: 6px 14px; font: 500 .9rem var(--f-body); cursor: pointer; }
.fmt[aria-pressed="true"] { background: var(--teal-soft); color: var(--teal); border-color: transparent; }
.stores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
.stores a, .stores .na { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; font-size: .9rem; min-width: 0; }
.stores a span, .stores .na span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stores a:hover { border-color: var(--gold); }
.stores small { color: var(--muted); font-size: .74rem; flex: none; }
.stores .na { opacity: .45; }
.copyable { cursor: copy; border-bottom: 1px dashed var(--muted); }
@media (max-width: 860px) { .buy-grid { grid-template-columns: 1fr; } }
@media (max-width: 440px) { .stores { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- prose pages ---------- */
.prose-grid { display: grid; grid-template-columns: 1fr 320px; gap: 56px; align-items: start; }
.prose { display: grid; gap: 16px; max-width: 68ch; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-top: 12px; }
.prose p { color: var(--muted); }
.verse { margin: 8px 0; padding: 24px; border-radius: 20px; background: var(--wash); text-align: center; font: 600 1.35rem/1.6 var(--f-display); }
.is-alt .verse { background: var(--surface); }
.verse cite { display: block; font: 400 .85rem var(--f-body); color: var(--muted); margin-top: 8px; font-style: normal; }
.facts-card { position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 24px; display: grid; gap: 16px; }
.facts-card img { max-width: 180px; justify-self: center; }
.facts-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: .92rem; }
.facts-card dt { color: var(--muted); }
.facts-card dd { margin: 0; font-weight: 500; }
@media (max-width: 860px) { .prose-grid { grid-template-columns: 1fr; } .facts-card { position: static; } }

/* ---------- forms ---------- */
.form { display: grid; gap: 14px; width: 100%; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label, .form .label, .contact-list .label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 4px; }
.form input:not([type=radio]), .form textarea, .lead-card input { width: 100%; font: 400 1rem var(--f-body); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; }
.form input:focus, .form textarea:focus, .lead-card input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.form-error, .lead-error { color: var(--rose); font-size: .92rem; min-height: 1.2em; }
.hp { position: absolute; left: -9999px; }
.rate { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.rate input { position: absolute; opacity: 0; }
.rate label { font-size: 1.8rem; color: var(--line); cursor: pointer; margin: 0; line-height: 1; }
.rate input:checked ~ label, .rate label:hover, .rate label:hover ~ label { color: var(--gold-deep); }
.rate input:focus-visible + label { outline: 2px solid var(--gold-deep); }
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; align-items: start; }
.contact-list { display: grid; gap: 24px; }
.link-row { display: flex; flex-wrap: wrap; gap: 14px; }
.share-done { display: grid; gap: 10px; }
@media (max-width: 760px) { .contact-grid, .form-row { grid-template-columns: 1fr; } }

/* ---------- lead gate (after a game) ---------- */
.lead-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(8,14,32,.55); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); opacity: 0; transition: opacity .3s; overflow-y: auto; }
.lead-overlay.is-open { opacity: 1; }
.lead-card { width: min(460px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 30px; display: grid; gap: 8px; box-shadow: var(--shadow); transform: translateY(14px); transition: transform .35s; }
.lead-overlay.is-open .lead-card { transform: none; }
.lead-sym { font-size: 2rem; color: var(--gold-deep); line-height: 1; }
.lead-title { font-size: 1.9rem; }
.lead-text { color: var(--muted); margin-bottom: 6px; }
.lead-card label { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.lead-actions { display: grid; gap: 8px; margin-top: 6px; }
.lead-skip { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; text-decoration: underline; padding: 6px; }
.lead-note { font-size: .78rem; color: var(--muted); }

/* ---------- explore & footer ---------- */
.explore-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.explore-card { position: relative; display: grid; gap: 4px; padding: 20px 44px 20px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, transform .2s; }
.explore-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.explore-card b { font: 600 1.3rem var(--f-display); }
.explore-card span { color: var(--muted); font-size: .9rem; }
.explore-card i { position: absolute; right: 18px; top: 20px; color: var(--gold-deep); font-style: normal; }
@media (max-width: 900px) { .explore-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .explore-grid { grid-template-columns: 1fr; } }
.site-footer { border-top: 1px solid var(--line); padding-block: 56px calc(32px + env(safe-area-inset-bottom, 0px)); background: var(--bg); }
.footer-quote { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer-quote p { font: italic 500 clamp(1.6rem, 3vw, 2.2rem)/1.25 var(--f-display); }
.footer-quote em { color: var(--rose); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 28px; }
.footer-col { display: grid; gap: 6px; align-content: start; font-size: .92rem; }
.footer-col a { text-decoration: none; color: var(--muted); }
.footer-col a:hover { color: var(--ink); }
.footer-title { font: 600 1.15rem var(--f-display); color: var(--ink); margin-bottom: 4px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-top: 40px; font-size: .85rem; color: var(--muted); }
.footer-bottom a { color: inherit; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-col:first-child { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ==================================================================
   CINEMATIC LAYER — painted scenes, story sections, horizontal journey
================================================================== */
:root {
  --s-sky1: #8FC2B6; --s-sky2: #F6D9A6; --s-sky3: #F2AE84; --s-sun: #FFF1C9; --s-glow: #FFD27A;
  --s-far: #B7D3C5; --s-mid: #86B1A3; --s-near: #5B8C7F; --s-sil: #3A6A60; --s-water: #CBE6DC;
  --s-cup: #C9864F; --s-steam: rgba(255,255,255,.8); --s-mist: #FFF6E4; --s-path: #E8C99A; --s-stars: 0;
  --veil: linear-gradient(90deg, rgba(245,238,223,.94) 0%, rgba(245,238,223,.78) 38%, rgba(245,238,223,0) 72%);
  --veil-b: linear-gradient(0deg, var(--bg) 0%, rgba(245,238,223,0) 26%);
  --on-scene: #2F3B36;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --s-sky1: #060E24; --s-sky2: #102049; --s-sky3: #24396C; --s-sun: #F3E7C4; --s-glow: #F0C66E;
  --s-far: #1A2C57; --s-mid: #13244B; --s-near: #0D1A39; --s-sil: #070F26; --s-water: #1D3466;
  --s-cup: #B07A45; --s-steam: rgba(243,231,196,.55); --s-mist: #2A3E70; --s-path: #3A4C78; --s-stars: 1;
  --veil: linear-gradient(90deg, rgba(11,21,48,.93) 0%, rgba(11,21,48,.74) 38%, rgba(11,21,48,0) 72%);
  --veil-b: linear-gradient(0deg, var(--bg) 0%, rgba(11,21,48,0) 26%); --on-scene: #F3E7C4; } }
:root[data-theme="dark"] {
  --s-sky1: #060E24; --s-sky2: #102049; --s-sky3: #24396C; --s-sun: #F3E7C4; --s-glow: #F0C66E;
  --s-far: #1A2C57; --s-mid: #13244B; --s-near: #0D1A39; --s-sil: #070F26; --s-water: #1D3466;
  --s-cup: #B07A45; --s-steam: rgba(243,231,196,.55); --s-mist: #2A3E70; --s-path: #3A4C78; --s-stars: 1;
  --veil: linear-gradient(90deg, rgba(11,21,48,.93) 0%, rgba(11,21,48,.74) 38%, rgba(11,21,48,0) 72%);
  --veil-b: linear-gradient(0deg, var(--bg) 0%, rgba(11,21,48,0) 26%); --on-scene: #F3E7C4;
}
.only-night { display: none; }
:root[data-theme="dark"] .only-day { display: none; } :root[data-theme="dark"] .only-night { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .only-day { display: none; } :root:not([data-theme="light"]) .only-night { display: block; } }

.scene-art { position: absolute; inset: 0; overflow: hidden; }
.scene-art img, .scene-art svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.scene-art .stars { fill: #F3E7C4; opacity: var(--s-stars); }
.scene-art .stars circle { animation: twinkle 3.5s ease-in-out infinite; }
.scene-art .stars circle:nth-child(3n) { animation-delay: 1.2s; } .scene-art .stars circle:nth-child(4n) { animation-delay: 2.1s; }
@keyframes twinkle { 50% { opacity: .35; } }
.scene-art .steam path { stroke-dasharray: 90; animation: steam 3.2s ease-in-out infinite; }
.scene-art .steam path + path { animation-delay: 1.4s; }
@keyframes steam { 0% { stroke-dashoffset: 90; opacity: 0; } 30% { opacity: 1; } 100% { stroke-dashoffset: -90; opacity: 0; transform: translateY(-14px); } }
.scene-art .petals ellipse { animation: sway 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.scene-art .petals ellipse:nth-child(odd) { animation-duration: 8s; }
@keyframes sway { 50% { translate: 8px 14px; } }
.fx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ---------- cinematic hero ---------- */
.cine { position: relative; overflow: hidden; isolation: isolate; color: var(--on-scene); }
.cine::after { content: ""; position: absolute; inset: 0; background: var(--veil-b), var(--veil); z-index: 0; pointer-events: none; }
.cine > .scene-art { z-index: -1; }
.cine .wrap { position: relative; z-index: 1; width: 100%; }
.cine .lede, .cine .muted { color: color-mix(in srgb, var(--on-scene) 78%, transparent); }
.cine-hero { min-height: min(92vh, 860px); display: grid; align-items: center; padding-block: 64px 120px; }
.cine-hero .hero-copy { max-width: 620px; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; z-index: 2; translate: -50% 0; display: grid; justify-items: center; gap: 6px; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.scroll-cue i { width: 1px; height: 38px; background: linear-gradient(var(--gold-deep), transparent); animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.hero-title .word { display: inline-block; }
.js .hero-title .word { animation: rise 1.1s cubic-bezier(.2,.8,.2,1) both; }
.js .hero-title .f.word { animation-delay: .25s; } .js .hero-title .vs { animation: rise 1.1s .12s both; }
.js .hero-copy > :not(h1) { animation: fadeup 1s .5s both; }
@keyframes rise { from { opacity: 0; transform: translateY(40px) rotate(2deg); filter: blur(6px); } }
@keyframes fadeup { from { opacity: 0; transform: translateY(16px); } }

/* ---------- inner page hero with scene ---------- */
.cine-page { padding-block: clamp(56px, 8vw, 110px) clamp(56px, 7vw, 96px); min-height: 380px; display: grid; align-items: end; }
.cine-page .wrap { display: grid; gap: 14px; }
.cine-page .page-title { max-width: 14ch; }
.cine-page .crumbs ol { color: color-mix(in srgb, var(--on-scene) 70%, transparent); }

/* ---------- book band ---------- */
.book-band { display: grid; grid-template-columns: 300px 1fr 1fr; gap: 48px; align-items: center; }
.book-band .hero-book { max-width: 300px; }
.book-band-copy { display: grid; gap: 14px; }
@media (max-width: 980px) { .book-band { grid-template-columns: 1fr; } .book-band .hero-book { max-width: 220px; } }

/* ---------- reveal on scroll (only when JS runs) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- the conversation ---------- */
.convo { max-width: 760px; margin-inline: auto; display: grid; gap: 14px; }
.convo .line { max-width: 84%; padding: 14px 20px; border-radius: 22px; font-size: 1.08rem; line-height: 1.5; }
.convo .line small { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 2px; }
.convo .q { background: var(--rose-soft); justify-self: end; border-bottom-right-radius: 6px; }
.convo .q small { color: var(--rose); }
.convo .g { background: var(--teal-soft); justify-self: start; border-bottom-left-radius: 6px; }
.convo .g small { color: var(--teal); }
.convo .aside { justify-self: center; font: italic 500 1.2rem var(--f-display); color: var(--muted); text-align: center; padding: 6px 0; }

/* ---------- story scenes ---------- */
.story { position: relative; min-height: min(96vh, 900px); display: grid; align-items: center; padding-block: 90px; }
.story .story-copy { display: grid; gap: 18px; max-width: 560px; }
.story .chapter-tag { display: inline-flex; gap: 10px; align-items: center; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); }
.story .chapter-tag b { font: 700 2.4rem/1 var(--f-display); letter-spacing: 0; color: var(--c, var(--teal)); }
.story h2 { font-size: clamp(2.3rem, 5vw, 3.8rem); line-height: 1.04; }
.story h2 em { color: var(--c, var(--teal)); }
.story .line-quote { font: italic 500 clamp(1.3rem, 2.4vw, 1.7rem)/1.35 var(--f-display); padding-left: 18px; border-left: 3px solid var(--c, var(--teal)); }
.story-act { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.story-say { font: italic 500 1.35rem/1.35 var(--f-display); min-height: 1.4em; }
.tap-hint { font-size: .85rem; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; }
.tap-hint i { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 var(--gold); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px transparent; } }
.story[data-fx="ripples"] { cursor: crosshair; }
.story[data-fx="ripples"] .story-copy { cursor: auto; }
.choice-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.choice-pills button { border: 1px solid color-mix(in srgb, var(--on-scene) 30%, transparent); background: color-mix(in srgb, var(--bg) 70%, transparent); color: var(--on-scene); border-radius: 999px; padding: 10px 18px; font: 500 .98rem var(--f-body); cursor: pointer; backdrop-filter: blur(6px); }
.choice-pills button:hover, .choice-pills button[aria-pressed="true"] { border-color: var(--gold); background: var(--gold-soft); color: var(--gold-deep); }
.story .legs { position: absolute; right: 8%; bottom: 10%; z-index: 1; width: min(200px, 28vw); }
@media (max-width: 760px) {
  .story { align-items: end; min-height: 0; padding-block: 220px 64px; }
  .cine::after { background: linear-gradient(0deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 88%, transparent) 55%, transparent 100%); }
  .cine-hero { align-items: end; padding-block: 260px 90px; min-height: 0; }
  .story .legs { right: 6%; top: 40px; bottom: auto; width: 120px; }
}

/* ---------- horizontal journey ---------- */
.hjourney { position: relative; }
.hjourney .h-head { padding-top: clamp(60px, 8vw, 100px); }
.h-viewport { position: relative; }
.h-track { display: flex; gap: 24px; padding: 8px max(20px, calc((100vw - 1140px) / 2 + 20px)) 40px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.h-card { flex: 0 0 min(420px, 82vw); scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 30px; display: grid; gap: 12px; align-content: start; position: relative; overflow: hidden; min-height: 340px; }
.h-card::before { content: attr(data-n); position: absolute; right: 18px; top: -8px; font: 700 8rem/1 var(--f-display); color: var(--c); opacity: .12; }
.h-card small { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c); font-weight: 500; }
.h-card h3 { font-size: 1.8rem; }
.h-card .chs { margin-top: auto; display: grid; gap: 4px; font-size: .9rem; color: var(--muted); padding-top: 12px; border-top: 1px solid var(--line); }
.h-progress { height: 3px; background: var(--line); margin: 0 auto; max-width: 1100px; border-radius: 3px; overflow: hidden; }
.h-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--gold), var(--rose)); }
.h-nav { display: flex; gap: 10px; justify-content: flex-end; }
.is-pinned .h-viewport { height: calc(var(--h-len, 300vh)); }
.h-sticky { display: grid; grid-template-columns: 100%; min-width: 0; }
.h-sticky > .wrap { width: 100%; }
.h-track { min-width: 0; }
.is-pinned .h-sticky { position: sticky; top: 68px; height: calc(100vh - 68px); display: grid; align-content: center; gap: 8px; overflow: hidden; }
.hjourney .h-sticky .head { margin-bottom: 18px; }
.is-pinned .h-sticky .head { margin-bottom: 10px; }
.is-pinned .h-track { overflow: visible; scroll-snap-type: none; will-change: transform; }

/* ---------- illustrated game cards ---------- */
.gm-card .gm-art { height: 110px; margin: -24px -24px 6px; background: linear-gradient(160deg, var(--c), color-mix(in srgb, var(--c) 30%, var(--surface))); position: relative; overflow: hidden; opacity: .9; }
.gm-card.is-large .gm-art { margin: -32px -32px 8px; height: 150px; }
.gm-art span { position: absolute; border-radius: 50%; background: rgba(255,255,255,.35); }
.gm-art .a1 { width: 120px; height: 120px; left: -20px; bottom: -50px; } .gm-art .a2 { width: 60px; height: 60px; right: 30px; top: 18px; } .gm-art .a3 { width: 16px; height: 16px; right: 120px; top: 60px; background: rgba(255,255,255,.7); }
.gm-card .gm-icon { position: absolute; top: 20px; left: 24px; z-index: 1; color: #fff; font-size: 2.2rem; }
.gm-card.is-large .gm-icon { top: 28px; left: 32px; font-size: 2.8rem; }
.gm-card:hover .gm-art .a2 { transform: scale(1.3); } .gm-art span { transition: transform .5s; }

.gm-card::after { display: none; }
.gm-card .gm-time { margin-top: 2px; }
.cine-hero .scene-art img { object-position: 72% 100%; }

/* ---------- game polish ---------- */
.swipe-zone { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
.swipe-side { font: 600 1.05rem var(--f-display); letter-spacing: .02em; opacity: .5; transition: opacity .2s, transform .2s; white-space: nowrap; }
.swipe-side.d { color: var(--teal); } .swipe-side.f { color: var(--rose); }
.lean-d .swipe-side.d, .lean-f .swipe-side.f { opacity: 1; transform: scale(1.12); }
.swipe-card { cursor: grab; touch-action: pan-y; user-select: none; box-shadow: var(--shadow); background: linear-gradient(160deg, var(--surface), var(--wash)); border: 1px solid var(--line); transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .35s; }
.swipe-card.dragging { cursor: grabbing; transition: none; }
.swipe-card.fly-d { transform: translateX(-28px) rotate(-2.5deg); border-color: var(--teal); }
.swipe-card.fly-f { transform: translateX(28px) rotate(2.5deg); border-color: var(--rose); }
.lean-d .swipe-card { border-color: var(--teal); } .lean-f .swipe-card { border-color: var(--rose); }
@media (max-width: 560px) { .swipe-zone { grid-template-columns: 1fr; } .swipe-side { display: none; } }
.ring { width: 180px; height: 180px; }
.ring circle { transition: stroke-dasharray .9s; }
.ring-n { font: 700 34px var(--f-display); fill: var(--ink); }
.ring-l { font: 500 11px var(--f-body); fill: var(--muted); letter-spacing: .04em; }
.cup-ico { display: inline-block; vertical-align: -6px; margin-right: 10px; color: var(--gold-deep); }
.cup-ico svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cup-ico .st { stroke-dasharray: 14; animation: cupsteam 2.4s ease-in-out infinite; opacity: .7; }
@keyframes cupsteam { 0% { stroke-dashoffset: 14; opacity: 0; } 40% { opacity: .8; } 100% { stroke-dashoffset: -14; opacity: 0; } }
.game-sec { margin-top: -70px; position: relative; z-index: 2; }

/* ---------- author signals ---------- */
.byline { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--muted); margin-top: 4px; }
.cine .byline { color: color-mix(in srgb, var(--on-scene) 75%, transparent); }
.byline img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 1px solid var(--gold); }
.byline a { color: inherit; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--gold); }
.author-card { display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: start; padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); margin-bottom: 40px; }
.author-card img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.author-card > div { display: grid; gap: 6px; min-width: 0; }
.author-card-name { font: 700 1.5rem var(--f-display); }
.author-card-name a { text-decoration: none; }
.author-card .link-row a { color: var(--gold-deep); }
@media (max-width: 520px) { .author-card { grid-template-columns: 1fr; } }

/* ---------- author page: recognition and expertise ---------- */
.creds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.creds > div { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 24px 26px; }
.creds h3 { font-size: 1.35rem; margin-bottom: 10px; color: var(--gold-deep); }
.creds ul { margin: 0; padding-left: 18px; color: var(--muted); display: grid; gap: 6px; }
.creds a { color: var(--ink); }
@media (max-width: 700px) { .creds { grid-template-columns: 1fr; } }
