/* web/style.css : a short-drama poster you can play. Black, gold, red; green when he wins. Phone first. */
:root {
  --ink: #0a0806; --coal: #14100a; --line: #4a3716; --gold: #f5c451; --gold-deep: #c8922b; --red: #e3283f; --green: #33d17a;
  --text: #f6eedc; --dim: #b3a384; --paper: #f1e7d0;
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --top: max(8px, env(safe-area-inset-top)); --bottom: max(12px, env(safe-area-inset-bottom));
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #000; color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow: hidden; overscroll-behavior: none; }
#app { height: 100dvh; }
h1, h2, h3, p { margin: 0; }
h2, h3 { font-family: var(--serif); }
strong { color: var(--gold); font-weight: 800; }
.aside { color: var(--dim); font-size: .88em; }
.ghost { visibility: hidden; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { opacity: .45; cursor: default; }
body.busy [data-act] { pointer-events: none; }
.link { color: var(--dim); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; padding: 6px 4px; }
.btn { padding: 11px 20px; border-radius: 6px; border: 1px solid var(--line); background: rgba(10, 8, 6, .6); color: var(--text); font-weight: 700; transition: transform .08s; }
.btn:active:not(:disabled) { transform: translateY(2px) scale(.98); }
.btn.gold { background: linear-gradient(180deg, #ffe08a 0%, var(--gold) 45%, var(--gold-deep) 100%); color: #1c1304; border-color: #7d570f; box-shadow: 0 0 0 1px rgba(255, 224, 138, .3) inset, 0 6px 22px rgba(245, 196, 81, .28); }
.btn.big { padding: 14px 26px; font-size: 18px; font-family: var(--serif); font-weight: 900; letter-spacing: .06em; }
.btn.dashed { border-style: dashed; color: var(--dim); font-weight: 400; font-size: 14px; }
.btn.quiet { color: var(--dim); font-weight: 400; }
.field { width: 100%; font: inherit; color: var(--text); background: rgba(0, 0, 0, .55); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; resize: none; }
.field:focus { outline: 2px solid var(--gold-deep); }
.kicker { color: var(--red); font-weight: 800; letter-spacing: .3em; font-size: 13px; }
.hint { color: var(--dim); font-size: 13px; text-align: center; }
.pic { display: block; position: relative; overflow: hidden; background: radial-gradient(120% 90% at 30% 20%, #3a2a10 0%, #17110a 60%, #0a0806 100%); }
.pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.dot3 { display: inline-block; width: 1.6em; height: .5em; margin-right: 8px; background: radial-gradient(circle, currentColor 40%, transparent 45%) 0 50% / .55em .5em repeat-x; animation: dots 1s steps(4) infinite; clip-path: inset(0 100% 0 0); }
@keyframes dots { to { clip-path: inset(0 -34% 0 0); } }
#toast { position: fixed; left: 50%; top: calc(var(--top) + 52px); transform: translate(-50%, -16px); z-index: 60; margin: 0; max-width: 88vw; padding: 9px 16px; border: 1px solid var(--red); border-radius: 6px; background: #2a0b10; color: #ffc9d0; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---- the disclaimer: in from black, held, out ---- */
.boot { position: relative; height: 100dvh; display: grid; place-content: center; gap: 22px; padding: 0 12vw; text-align: center; background: #000; cursor: pointer; animation: bootIn 1s ease-out both; transition: opacity .85s ease-in; }
.boot.out { opacity: 0; }
.boot-mark { font-family: var(--serif); color: var(--gold-deep); letter-spacing: .8em; text-indent: .8em; font-size: 14px; }
.boot-mark::after { content: ""; display: block; width: 42px; height: 1px; background: var(--gold-deep); margin: 14px auto 0; }
.boot-text { font-family: var(--serif); font-size: clamp(17px, 2.6vw, 22px); line-height: 2.1; max-width: 30em; color: #e9dfc8; }
.boot-skip { position: absolute; left: 0; right: 0; bottom: calc(var(--bottom) + 14px); color: #5d533f; font-size: 12px; letter-spacing: .2em; animation: bootIn 1s 1.6s both; }
@keyframes bootIn { from { opacity: 0; } to { opacity: 1; } }

/* ---- the title screen ---- */
.title { position: relative; height: 100dvh; overflow: hidden; background: radial-gradient(100% 70% at 50% 20%, #3a2608 0%, var(--ink) 70%); animation: bootIn .9s ease-out both; }
.title-art { position: absolute; inset: 0; background-size: cover; background-position: center 12%; animation: drift 26s ease-in-out infinite alternate; }
.title-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 8, 6, .1) 0%, rgba(10, 8, 6, .2) 30%, rgba(10, 8, 6, .9) 62%, var(--ink) 100%); }
.title-mute { position: absolute; right: 12px; top: var(--top); z-index: 2; }
.title-body { position: absolute; inset: auto 0 0 0; padding: 0 20px calc(var(--bottom) + 6px); max-height: 100dvh; overflow-y: auto; }
.title-tags { display: flex; gap: 6px; margin-bottom: 10px; }
.title-tags span { font-size: 12px; font-weight: 800; letter-spacing: .12em; color: #fff; background: var(--red); padding: 1px 8px; transform: skewX(-12deg); }
.logo { font-family: var(--serif); font-weight: 900; line-height: 1.12; }
.logo-top { display: block; font-size: clamp(20px, 5.6vw, 34px); color: #fff; letter-spacing: .04em; text-shadow: 0 2px 10px #000; }
.logo-main { display: block; font-size: clamp(34px, 9.6vw, 68px); letter-spacing: .01em; color: var(--gold); text-shadow: 0 3px 0 #4d3306, 0 0 26px rgba(245, 196, 81, .5); }
.logo-main em { font-style: normal; color: var(--red); display: inline-block; transform: rotate(-6deg) scale(1.12); margin-left: .08em; text-shadow: 0 3px 0 #4a0711, 0 0 18px rgba(227, 40, 63, .7); }
.logo-sub { font-family: var(--serif); font-weight: 800; font-size: clamp(15px, 4vw, 21px); color: #fff; margin: 8px 0 16px; text-shadow: 0 2px 8px #000; }
.menu { display: grid; gap: 8px; justify-items: start; margin-bottom: 18px; }
.menu-item { display: flex; align-items: baseline; gap: 12px; padding: 9px 30px 9px 18px; font-family: var(--serif); font-size: 19px; font-weight: 900; letter-spacing: .14em; color: var(--text); background: linear-gradient(90deg, rgba(10, 8, 6, .85), rgba(10, 8, 6, 0)); border-left: 3px solid var(--line); clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 0 100%); transition: transform .12s, border-color .12s; min-width: 230px; text-align: left; }
.menu-item small { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .05em; color: var(--dim); }
.menu-item:hover, .menu-item:focus-visible { transform: translateX(8px); border-left-color: var(--gold); outline: none; }
.menu-item.main { background: linear-gradient(90deg, var(--gold) 0%, var(--gold-deep) 70%, rgba(200, 146, 43, 0) 100%); color: #1c1304; border-left-color: #fff3c4; font-size: 23px; padding-top: 12px; padding-bottom: 12px; min-width: 270px; animation: glow 2.4s ease-in-out infinite; }
.menu-item.main small { color: #4d3306; font-weight: 700; }
/* "continue (chapter N)" is long: what is left goes under it, on the gold, not out where the gold has faded */
.menu-item.main.stack { flex-direction: column; align-items: flex-start; gap: 0; padding-top: 9px; padding-bottom: 9px; }
.menu-item.small { font-size: 13px; font-weight: 500; padding: 3px 20px 3px 18px; min-width: 0; color: var(--dim); letter-spacing: .3em; }
@keyframes glow { 50% { filter: brightness(1.18); } }
.cast-title { color: var(--gold-deep); font-size: 11px; letter-spacing: .4em; margin-bottom: 6px; }
.cast { list-style: none; margin: 0 -20px; padding: 0 20px 4px; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.cast::-webkit-scrollbar { display: none; }
.cast li { flex: 0 0 104px; scroll-snap-align: start; display: grid; gap: 2px; font-size: 11px; line-height: 1.4; color: var(--dim); }
.cast-pic { width: 104px; aspect-ratio: 3 / 4; border: 1px solid var(--line); border-radius: 4px; margin-bottom: 3px; }
.cast b { color: var(--text); font-family: var(--serif); font-size: 14px; }

/* ---- a scene: a picture behind, the play in front ---- */
.scene { position: relative; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; background: radial-gradient(110% 80% at 50% 25%, #33230a 0%, var(--ink) 72%); animation: bootIn .35s ease-out both; }
.scene.steady { animation: none; }
.scene-art { position: absolute; inset: 0; background-size: cover; background-position: center 25%; animation: drift 24s ease-in-out infinite alternate; }
.scene-art.fade { animation: drift 24s ease-in-out infinite alternate, artIn .8s ease-out both; }
@keyframes artIn { from { opacity: 0; } to { opacity: 1; } }
.scene-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 8, 6, .55) 0%, rgba(10, 8, 6, .05) 22%, rgba(10, 8, 6, .55) 58%, rgba(10, 8, 6, .96) 100%); }
@keyframes drift { from { transform: scale(1.03); } to { transform: scale(1.1) translateY(-1.2%); } }
.scene > *:not(.scene-art):not(.scene-veil) { position: relative; }
.hud { position: absolute !important; z-index: 4; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 10px; padding: var(--top) 12px 8px; background: linear-gradient(180deg, rgba(0, 0, 0, .72), transparent); }
.hud-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(245, 196, 81, .35); background: rgba(10, 8, 6, .6); color: var(--gold); font-size: 13px; line-height: 1; flex: none; }
.hud-chapter { flex: 1; font-family: var(--serif); font-weight: 900; font-size: 16px; color: var(--gold); white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.hud-chapter i { font-style: normal; font-size: 12px; color: var(--red); border: 1.5px solid var(--red); border-radius: 3px; padding: 0 6px; transform: rotate(-4deg); letter-spacing: .15em; background: rgba(227, 40, 63, .12); }
.hud-score { position: relative; display: flex; align-items: baseline; gap: 6px; font-size: 11px; color: var(--dim); letter-spacing: .1em; padding: 2px 12px; border-radius: 999px; border: 1px solid rgba(245, 196, 81, .35); background: rgba(10, 8, 6, .65); }
.hud-score b { font-family: var(--serif); font-size: 19px; color: var(--gold); min-width: 1.4em; text-align: right; font-variant-numeric: tabular-nums; }
.hud-score.bump { animation: bump .5s ease-out; }
.hud-score .plus { position: absolute; right: 8px; top: 100%; font-style: normal; font-family: var(--serif); font-weight: 900; font-size: 20px; color: var(--gold); text-shadow: 0 0 12px rgba(245, 196, 81, .9); animation: floatUp 1.2s ease-out forwards; pointer-events: none; }
@keyframes bump { 30% { transform: scale(1.25); border-color: var(--gold); } }
@keyframes floatUp { from { opacity: 0; transform: translateY(14px) scale(.6); } 25% { opacity: 1; transform: translateY(2px) scale(1.25); } to { opacity: 0; transform: translateY(-16px) scale(1); } }

/* ---- chapter card ---- */
.chapter { position: relative; height: 100dvh; overflow: hidden; display: grid; place-content: center; justify-items: center; gap: 18px; background: #000; cursor: pointer; }
.chapter .scene-art { filter: blur(6px) saturate(.6); }
.chapter-veil { position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 50%, rgba(0, 0, 0, .62), rgba(0, 0, 0, .94)); }
.chapter > p { position: relative; }
.chapter-label { font-family: var(--serif); font-weight: 900; font-size: clamp(34px, 9vw, 64px); letter-spacing: .5em; text-indent: .5em; color: var(--gold); text-shadow: 0 0 30px rgba(245, 196, 81, .5); animation: rise .5s ease-out both; }
.chapter-label::before, .chapter-label::after { content: ""; display: block; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-deep), transparent); margin: 10px -10vw; }
.chapter-stamp { font-family: var(--serif); font-weight: 900; font-size: clamp(40px, 12vw, 84px); letter-spacing: .12em; color: var(--red); border: 5px solid var(--red); border-radius: 10px; padding: 0 .3em; transform: rotate(-8deg); background: rgba(227, 40, 63, .1); box-shadow: 0 0 0 3px rgba(227, 40, 63, .25) inset, 0 0 60px rgba(227, 40, 63, .35); animation: slam .42s .5s cubic-bezier(.2, 1.6, .4, 1) both; }
.chapter-sub { font-family: var(--serif); font-size: clamp(16px, 4.4vw, 22px); color: #fff; padding: 0 8vw; text-align: center; animation: rise .5s 1s ease-out both; }
@keyframes slam { from { opacity: 0; transform: rotate(-22deg) scale(3.6); } 70% { opacity: 1; transform: rotate(-8deg) scale(.92); } to { opacity: 1; transform: rotate(-8deg) scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---- reading, like a visual novel ---- */
.vn .scene-veil { background: linear-gradient(180deg, rgba(10, 8, 6, .35) 0%, rgba(10, 8, 6, 0) 22%, rgba(10, 8, 6, .2) 48%, rgba(10, 8, 6, .9) 72%, #060504 100%); }
.vn-tap { position: absolute !important; inset: 0; cursor: pointer; }
.vn-box { margin-top: auto; padding: 22px 22px calc(var(--bottom) + 4px); min-height: 46dvh; display: flex; flex-direction: column; cursor: pointer; }
.vn-caption { font-family: var(--serif); font-weight: 900; font-size: clamp(19px, 5vw, 26px); color: var(--gold); margin-bottom: 10px; display: flex; align-items: center; gap: 10px; text-shadow: 0 2px 10px #000; }
.vn-caption span { font-family: var(--sans); font-size: 11px; font-weight: 800; letter-spacing: .2em; color: #fff; background: var(--red); padding: 1px 8px; transform: skewX(-12deg); flex: none; }
.vn-text { flex: 1; }
.vn-text p { font-size: clamp(17px, 4.5vw, 21px); line-height: 1.75; margin-bottom: .6em; text-shadow: 0 1px 6px #000; }
.vn-foot { display: flex; align-items: center; gap: 14px; min-height: 30px; }
.vn-pages { margin-left: auto; color: #6f634b; font-size: 12px; letter-spacing: .1em; }
.vn-next { font-style: normal; color: var(--gold); font-size: 13px; opacity: 0; }
.vn-box.typed .vn-next { opacity: 1; animation: bob 1s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }

/* ---- the interview ---- */
.iv { padding-top: calc(var(--top) + 44px); }
/* 2026-11-24, the producer: the picture is shown whole and at full light in a frame of its own, never fading into black;
   the frame, the speech box and the questions are one set. Behind them the same picture, blurred, only as colour. */
.iv .scene-art { background-size: cover; background-position: center; filter: blur(26px) brightness(.4) saturate(.9); transform: scale(1.15); animation: none; }
.iv .scene-art.fade { animation: artIn .7s ease-out both; }
.iv .scene-veil { background: rgba(8, 6, 4, .3); }
.tape { display: flex; align-items: center; gap: 10px; padding: 2px 14px 6px; font-size: 11px; color: var(--dim); font-variant-numeric: tabular-nums; }
.rec { color: var(--red); font-weight: 800; letter-spacing: .14em; }
.rec::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-right: 5px; animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.tape-bar { flex: 1; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.tape-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); border-radius: 3px; transition: width .5s ease-out; }
.iv-main { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 0 10px 6px; }
/* the disclaimer, always under the interview: small, its height its own, so nothing above it moves */
.iv-note { flex: none; margin: 0; padding: 0 14px var(--bottom); color: #7d7158; font-size: 10px; line-height: 1.45; text-align: center; text-wrap: balance; }
.figure { position: relative; flex: 1 1 30dvh; min-height: 22dvh; margin: 0; overflow: hidden; background: #080604; border: 1px solid var(--gold-deep); border-radius: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, .55), 0 0 0 3px rgba(8, 6, 4, .6); }
.figure-art { position: absolute; inset: 0; background-size: cover; background-repeat: no-repeat; background-position: center 10%; }
.figure-art.fade { animation: artIn .7s ease-out both; }
.figure figcaption { position: absolute; left: 10px; top: 10px; z-index: 1; font-size: 11px; color: #fff; background: rgba(0, 0, 0, .55); padding: 0 8px; border-left: 2px solid var(--red); letter-spacing: .05em; }
.iv-side { flex: none; display: flex; flex-direction: column; z-index: 1; --panel: rgba(22, 17, 10, .95); }
.dlg { position: relative; flex: none; display: flex; flex-direction: column; margin-top: 24px; padding: 18px 14px 4px; background: var(--panel); border: 1px solid var(--line); border-top: 2px solid var(--gold-deep); border-bottom: 0; border-radius: 0 8px 0 0; }
.dlg-name { position: absolute; left: 12px; top: -15px; font-family: var(--serif); font-weight: 900; font-size: 17px; color: #1c1304; padding: 1px 26px 1px 14px; background: linear-gradient(180deg, #ffe08a, var(--gold-deep)); clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%); }
.dlg-log { position: absolute; right: 10px; top: -4px; }
.dlg-body { flex: none; height: 7.4em; overflow-y: auto; padding-right: 8px; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12px, #000 calc(100% - 14px), transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 12px, #000 calc(100% - 14px), transparent 100%); padding-top: 6px; padding-bottom: 10px; }
.asked { color: var(--dim); font-size: 14px; margin-bottom: 6px; padding-left: 10px; border-left: 3px solid var(--red); }
.asked span { color: var(--red); font-weight: 800; margin-right: 8px; font-size: 12px; }
.says p { font-size: clamp(17px, 4.5vw, 20px); line-height: 1.7; margin-bottom: .45em; }
.says.opening p { color: var(--dim); font-size: 15px; font-style: italic; }
.says.refusal p { color: var(--gold); font-family: var(--serif); font-weight: 800; }
.wait { color: var(--gold); }
.choices { flex: none; display: grid; gap: 5px; padding: 8px 10px 10px; background: var(--panel); border: 1px solid var(--line); border-top: 1px solid rgba(200, 146, 43, .25); border-radius: 0 0 8px 8px; }
.choice { display: flex; gap: 10px; align-items: baseline; text-align: left; padding: 7px 12px; font-size: 14.5px; line-height: 1.45; background: linear-gradient(90deg, rgba(227, 40, 63, .16), rgba(255, 255, 255, .03) 60%); border-left: 3px solid var(--red); clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); animation: slideIn .28s calc(var(--i) * 70ms) ease-out both; transition: transform .1s, background .1s; }
.choice i { font-style: normal; font-family: var(--serif); font-weight: 900; color: var(--red); flex: none; }
.choice:hover, .choice:focus-visible { transform: translateX(6px); background: linear-gradient(90deg, rgba(227, 40, 63, .34), rgba(255, 255, 255, .06) 70%); outline: none; }
.choice.own-open { border-left-color: var(--gold-deep); background: linear-gradient(90deg, rgba(245, 196, 81, .12), rgba(255, 255, 255, .02) 60%); color: var(--dim); }
.choice.own-open i { color: var(--gold); }
/* out of questions: the questions stay in sight but dimmed, and the row under them is the way to the pack */
.choice.locked { color: var(--dim); border-left-color: var(--line); background: linear-gradient(90deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02) 60%); }
.choice.locked i { color: var(--dim); }
.choice.buy-open { font-weight: 900; letter-spacing: .08em; color: #1c1304; border-left-color: #fff3c4; background: linear-gradient(90deg, var(--gold) 0%, var(--gold-deep) 78%, rgba(200, 146, 43, .55) 100%); box-shadow: 0 0 18px rgba(245, 196, 81, .28); }
.choice.buy-open i { color: #4d3306; }
.choice.buy-open small { font-size: 12px; line-height: 1; font-weight: 700; letter-spacing: .03em; color: #4d3306; }
.choice.buy-open:hover, .choice.buy-open:focus-visible { background: linear-gradient(90deg, #ffe08a 0%, var(--gold) 78%, rgba(245, 196, 81, .6) 100%); }
@keyframes slideIn { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
.own { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.btn.file { justify-self: end; font-size: 14px; padding: 7px 14px; margin-top: 2px; }
.btn.file.big { justify-self: stretch; font-size: 18px; padding: 13px; }
.time-up { color: var(--gold); text-align: center; font-family: var(--serif); padding: 6px 0; }
.choices.waiting { min-height: 64px; align-content: center; }
.listening { display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: 13px; justify-content: center; }
.bars { display: inline-flex; gap: 3px; align-items: flex-end; height: 16px; }
.bars b { width: 3px; background: var(--gold); border-radius: 1px; animation: bar .7s ease-in-out infinite; }
.bars b:nth-child(2) { animation-delay: .15s; } .bars b:nth-child(3) { animation-delay: .3s; } .bars b:nth-child(4) { animation-delay: .45s; }
@keyframes bar { 0%, 100% { height: 4px; } 50% { height: 16px; } }

/* ---- the front page ---- */
.press, .fates, .reveal { padding: calc(var(--top) + 52px) 14px var(--bottom); justify-content: center; overflow-y: auto; }
.press .scene-art, .fates .scene-art { filter: blur(4px) brightness(.4); }
.paper { width: min(560px, 100%); margin: 0 auto; background-color: var(--paper); background-image: radial-gradient(rgba(0, 0, 0, .05) 1px, transparent 1px); background-size: 4px 4px; color: #1a120a; padding: 14px 16px 10px; transform: rotate(-.8deg); box-shadow: 0 30px 70px rgba(0, 0, 0, .75), 6px 6px 0 rgba(241, 231, 208, .25); animation: paperIn .45s cubic-bezier(.2, 1.3, .4, 1) both; }
@keyframes paperIn { from { opacity: 0; transform: rotate(-9deg) translateY(40px) scale(.86); } to { opacity: 1; transform: rotate(-.8deg); } }
.paper-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 8px; font-size: 10px; color: #5b4a30; border-bottom: 3px double #1a120a; padding-bottom: 4px; }
.paper-head h2 { font-size: clamp(26px, 8vw, 40px); color: #1a120a; letter-spacing: .16em; margin: 0; line-height: 1.1; }
.paper-head span:last-child { text-align: right; }
.paper-lede { font-size: 13px; color: #5b4a30; margin: 6px 0; text-align: center; letter-spacing: .05em; }
.paper-pic { aspect-ratio: 16 / 6; background-color: #b9ad92; background-size: cover; background-position: center 25%; filter: grayscale(1) contrast(1.15); border: 1px solid #1a120a; }
.paper-heads { display: grid; }
.headline { display: block; text-align: left; padding: 10px 6px 10px 4px; border-bottom: 1px solid rgba(26, 18, 10, .35); font-family: var(--serif); font-weight: 900; font-size: clamp(18px, 5vw, 23px); line-height: 1.35; color: #1a120a; animation: rise .3s calc(.25s + var(--i) * 90ms) ease-out both; transition: background .12s, padding .12s; }
.headline:last-child { border-bottom: 0; }
.headline small { display: inline-block; font-family: var(--sans); font-size: 11px; font-weight: 800; color: #fff; background: var(--red); padding: 0 7px; margin-right: 8px; letter-spacing: .1em; vertical-align: .2em; }
.headline:hover, .headline:focus-visible { background: #ffe680; padding-left: 12px; outline: none; }

/* ---- the fate cards ---- */
.fates-body { width: min(620px, 100%); margin: 0 auto; display: grid; gap: 14px; text-align: center; }
.fates-body h2 { color: #fff; font-size: clamp(21px, 5.6vw, 30px); line-height: 1.35; }
.deck { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; perspective: 900px; margin: 6px 0; }
.fate { aspect-ratio: 5 / 7; border-radius: 10px; --c: var(--gold); border: 2px solid var(--c); color: var(--c); background: repeating-linear-gradient(45deg, #1a130a 0 8px, #21180b 8px 16px); box-shadow: 0 0 0 4px #0f0b06 inset, 0 0 0 5px var(--c) inset, 0 16px 34px rgba(0, 0, 0, .65); animation: deal .45s calc(var(--i) * 120ms) cubic-bezier(.2, 1.3, .4, 1) both; transition: transform .15s; }
.fate.slap { --c: var(--red); } .fate.meme { --c: var(--green); }
.fate-back { display: grid; justify-items: center; align-content: center; gap: 6px; height: 100%; padding: 8px; }
.fate-back i { font-style: normal; font-family: var(--serif); font-weight: 900; font-size: clamp(22px, 7vw, 38px); width: 1.8em; height: 1.8em; line-height: 1.7em; border: 2px solid var(--c); border-radius: 50%; background: rgba(0, 0, 0, .5); }
.fate-back b { font-family: var(--serif); font-size: clamp(20px, 6vw, 30px); letter-spacing: .14em; }
.fate-back small { font-size: 11px; color: var(--dim); line-height: 1.4; }
.fate:hover:not(.dropped), .fate:focus-visible { transform: translateY(-8px) rotate(-1.5deg); outline: none; }
.fate.turning { animation: turn .52s ease-in forwards; }
.fate.dropped { opacity: .2; transform: translateY(12px) scale(.94); transition: all .3s; }
@keyframes deal { from { opacity: 0; transform: translateY(60px) rotate(12deg); } to { opacity: 1; transform: none; } }
@keyframes turn { to { transform: translateY(-14px) rotateY(90deg) scale(1.12); } }
.reveal .scene-art { filter: blur(5px) brightness(.45); }
.face { width: min(520px, 100%); margin: 0 auto; display: grid; gap: 12px; --c: var(--gold); animation: faceIn .5s ease-out both; }
.face.slap { --c: var(--red); } .face.meme { --c: var(--green); }
@keyframes faceIn { from { opacity: 0; transform: perspective(900px) rotateY(-90deg) scale(1.1); } to { opacity: 1; transform: none; } }
.face-pic { position: relative; aspect-ratio: 16 / 9; background-color: #1a130a; background-size: cover; background-position: center 25%; border: 2px solid var(--c); border-bottom: 0; border-radius: 10px 10px 0 0; }
.ribbon { position: absolute; left: -2px; top: 12px; font-family: var(--serif); font-weight: 900; letter-spacing: .2em; color: #0a0806; background: var(--c); padding: 1px 16px 1px 12px; clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.face-body { margin-top: -12px; padding: 14px 16px 12px; background: var(--coal); border: 2px solid var(--c); border-top: 0; border-radius: 0 0 10px 10px; }
.face-body h2 { color: var(--c); font-size: 24px; margin-bottom: 6px; }
.face-text p { margin-bottom: .5em; font-size: 16px; }
.filed { color: var(--dim); font-size: 13px; border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 4px; }
.filed span { display: block; font-size: 10px; letter-spacing: .2em; color: var(--gold-deep); }

/* ---- the hook: the chapter's last picture ---- */
.hook .scene-veil { background: linear-gradient(180deg, rgba(10, 8, 6, .2) 0%, rgba(10, 8, 6, .1) 35%, rgba(10, 8, 6, .92) 78%, #060504 100%); }
.hook-body { margin-top: auto; padding: 22px 24px calc(var(--bottom) + 10px); display: grid; gap: 14px; justify-items: center; text-align: center; }
.hook-text p { font-family: var(--serif); font-weight: 800; font-size: clamp(21px, 5.8vw, 32px); line-height: 1.6; color: #fff; text-shadow: 0 2px 12px #000; margin-bottom: .3em; }
.hook-go { opacity: 0; pointer-events: none; transition: opacity .4s; }
.hook-body.typed .hook-go { opacity: 1; pointer-events: auto; }

/* ---- overlays: the cliffhanger, the record ---- */
#overlay:empty { display: none; }
.wall { position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; justify-content: center; background: #000; animation: bootIn .5s ease-out both; overflow-y: auto; }
.wall-art { position: absolute; inset: 0; background-size: cover; background-position: center 25%; filter: grayscale(.6) blur(2px); opacity: .5; }
.wall-veil { position: absolute; inset: 0; background: radial-gradient(70% 55% at 50% 40%, rgba(0, 0, 0, .55), rgba(0, 0, 0, .96)); }
.wall-body { position: relative; width: min(480px, 100%); margin: 0 auto; padding: 20px 22px var(--bottom); text-align: center; display: grid; gap: 10px; }
.wall-kicker { color: var(--dim); letter-spacing: .5em; text-indent: .5em; font-size: 13px; }
.wall-title { font-size: clamp(44px, 14vw, 78px); font-weight: 900; letter-spacing: .2em; text-indent: .2em; line-height: 1.2; color: var(--gold); text-shadow: 0 3px 0 #4d3306, 0 0 30px rgba(245, 196, 81, .55); animation: slamFlat .5s cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes slamFlat { from { opacity: 0; transform: scale(2.4); } to { opacity: 1; transform: none; } }
.wall-hook { font-family: var(--serif); font-size: 18px; color: #fff; }
.wall-hook p { margin-bottom: .3em; }
.wall.steady, .wall.steady * { animation: none !important; }
.wall-list { list-style: none; margin: 4px 0; padding: 0; text-align: left; display: grid; gap: 5px; }
.wall-list li { display: grid; grid-template-columns: 5.2em 1fr; gap: 8px; font-size: 15px; padding: 5px 0; border-bottom: 1px solid rgba(245, 196, 81, .15); animation: slideIn .3s ease-out both; }
.wall-list li:nth-child(2) { animation-delay: .1s; } .wall-list li:nth-child(3) { animation-delay: .2s; } .wall-list li:nth-child(4) { animation-delay: .3s; }
.wall-list b { color: var(--red); font-family: var(--serif); }
.wall-actions { display: grid; gap: 10px; margin-top: 6px; }
.wall-links { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.wall-wait { color: var(--gold); font-size: 14px; }
.restore { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; }
.wall-foot { color: #6f634b; font-size: 11px; }
.sheet { position: fixed; inset: 0; z-index: 25; background: rgba(0, 0, 0, .6); display: flex; align-items: flex-end; justify-content: center; }
.sheet-body { width: min(640px, 100%); max-height: 78dvh; background: var(--coal); border-top: 2px solid var(--gold-deep); border-radius: 14px 14px 0 0; padding: 10px 16px var(--bottom); display: flex; flex-direction: column; animation: sheetUp .25s ease-out; }
@keyframes sheetUp { from { transform: translateY(40%); opacity: 0; } }
.sheet-body header { display: flex; align-items: center; justify-content: space-between; font-family: var(--serif); color: var(--gold); padding-bottom: 6px; }
/* "start again?": the record's sheet, in the middle, with the wall's gold */
.sheet.confirm { z-index: 35; align-items: center; padding: 0 18px; background: rgba(0, 0, 0, .72); animation: bootIn .2s ease-out both; }
.sheet.confirm.steady, .sheet.confirm.steady * { animation: none !important; }
.confirm-body { width: min(420px, 100%); display: grid; gap: 10px; padding: 20px 20px 18px; background: var(--coal); border: 1px solid var(--line); border-top: 2px solid var(--gold-deep); border-radius: 8px; box-shadow: 0 30px 70px rgba(0, 0, 0, .75); animation: rise .25s ease-out both; }
.confirm-body h2 { color: var(--gold); font-size: 26px; font-weight: 900; }
.confirm-text { font-size: 15px; }
.confirm-text.dim { color: var(--dim); font-size: 13px; }
.confirm-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.boot.holding { cursor: default; }
.log { list-style: none; margin: 0; padding: 0; overflow-y: auto; font-size: 15px; }
.log li { display: grid; grid-template-columns: 24px 1fr; gap: 8px; padding: 8px 0; border-top: 1px solid #2b200d; }
.log li > span { font-weight: 800; color: var(--red); } .log li.a > span { color: var(--gold); } .log p { margin-bottom: .3em; } .log .q p { color: #d6c9ad; }

/* ---- the ending ---- */
/* The closing picture stays as colour only: the same frame, blurred and pressed dark, so the faces in it never fight
   the words in front. The column scrolls in its own frame, with a soft edge at the top and bottom and air around it. */
.final { overflow-x: hidden; overflow-y: auto; display: block; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: rgba(245, 196, 81, .3) transparent; }
.final::-webkit-scrollbar { width: 6px; }
.final::-webkit-scrollbar-track { background: transparent; }
.final::-webkit-scrollbar-thumb { background: rgba(245, 196, 81, .28); border-radius: 3px; }
.final .scene-art { position: fixed; filter: blur(24px) brightness(.55) saturate(.9); transform: scale(1.18); animation: none; }
.final .scene-art.fade { animation: artIn 1s ease-out both; }
.final .scene-veil { position: fixed; background: radial-gradient(80% 55% at 50% 42%, rgba(8, 6, 4, .18) 0%, rgba(8, 6, 4, .42) 65%, rgba(8, 6, 4, .66) 100%), linear-gradient(180deg, rgba(8, 6, 4, .34) 0%, rgba(8, 6, 4, .48) 45%, rgba(8, 6, 4, .8) 100%); }
.final::before, .final::after { content: ""; display: block; position: sticky; z-index: 5; height: 34px; pointer-events: none; }
.final::before { top: 0; margin-bottom: -34px; background: linear-gradient(180deg, #050403 12%, rgba(5, 4, 3, 0)); }
.final::after { bottom: 0; margin-top: -34px; background: linear-gradient(0deg, #050403 12%, rgba(5, 4, 3, 0)); }
.final-body { width: min(640px, 100%); margin: 0 auto; padding: calc(var(--top) + 46px) 18px calc(var(--bottom) + 72px); }
.final-body .kicker { text-align: center; }
.rank { text-align: center; font-size: clamp(30px, 8.6vw, 50px); font-weight: 900; color: var(--gold); text-shadow: 0 3px 0 #4d3306, 0 0 26px rgba(245, 196, 81, .55); animation: slamFlat .5s .2s cubic-bezier(.2, 1.5, .4, 1) both; margin: 4px 0; }
.rank-line { text-align: center; color: var(--text); }
.final-score { text-align: center; color: var(--dim); letter-spacing: .3em; font-size: 13px; margin-top: 8px; }
.final-score b { display: block; font-family: var(--serif); font-size: 54px; line-height: 1.1; color: var(--gold); letter-spacing: 0; }
.final h3 { color: var(--gold-deep); font-size: 17px; margin: 26px 0 10px; display: flex; align-items: center; gap: 10px; }
.final h3::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.payback { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.payback li { position: relative; display: grid; gap: 2px; padding: 10px 78px 10px 14px; border: 1px solid var(--line); border-radius: 6px; background: rgba(10, 8, 6, .78); opacity: .85; overflow: hidden; transition: border-color .3s; }
.payback li.on { opacity: 1; border-color: rgba(245, 196, 81, .38); animation: paybackIn .5s cubic-bezier(.2, 1.2, .4, 1) both; }
@keyframes paybackIn { from { opacity: .85; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
.payback .before { color: var(--dim); text-decoration: line-through; text-decoration-color: var(--red); font-size: 14px; }
.payback .after { color: var(--green); font-weight: 700; }
.seal { position: absolute; right: 10px; top: 50%; font-style: normal; font-family: var(--serif); font-weight: 900; color: var(--red); border: 3px solid var(--red); border-radius: 6px; padding: 0 6px; letter-spacing: .1em; opacity: 0; transform: translateY(-50%) rotate(-12deg) scale(3); }
.payback li.on .seal { opacity: .92; transform: translateY(-50%) rotate(-12deg) scale(1); transition: transform .28s .15s cubic-bezier(.2, 1.6, .4, 1), opacity .1s .15s; }
.album { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.album li { --c: var(--gold); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #0f0b06; font-size: 11px; text-align: center; padding-bottom: 5px; color: var(--dim); }
.album li.slap { --c: var(--red); } .album li.meme { --c: var(--green); }
.album-pic { aspect-ratio: 4 / 3; filter: grayscale(1) brightness(.35); }
.album b { display: block; font-size: 13px; margin-top: 3px; color: #6f634b; }
.album .have { border-color: var(--c); } .album .have .album-pic { filter: none; } .album .have b { color: var(--c); }
.filed-list { color: var(--dim); padding-left: 22px; font-size: 14px; margin: 0; }
.final-actions { display: grid; gap: 8px; justify-items: stretch; margin-top: 26px; }
.final-actions .link { justify-self: center; }

/* ---- wide screens ---- */
@media (min-width: 900px) {
  .title-art { background-position: 20% 12%; right: 38%; -webkit-mask-image: linear-gradient(90deg, #000 62%, transparent); mask-image: linear-gradient(90deg, #000 62%, transparent); }
  .title-veil { background: linear-gradient(90deg, rgba(10, 8, 6, 0) 30%, rgba(10, 8, 6, .85) 58%, var(--ink) 80%), linear-gradient(180deg, transparent 60%, rgba(10, 8, 6, .8)); }
  .title-body { inset: 0 0 0 52%; display: flex; flex-direction: column; justify-content: center; padding: 0 5vw 0 2vw; }
  .cast { margin: 0; padding: 0 0 4px; }
  .vn-box { padding: 26px max(22px, calc(50vw - 430px)) calc(var(--bottom) + 8px); min-height: 40dvh; }
  .hud { padding-left: 24px; padding-right: 24px; }
  .tape { padding: 2px max(24px, calc(50vw - 560px)) 8px; }
  .iv-main { flex-direction: row; align-items: stretch; gap: 30px; padding: 6px max(24px, calc(50vw - 560px)) 10px; }
  .iv-note { padding: 0 max(24px, calc(50vw - 560px)) 10px; font-size: 11px; }
  /* the whole picture, at its own 2:3 shape, as tall as the screen allows */
  .figure { flex: none; height: 100%; aspect-ratio: 2 / 3; max-width: 46vw; }
  .figure-art { background-position: center; }
  .iv-side { flex: 1; min-width: 0; justify-content: center; }
  .dlg { margin-top: 15px; padding: 22px 22px 8px; }
  .dlg-body { height: auto; min-height: 7.4em; max-height: 36dvh; }
  .hook-body { padding-bottom: 8dvh; }
  .choices { padding: 10px 14px 12px; }
  .choice { font-size: 16px; padding: 10px 14px; }
  .wall-body { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01s !important; }
  .boot { transition-duration: .2s !important; }
}

/* scrollbars: a thin gold line, wherever something scrolls */
* { scrollbar-width: thin; scrollbar-color: var(--gold-deep) transparent; }
@supports not (scrollbar-color: auto) {
  *::-webkit-scrollbar { width: 4px; height: 4px; }
  *::-webkit-scrollbar-track { background: transparent; }
  *::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--gold), var(--gold-deep)); border-radius: 2px; }
}

/* ---- how many questions are left, kept in front of the player through the interview ---- */
.hud-balance { display: flex; align-items: baseline; gap: 5px; font-size: 12px; color: var(--text); letter-spacing: .06em; padding: 3px 12px; border-radius: 999px; border: 1px solid var(--gold-deep); background: rgba(10, 8, 6, .8); white-space: nowrap; cursor: pointer; }
.hud-balance i { font-style: normal; font-size: 11px; color: var(--dim); }
.hud-balance.low { border-color: var(--red); box-shadow: 0 0 0 1px rgba(227, 40, 63, .35), 0 0 14px rgba(227, 40, 63, .35); }
.hud-balance.low b { color: var(--red); }
.hud-score { white-space: nowrap; flex: none; }
.hud-balance { flex: none; }
/* a phone's top row holds five things: the words shorten so that none of them wraps or is pushed off the edge */
@media (max-width: 599px) {
  .hud { gap: 6px; padding-left: 8px; padding-right: 8px; }
  .hud .wide { display: none; }
  .hud-score { padding: 2px 9px; gap: 4px; }
  .hud-score b { min-width: 0; font-size: 17px; }
  .hud-balance { padding: 3px 10px; }
  .hud-chapter { gap: 6px; font-size: 15px; min-width: 0; }
  .hud-chapter i { padding: 0 4px; letter-spacing: .05em; }
}
.hud-balance b { font-family: var(--serif); font-size: 19px; color: var(--gold); font-variant-numeric: tabular-nums; }

/* ---- signing in: the title's gold and ink, one column of fields ---- */
.title-account { color: var(--dim); font-size: 12px; letter-spacing: .08em; margin: -4px 0 16px; }
.title-account b { color: var(--gold); font-weight: 700; }
.auth-body { display: grid; gap: 10px; }
.auth-kicker { color: var(--gold-deep); font-size: 11px; letter-spacing: .4em; }
.auth-title { font-family: var(--serif); font-weight: 900; font-size: clamp(34px, 9vw, 52px); color: var(--gold); text-shadow: 0 3px 0 #4d3306, 0 0 26px rgba(245, 196, 81, .5); }
.auth-hint { color: var(--text); font-size: 14px; }
.auth-form { display: grid; gap: 8px; margin: 4px 0 2px; }
.auth-form .btn { justify-self: start; }
.auth-switch { display: flex; gap: 10px; }
.auth-note { color: #6f634b; font-size: 11px; line-height: 1.6; }
@media (min-width: 900px) {
  .auth-body .auth-form, .auth-body .auth-title, .auth-body .auth-kicker, .auth-body .auth-hint, .auth-body .auth-switch, .auth-body .auth-note, .auth-body > .link { justify-self: start; max-width: 420px; }
}
