:root {
  --bg: #0d0a14; --bg2: #15101f; --card: #1c1628; --line: #2c2340; --ink: #f4ecdf; --soft: #a99fbd;
  --gold: #f0b54c; --gold2: #ffd98a; --clay: #e2603b; --you: #2a2140; --good: #7fd19a; --bad: #ff8466;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --nav: 60px; color-scheme: dark;
}
:root.light { --bg: #f6efe2; --bg2: #efe5d2; --card: #fffaf0; --line: #e3d6bf; --ink: #231c14; --soft: #6c5f4f; --gold: #a86f10; --gold2: #8a5a0c; --clay: #b8462a; --you: #efe3cc; --good: #2f7a45; --bad: #b8462a; color-scheme: light; }
@media (prefers-color-scheme: light) { :root.auto { --bg: #f6efe2; --bg2: #efe5d2; --card: #fffaf0; --line: #e3d6bf; --ink: #231c14; --soft: #6c5f4f; --gold: #a86f10; --gold2: #8a5a0c; --clay: #b8462a; --you: #efe3cc; --good: #2f7a45; --bad: #b8462a; color-scheme: light; } }

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--sans); -webkit-text-size-adjust: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; }
.muted { color: var(--soft); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 13px 24px; background: linear-gradient(180deg, #ffd98a, #f0b54c); color: #2a1606; font-weight: 700; min-height: 48px; text-decoration: none; box-shadow: 0 6px 24px rgb(240 181 76 / .25); }
.btn.alt { background: rgb(255 255 255 / .06); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.sm { min-height: 38px; padding: 8px 16px; font-size: 14px; }
.btn:disabled { opacity: .45; cursor: default; }
.link { background: none; border: 0; color: var(--gold); padding: 8px 0; text-decoration: underline; text-underline-offset: 3px; }
.wrapw { width: min(1240px, 100%); margin: 0 auto; padding: 0 20px; }

/* Top bar and phone tabs */
.nav { position: sticky; top: 0; z-index: 30; height: var(--nav); display: flex; align-items: center; gap: 18px; padding: 0 20px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.nav .logo { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 22px; font-weight: 700; letter-spacing: .5px; background: none; border: 0; padding: 0; }
.nav .logo svg { width: 30px; height: 30px; }
.nav .links { display: flex; gap: 4px; }
.nav .links button { background: none; border: 0; padding: 8px 12px; border-radius: 999px; color: var(--soft); font-weight: 600; }
.nav .links button[aria-current="page"] { color: var(--ink); background: rgb(255 255 255 / .06); }
.nav .grow { flex: 1; }
.tabs-phone { display: none; }
@media (max-width: 720px) {
  .nav .links { display: none; }
  .tabs-phone { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .tabs-phone button { flex: 1; background: none; border: 0; padding: 8px 0 7px; font-size: 11px; color: var(--soft); display: flex; flex-direction: column; align-items: center; gap: 2px; }
  .tabs-phone button span { font-size: 20px; line-height: 1; }
  .tabs-phone button[aria-current="page"] { color: var(--gold); }
  body.has-tabs main { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}

/* Home: hero with a moving wall of stories */
.hero { --bg: #0d0a14; --ink: #f4ecdf; --soft: #cbc1dc; --gold: #f0b54c; --gold2: #ffd98a; --line: #2c2340; color: var(--ink); background: var(--bg); color-scheme: dark; position: relative; min-height: min(92vh, 860px); display: grid; place-items: center; overflow: hidden; isolation: isolate; }
.wall { position: absolute; inset: -10% -20%; display: flex; flex-direction: column; gap: 14px; transform: perspective(1200px) rotateX(18deg) rotateZ(-6deg) scale(1.1); z-index: -2; opacity: .9; }
.wall .row { display: flex; gap: 14px; width: max-content; animation: slide 90s linear infinite; }
.wall .row:nth-child(2) { animation-direction: reverse; animation-duration: 110s; }
.wall .row:nth-child(3) { animation-duration: 130s; }
.wall .tile { width: 180px; aspect-ratio: 3/4; border-radius: 14px; overflow: hidden; flex: 0 0 auto; }
.wall .tile svg { width: 100%; height: 100%; display: block; }
.wall .tile svg * { animation: none !important; } /* the wall itself moves; 48 animated paintings would be heavy on phones */
@keyframes slide { to { transform: translateX(-50%); } }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 48%, color-mix(in srgb, var(--bg) 78%, transparent) 0%, color-mix(in srgb, var(--bg) 55%, transparent) 45%, color-mix(in srgb, var(--bg) 20%, transparent) 75%), linear-gradient(180deg, transparent 70%, var(--bg)); }
.hero .sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-in { text-align: center; padding: 40px 20px 60px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.hero-in .mark { width: 84px; height: 84px; filter: drop-shadow(0 0 24px rgb(240 181 76 / .5)); }
.hero h1 { font-size: clamp(54px, 13vw, 132px); line-height: .92; letter-spacing: -2px; background: linear-gradient(180deg, #fff6e2 20%, var(--gold) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .tag { font-family: var(--serif); font-size: clamp(20px, 3.4vw, 30px); margin: 0; }
.hero .sub { color: var(--soft); max-width: 34em; margin: 0; font-size: 17px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.typed { font-family: var(--serif); font-style: italic; color: var(--gold2); min-height: 1.6em; font-size: 18px; }
.typed::after { content: '|'; animation: caret 1s steps(1) infinite; margin-left: 2px; }
@keyframes caret { 50% { opacity: 0; } }

.section { padding: 56px 0; }
.section h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 8px; }
.section .lead { color: var(--soft); margin: 0 0 24px; max-width: 40em; }
.shelf-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }

/* Demo */
.demo { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
@media (max-width: 860px) { .demo { grid-template-columns: 1fr; } }
.demo-card { background: var(--card); border-radius: 22px; padding: 22px; box-shadow: inset 0 0 0 1px var(--line), 0 30px 80px rgb(0 0 0 / .35); min-height: 330px; display: flex; flex-direction: column; gap: 12px; }
.demo-card .p { font-size: 18px; }
.steps { display: grid; gap: 14px; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step b { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #f0b54c; color: #2a1606; font-family: var(--serif); }
.step h3 { font-size: 20px; }
.step p { margin: 4px 0 0; color: var(--soft); }

/* Lands */
.lands { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
@media (max-width: 1000px) { .lands { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .lands { grid-template-columns: repeat(2, 1fr); } }
.landt { position: relative; border: 0; padding: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 3/4; text-align: left; background: var(--card); }
.landt svg, .landt .lp { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.landt:hover svg, .landt:hover .lp { transform: scale(1.07); }
.landt::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgb(0 0 0 / .82)); }
.landt span { z-index: 1; }
.landt em { display: block; font-style: normal; font-size: 13px; line-height: 1.35; color: #e8dfcf; margin-top: 4px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .4s ease, opacity .4s ease; }
.landt:hover em, .landt:focus-visible em { max-height: 6em; opacity: 1; }
.landt i { display: block; font-style: normal; font-size: 12px; font-weight: 700; color: var(--gold2); margin-top: 6px; }
@media (hover: none) { .landt em { max-height: none; opacity: 1; } }
.landt span { position: absolute; left: 12px; right: 12px; bottom: 12px; color: #fff; }
.landt small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--gold2); font-weight: 700; }
.landt strong { font-family: var(--serif); font-size: 18px; line-height: 1.15; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
@media (max-width: 560px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 230px); gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.scroller > * { scroll-snap-align: start; }
.card { background: var(--card); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; box-shadow: inset 0 0 0 1px var(--line); transition: transform .25s ease, box-shadow .25s ease; text-align: left; border: 0; padding: 0; }
.card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--gold), 0 18px 40px rgb(0 0 0 / .35); }
.card .art { position: relative; aspect-ratio: 3/4; }
.card .art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.card .badge { position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 999px; background: rgb(0 0 0 / .55); color: var(--gold2); backdrop-filter: blur(6px); }
.card .txt { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card h3 { font-size: 17px; line-height: 1.2; }
.card .meta { font-size: 12px; color: var(--gold); font-weight: 600; }
.card p { margin: 0; font-size: 13.5px; color: var(--soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .by { font-size: 12px; color: var(--soft); margin-top: auto; padding-top: 6px; display: flex; justify-content: space-between; align-items: center; }
.card .go { font-size: 12px; font-weight: 700; color: var(--gold); }
@media (max-width: 560px) { .card p { display: none; } .card h3 { font-size: 15px; } .card .txt { padding: 10px 11px 12px; } }

/* Discover */
.disc-head { padding: 28px 0 8px; display: flex; flex-direction: column; gap: 14px; }
.search { width: 100%; max-width: 520px; padding: 13px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; border: 1.5px solid var(--line); background: transparent; border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600; color: var(--soft); text-transform: uppercase; letter-spacing: .04em; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.toolbar select { padding: 8px 12px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card); }
.empty { padding: 40px 0; text-align: center; color: var(--soft); }

/* Scenario page */
.sc { display: grid; grid-template-columns: 360px 1fr; gap: 36px; padding: 36px 0 56px; align-items: start; }
@media (max-width: 820px) { .sc { grid-template-columns: 1fr; gap: 20px; padding-top: 0; } .sc .art { margin: 0 -20px; border-radius: 0 !important; aspect-ratio: 4/3 !important; } }
.sc .art { border-radius: 22px; overflow: hidden; aspect-ratio: 3/4; position: relative; box-shadow: 0 30px 80px rgb(0 0 0 / .4); }
.sc .art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sc h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.02; }
.sc .hook { font-family: var(--serif); font-size: 21px; margin: 14px 0; }
.sc .tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 20px; }
.sc .tags span { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: rgb(255 255 255 / .06); box-shadow: inset 0 0 0 1px var(--line); }
.setup { background: var(--card); border-radius: 20px; padding: 20px; box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 14px; max-width: 560px; }
.name { width: 100%; padding: 13px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg2); font-size: 17px; }
.gifts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gift { text-align: left; border: 1.5px solid var(--line); background: var(--bg2); border-radius: 14px; padding: 10px 12px; }
.gift b { display: block; text-transform: capitalize; }
.gift span { font-size: 12.5px; color: var(--soft); }
.gift[aria-pressed="true"], .landpick[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1000px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } .home .plans { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px 2px 10px; } .home .plans > * { scroll-snap-align: center; } }
.plan { background: var(--card); border-radius: 20px; padding: 22px; box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 10px; position: relative; }
.plan.best { box-shadow: inset 0 0 0 2px var(--gold), 0 20px 60px rgb(240 181 76 / .15); }
.plan .ribbon { position: absolute; top: -11px; right: 18px; background: var(--gold); color: #2a1606; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px; letter-spacing: .06em; }
.plan h3 { font-size: 24px; }
.plan .price { font-family: var(--serif); font-size: 38px; font-weight: 700; }
.plan .price small { font-family: var(--sans); font-size: 14px; color: var(--soft); font-weight: 500; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; font-size: 14.5px; }
.plan li::before { content: '✦ '; color: var(--gold); }
.plan .btn { margin-top: auto; }
.note { font-size: 13px; color: var(--soft); }

.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--soft); font-size: 14px; display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; gap: 16px; }
.foot a { text-decoration: none; }

/* Play */
.play { display: flex; flex-direction: column; min-height: calc(100dvh - var(--nav)); width: min(760px, 100%); margin: 0 auto; }
.head { position: sticky; top: var(--nav); z-index: 5; background: var(--bg); }
.banner { position: relative; height: 92px; overflow: hidden; border-radius: 0 0 18px 18px; }
.banner svg { position: absolute; left: 0; width: 100%; height: 300%; top: -120%; }
.banner .t { position: absolute; left: 16px; bottom: 10px; right: 60px; color: #fff; }
.banner .t b { font-family: var(--serif); font-size: 20px; display: block; line-height: 1.1; text-shadow: 0 2px 10px #000; }
.banner .t span { font-size: 12px; opacity: .85; }
.banner .icon { position: absolute; right: 8px; bottom: 8px; color: #fff; background: rgb(0 0 0 / .35); }
.icon { width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; font-size: 20px; }
.stats { display: flex; justify-content: center; align-items: center; gap: 16px; padding: 8px 12px; font-size: 13px; color: var(--soft); border-bottom: 1px solid var(--line); }
.stats .hp { color: var(--bad); letter-spacing: 1px; font-size: 14px; }
.story { flex: 1; padding: 20px 20px 8px; display: flex; flex-direction: column; gap: 16px; }
.p { font-family: var(--serif); font-size: 19px; line-height: 1.62; white-space: pre-wrap; margin: 0; }
.p.new { animation: appear .6s ease; }
@keyframes appear { from { opacity: 0; transform: translateY(6px); } }
.you { align-self: flex-end; max-width: 85%; background: var(--you); border-radius: 18px 18px 4px 18px; padding: 10px 14px; font-size: 15px; }
.you::before { content: 'You: '; color: var(--soft); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -4px; }
.pill { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.pill.good { color: var(--good); } .pill.bad { color: var(--bad); } .pill.gold { color: var(--gold); font-weight: 700; }
.thinking { font-family: var(--serif); font-style: italic; color: var(--soft); }
.thinking i { animation: blink 1.2s infinite; font-style: normal; } .thinking i:nth-child(2) { animation-delay: .2s; } .thinking i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
.err { box-shadow: inset 0 0 0 1.5px var(--bad); border-radius: 14px; padding: 12px 14px; font-size: 15px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.dock { position: sticky; bottom: 0; background: var(--bg); border-top: 1px solid var(--line); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; }
.choices { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.choices::-webkit-scrollbar { display: none; }
.choice { flex: 0 0 auto; max-width: 80%; border: 1.5px solid var(--line); background: var(--card); border-radius: 999px; padding: 9px 14px; font-size: 14px; text-align: left; }
.say { display: flex; gap: 8px; align-items: flex-end; }
.say textarea { flex: 1; resize: none; border-radius: 22px; border: 1.5px solid var(--line); background: var(--card); padding: 11px 16px; min-height: 48px; max-height: 140px; font-size: 16px; line-height: 1.4; }
.send { width: 48px; height: 48px; border-radius: 50%; border: 0; background: #f0b54c; color: #2a1606; font-size: 20px; flex: 0 0 auto; }
.send:disabled { opacity: .4; }
.over { text-align: center; padding: 8px 0 4px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
body.playing .tabs-phone { display: none; }
body.playing main { padding-bottom: 0 !important; }

/* Sheet */
.scrim { position: fixed; inset: 0; background: rgb(0 0 0 / .5); z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.sheet { position: relative; width: min(720px, 100%); max-height: 88dvh; overflow: auto; background: var(--bg2); border-radius: 22px 22px 0 0; padding: 8px 20px calc(24px + env(safe-area-inset-bottom)); }
.sheet .x { position: absolute; top: 6px; right: 8px; }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 4px auto 10px; }
.stabs { display: flex; gap: 6px; margin: 0 48px 14px 0; }
.stabs button { flex: 1; border: 0; border-radius: 999px; padding: 10px; background: var(--card); }
.stabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.sheet h3 { font-size: 18px; margin: 18px 0 8px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stat { background: var(--card); border-radius: 12px; padding: 10px 6px; text-align: center; }
.stat b { display: block; font-size: 22px; font-family: var(--serif); }
.stat span { font-size: 12px; color: var(--soft); text-transform: capitalize; }
.sheet ul { margin: 0; padding-left: 20px; }
.sheet li { margin: 4px 0; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select { padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); }
.row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

@media (prefers-reduced-motion: reduce) { .wall .row, .typed::after, .thinking i, .p.new { animation: none !important; } }
.grow { flex: 1; }
[hidden] { display: none !important; }
.btn { white-space: nowrap; }
@media (max-width: 720px) {
  .nav .cont { display: none; }
  .card .by span:first-child { display: none; }
  .card .by { justify-content: flex-end; }
  body.playing .nav { display: none; }
  body.playing .head { top: 0; }
}

@media (max-height: 500px) {
  body.playing .nav { display: none; }
  body.playing .head { top: 0; }
  .banner { height: 54px; }
  .banner .t b { font-size: 17px; }
  .banner .t span { display: none; }
  .stats { padding: 4px 12px; }
  .hero { min-height: 100vh; }
}

/* ---------- Home: nine sections ---------- */
.kick { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.center { display: flex; justify-content: center; margin-top: 22px; }
.scrollcue { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); background: none; border: 0; color: var(--soft); font-size: 13px; letter-spacing: .08em; animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { 50% { transform: translate(-50%, 6px); opacity: .6; } }
.home .section h2 { text-wrap: balance; }
@media (max-width: 720px) { .home .section { text-align: center; } .home .section .lead { margin-left: auto; margin-right: auto; } .shelf-head { flex-direction: column; align-items: center; } }

/* 2. A turn you can play */
.turn { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 920px) { .turn { grid-template-columns: 1fr; } }
.beats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 6px 0 22px; text-align: left; }
.beats b { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #f0b54c; color: #2a1606; font-family: var(--serif); margin-bottom: 8px; }
.beats h3 { font-size: 18px; } .beats p { margin: 4px 0 0; color: var(--soft); font-size: 14px; }
@media (max-width: 560px) { .beats { grid-template-columns: 1fr; } .beats > div { display: grid; grid-template-columns: 32px 1fr; column-gap: 12px; } .beats b { grid-row: span 2; margin: 0; } }
.turn-art { width: 100%; max-height: 300px; object-fit: cover; object-position: 50% 40%; border-radius: 20px; display: block; }
@media (max-width: 920px) { .turn-art { display: none; } }
.tcard { background: var(--card); border-radius: 22px; padding: 22px; box-shadow: inset 0 0 0 1px var(--line), 0 30px 80px rgb(0 0 0 / .3); display: flex; flex-direction: column; gap: 14px; text-align: left; }
.thead { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; font-weight: 700; color: var(--gold); }
.tq { margin: 0; font-weight: 700; }
.tchoices { display: grid; gap: 8px; }
.tchoices button { text-align: left; border: 1.5px solid var(--line); background: var(--bg2); border-radius: 14px; padding: 12px 14px; display: flex; justify-content: space-between; gap: 10px; align-items: center; transition: border-color .2s, transform .2s; }
.tchoices button:hover:not(:disabled) { border-color: var(--gold); transform: translateX(3px); }
.tchoices button small { color: var(--gold); font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: .06em; white-space: nowrap; }
.tchoices button:disabled:not(.on) { opacity: .45; }
.tchoices button.on { border-color: var(--gold); }
.troll { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: start; min-height: 120px; }
.d20 { position: relative; width: 76px; height: 76px; }
.d20 svg { width: 100%; height: 100%; fill: color-mix(in srgb, var(--gold) 16%, var(--card)); stroke: var(--gold); stroke-width: 2.2; stroke-linejoin: round; }
.d20 svg .e { fill: none; stroke-width: 1.2; opacity: .7; }
.d20 b { position: absolute; inset: 0; display: grid; place-items: center; padding-top: 6px; font-family: var(--serif); font-size: 22px; color: var(--ink); }
.d20.rolling svg { animation: roll .35s linear infinite; }
@keyframes roll { to { transform: rotate(360deg); } }
.d20[data-k="great"] svg { fill: color-mix(in srgb, var(--good) 30%, var(--card)); }
.d20[data-k="bad"] svg { fill: color-mix(in srgb, var(--bad) 30%, var(--card)); }
.tout { display: flex; flex-direction: column; gap: 10px; }
.tout .p { font-size: 17px; animation: fadeup .5s ease; }
.tout .row { margin-top: 0; }
.pill.warn { color: var(--bad); }
@keyframes fadeup { from { opacity: 0; transform: translateY(6px); } }

/* 3. Moods */
.moods { background: var(--bg2); text-align: center; }
.moods .mcard { text-align: left; }
.mood-chips { justify-content: center; margin: 4px 0 20px; }
@media (max-width: 720px) { .mood-chips { justify-content: flex-start; } }
.mgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 920px) { .mgrid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; } .mgrid > * { scroll-snap-align: start; } }
@media (min-width: 561px) and (max-width: 920px) { .mgrid { grid-auto-columns: 40%; } }
.mcard { position: relative; border: 0; padding: 0; border-radius: 18px; overflow: hidden; aspect-ratio: 3/4; text-align: left; background: var(--card); animation: fadeup .45s ease both; }
.mcard svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .7s ease; }
.mcard:hover svg { transform: scale(1.05); }
.mcard::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgb(0 0 0 / .85)); }
.mcard span { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 14px; color: #fff; display: flex; flex-direction: column; gap: 4px; }
.mcard small { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #ffd98a; }
.mcard strong { font-family: var(--serif); font-size: 21px; line-height: 1.12; }
.mcard em { font-style: normal; font-size: 13.5px; color: #e8dfcf; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mcard b { font-size: 12px; color: #ffd98a; margin-top: 4px; }

/* 5. Behind the storyteller */
.behind { --bg: #0d0a14; --card: #1c1628; --ink: #f4ecdf; --soft: #cbc1dc; --line: #2c2340; --gold: #f0b54c; background: radial-gradient(ellipse at 20% 50%, #2a1a10 0%, #0d0a14 60%); color: var(--ink); }
.behind-in { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 44px; align-items: center; }
@media (max-width: 920px) { .behind-in { grid-template-columns: 1fr; } }
.behind-art { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 24px; box-shadow: 0 30px 90px rgb(240 140 40 / .25); animation: glow 6s ease-in-out infinite; }
@media (max-width: 920px) { .behind-art { aspect-ratio: 16/10; max-height: 340px; } }
@keyframes glow { 50% { box-shadow: 0 30px 110px rgb(240 160 60 / .45); } }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; text-align: left; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } }
.facts > div { padding-left: 14px; border-left: 2px solid var(--gold); }
.facts h3 { font-size: 18px; } .facts p { margin: 4px 0 0; color: var(--soft); font-size: 14.5px; }

/* 6. Play anywhere */
.phones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 8px 0 0; }
@media (max-width: 920px) { .phones { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; } .phones > * { scroll-snap-align: center; } }
@media (min-width: 561px) and (max-width: 920px) { .phones { grid-auto-columns: 46%; } }
.phones figure { margin: 0; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.phones figcaption { font-weight: 700; display: flex; gap: 8px; align-items: center; }
.soon { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold); }
.ph { width: 100%; max-width: 300px; height: 300px; border-radius: 32px; padding: 26px 14px 14px; display: flex; flex-direction: column; gap: 8px; justify-content: flex-end; box-shadow: inset 0 0 0 8px #0b0910, 0 24px 60px rgb(0 0 0 / .3); position: relative; text-align: left; }
.ph::before { content: ''; position: absolute; top: 12px; left: 50%; width: 70px; height: 6px; border-radius: 6px; background: #0b0910; transform: translateX(-50%); }
.ph.web { background: #15101f; } .ph.wa { background: #0b141a; } .ph.js { background: linear-gradient(180deg, #1a1430, #120e20); }
.ph .b { max-width: 86%; padding: 9px 12px; border-radius: 16px; font-size: 13.5px; line-height: 1.4; color: #f4ecdf; opacity: 0; transform: translateY(10px); }
.phones.go .b { animation: pop .45s ease forwards; animation-delay: calc(var(--i) * .9s + .2s); }
@keyframes pop { to { opacity: 1; transform: none; } }
.ph .b.s { background: #2a2140; align-self: flex-start; border-bottom-left-radius: 4px; font-family: var(--serif); }
.ph .b.y { background: #f0b54c; color: #2a1606; align-self: flex-end; border-bottom-right-radius: 4px; font-weight: 600; }
.ph.wa .b.s { background: #202c33; } .ph.wa .b.y { background: #005c4b; color: #e9fdf7; }
.ph.js .b.y { background: #7c5cff; color: #fff; }

/* 7. Make your own */
.make { background: var(--bg2); }
.make-in { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: center; }
@media (max-width: 920px) { .make-in { grid-template-columns: 1fr; } .make-in img { order: -1; } }
.make-art { width: 100%; aspect-ratio: 3/4; max-height: 520px; object-fit: cover; border-radius: 24px; }
@media (max-width: 920px) { .make-art { aspect-ratio: 16/10; max-height: 320px; } }
.ticks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; text-align: left; }
.ticks li { padding-left: 28px; position: relative; } .ticks li::before { content: '✦'; position: absolute; left: 0; color: var(--gold); }
@media (max-width: 720px) { .ticks { max-width: 26em; margin-left: auto; margin-right: auto; } }

/* 9. Finale */
.finale { position: relative; overflow: hidden; isolation: isolate; min-height: min(80vh, 640px); display: grid; place-items: center; text-align: center; color: #f4ecdf; background: #0d0a14; }
.finale .pan { position: absolute; inset: 0; z-index: -2; }
.finale .pan img { width: 120%; height: 100%; object-fit: cover; animation: panw 40s ease-in-out infinite alternate; }
@keyframes panw { from { transform: translateX(0); } to { transform: translateX(-16.6%); } }
.finale::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 50%, rgb(13 10 20 / .72), rgb(13 10 20 / .35) 70%), linear-gradient(180deg, rgb(13 10 20 / .6), transparent 25%, transparent 75%, #0d0a14); }
.finale-in { padding: 60px 20px; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.finale h2 { font-size: clamp(34px, 6vw, 68px); line-height: 1.02; text-shadow: 0 4px 30px #000; }
.finale p { margin: 0; color: #e8dfcf; font-size: 18px; max-width: 30em; }
.finale .cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.finale .btn.alt { color: #f4ecdf; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .35); background: rgb(0 0 0 / .3); }
@media (prefers-reduced-motion: reduce) { .finale .pan img, .scrollcue, .behind-art, .d20.rolling svg { animation: none !important; } .phones .b { opacity: 1; transform: none; animation: none !important; } }
@media (max-width: 720px) { .foot { text-align: center; justify-content: center; } .foot nav { justify-content: center; } }
.section.wrapw { padding-left: 20px; padding-right: 20px; }
