/* The Book of Santify (/book). The site's night sky, gold and fonts, bound into a book. Everything on a page is sized in
   em and the book's font size follows the screen, so a page always fits and text stays sharp. A page is 26em × 41em. */
:root {
  --bg: #0a0f24; --bg-2: #141a3a; --text: #f6f4ff; --muted: #b4b9d6; --gold: #ffcf5c; --gold-soft: #ffd27a; --pink: #f59fc6; --violet: #b99cff;
  --line: rgba(255, 210, 122, .24); --card: rgba(255, 255, 255, .055); --card-line: rgba(255, 255, 255, .11);
  --magic: linear-gradient(100deg, #ffd27a, #f59fc6 55%, #b99cff);
  --head: "Unbounded", system-ui, sans-serif; --body: "Manrope", system-ui, sans-serif;
  --bar: 58px;
  --fs: min(calc((100vw - 44px) / 52.9), calc((100vh - var(--bar) - 34px) / 42), 25px);
}
@supports (height: 100dvh) { :root { --fs: min(calc((100vw - 44px) / 52.9), calc((100dvh - var(--bar) - 34px) / 42), 25px); } }
@media (max-width: 900px), (max-aspect-ratio: 1/1) {
  :root { --fs: min(calc((100vw - 16px) / 26.8), calc((100vh - var(--bar) - 18px) / 41.9), 25px); }
  @supports (height: 100dvh) { :root { --fs: min(calc((100vw - 16px) / 26.8), calc((100dvh - var(--bar) - 18px) / 41.9), 25px); } }
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; color: var(--text); font: 400 16px/1.5 var(--body); -webkit-font-smoothing: antialiased; overflow: hidden;
  background: radial-gradient(1100px 620px at 80% -10%, rgba(255, 91, 110, .2), transparent 60%), radial-gradient(900px 560px at -10% 25%, rgba(98, 112, 255, .26), transparent 60%),
    radial-gradient(800px 500px at 50% 115%, rgba(185, 156, 255, .16), transparent 60%), linear-gradient(180deg, var(--bg), var(--bg-2)); }
a { color: var(--gold-soft); }
button { font: inherit; color: inherit; }
.defs { position: absolute; }
#magic, #dust { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#magic { z-index: 5; } /* the sparks fly over the book, the dust floats behind it */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ---- The book ---- */
.stage { position: fixed; z-index: 1; inset: 0 0 var(--bar); display: grid; place-items: center; perspective: 2600px; overflow: hidden; font-size: var(--fs); }
.tilt { transform-style: preserve-3d; }
.book { position: relative; width: 52em; height: 41em; transform-style: preserve-3d; transition: transform 1s cubic-bezier(.45, .05, .3, 1); cursor: pointer; }
.book.at-start { transform: translateX(-13em); }
.book.at-end { transform: translateX(13em); }
.leaves { position: absolute; inset: 0; transform-style: preserve-3d; }
.leaf { position: absolute; left: 50%; top: 0; width: 26em; height: 41em; transform-origin: 0 50%; transform-style: preserve-3d; }
.face { position: absolute; inset: 0; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 0 .7em .7em 0; }
.face.back { transform: rotateY(180deg); border-radius: .7em 0 0 .7em; }
.shade { position: absolute; inset: 0; opacity: 0; pointer-events: none; background: linear-gradient(90deg, rgba(4, 5, 20, .95), rgba(4, 5, 20, .5)); }
.board { position: absolute; top: -.55em; bottom: -.55em; width: 26.55em; transform: translateZ(-2px); opacity: 0; transition: opacity .5s;
  background: linear-gradient(135deg, #2a1a5e, #15123f 60%, #241452); border: 1px solid rgba(255, 210, 122, .35); box-shadow: 0 2.2em 4.5em -1em rgba(0, 0, 0, .8), 0 0 5em -1em rgba(245, 159, 198, .28); }
.board-l { right: 50%; border-radius: .9em 0 0 .9em; }
.board-r { left: 50%; border-radius: 0 .9em .9em 0; }
.book:not(.at-start) .board-l, .book:not(.at-end) .board-r { opacity: 1; }
.one-page .book { width: 26em; }
.one-page .leaf { left: 0; }
.one-page .board-l { display: none; }
.one-page .board-r { left: -.28em; width: 26.56em; opacity: 1; border-radius: .9em; }

/* ---- A page: midnight paper in a thin gold frame ---- */
.pg { position: absolute; inset: 0; padding: 3.1em 2.7em 3.2em; overflow: hidden; font-size: 1em; line-height: 1.5;
  background: radial-gradient(22em 15em at 85% 0, rgba(185, 156, 255, .13), transparent 70%), radial-gradient(20em 16em at 0 100%, rgba(245, 159, 198, .09), transparent 70%), linear-gradient(170deg, #1a1c4d, #12133c 70%, #171542); }
.pg::before { content: ""; position: absolute; inset: 1em; border: 1px solid var(--line); border-radius: .5em; pointer-events: none; }
.pg::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(3, 4, 18, .55), transparent 2.2em); }
.face.back .pg::after { background: linear-gradient(270deg, rgba(3, 4, 18, .55), transparent 2.2em); }
.pg.blank { padding: 0; }
.running { position: absolute; top: 2.5em; left: 0; right: 0; margin: 0; text-align: center; font-size: .66em; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 210, 122, .72); }
.folio { position: absolute; bottom: 2.3em; left: 0; right: 0; margin: 0; text-align: center; font: 600 .72em/1 var(--head); color: rgba(255, 210, 122, .8); }
.pg-in { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: center; gap: .78em; }
.pg-in.center { align-items: center; text-align: center; }
.pg p { margin: 0; }
.kick { font-size: .72em; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; color: var(--gold-soft); }
.pg h2 { margin: 0 0 .1em; font: 700 1.62em/1.16 var(--head); letter-spacing: -.015em; background: var(--magic); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
.lead { font-size: 1.1em; line-height: 1.45; color: var(--text); }
.note { font-size: .86em; color: var(--muted); border-left: 2px solid var(--gold-soft); padding-left: .75em; }
.center .note { border: 0; padding: 0; }
.soon { color: var(--gold-soft); }
.dropcap::first-letter { float: left; font: 700 3.3em/.86 var(--head); margin: .06em .12em 0 0; color: var(--gold-soft); }
code, kbd { font: 600 .9em/1 ui-monospace, Menlo, monospace; padding: .16em .36em; border-radius: .35em; background: rgba(255, 210, 122, .12); color: var(--gold-soft); }

/* appears line by line when the page opens */
@keyframes rise { from { opacity: 0; transform: translateY(.7em);  } }
.live .rise { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--d, 0) * 95ms + 420ms); }
@keyframes ink { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

.card { background: var(--card); border: 1px solid var(--card-line); border-radius: .8em; padding: .7em .85em; }
.card b { display: block; font-size: .96em; }
.card p { font-size: .84em; line-height: 1.38; color: var(--muted); }
.ico { font-size: 1.3em; line-height: 1.2; flex: none; }
.cast, .opts, .keys { display: grid; gap: .58em; }
.cast .card, .opts .card, .keys .card { display: flex; gap: .7em; align-items: flex-start; }
.opts .card.on { border-color: rgba(255, 210, 122, .6); background: rgba(255, 210, 122, .08); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: .58em; }
.grid .card { display: grid; gap: .16em; align-content: start; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: .6em; font-size: .93em; line-height: 1.42; }
.facts.tight { gap: .3em; font-size: .9em; }
.facts li { position: relative; padding-left: 1.25em; color: var(--muted); }
.facts li b { color: var(--text); }
.facts li::before { content: "✦"; position: absolute; left: 0; top: .02em; color: var(--gold-soft); font-size: .82em; }
.how-read { width: 100%; text-align: left; margin-top: .4em; display: grid; gap: .4em; }

.toc { list-style: none; margin: .5em 0 0; padding: 0; display: grid; gap: .22em; }
.toc button { width: 100%; display: flex; align-items: baseline; gap: .5em; padding: .55em .3em; background: none; border: 0; border-radius: .5em; cursor: pointer; text-align: left; font-weight: 600; transition: background .2s, color .2s; }
.toc button:hover, .toc button:focus-visible { background: rgba(255, 210, 122, .1); color: var(--gold-soft); }
.toc i { flex: 1; border-bottom: 1px dotted rgba(255, 210, 122, .4); }
.toc em { font: 600 .84em/1 var(--head); color: var(--gold-soft); }

.trail, .steps { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: s; }
.trail { gap: 0; }
.trail li { counter-increment: s; position: relative; padding: 0 0 1em 3em; min-height: 3.7em; }
.trail li:last-child { padding-bottom: 0; min-height: 0; }
.trail li::before, .steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 2.1em; height: 2.1em; border-radius: 50%; display: grid; place-items: center; font: 700 .86em/1 var(--head); color: #1b1030; background: var(--magic); }
.trail li:not(:last-child)::after { content: ""; position: absolute; left: .88em; top: 2em; bottom: .1em; border-left: 1px dashed rgba(255, 210, 122, .55); }
.trail b { display: block; font: 600 1em/1.3 var(--head); }
.trail span { color: var(--muted); font-size: .88em; line-height: 1.35; display: block; }
.steps { gap: .72em; }
.steps li { counter-increment: s; position: relative; padding-left: 2.6em; font-size: .94em; line-height: 1.4; color: var(--muted); min-height: 2em; }
.steps li b { color: var(--text); }

/* ---- Little pictures of the real thing ---- */
.mock { background: rgba(8, 10, 34, .55); border: 1px solid var(--card-line); border-radius: .9em; padding: .8em; display: grid; gap: .6em; box-shadow: 0 .8em 1.8em -1em rgba(0, 0, 0, .7); }
.m-tabs { display: flex; gap: .3em; font-size: .74em; font-weight: 700; color: var(--muted); }
.m-tabs span { flex: 1; text-align: center; padding: .55em .2em; border-radius: .7em; white-space: nowrap; }
.m-tabs .on { color: var(--text); background: rgba(255, 255, 255, .09); box-shadow: inset 0 0 0 1px rgba(255, 210, 122, .35); }
.m-hero { display: flex; align-items: center; gap: .7em; }
.m-hero small { display: block; color: var(--gold-soft); font-size: .78em; }
.m-ava { width: 2.4em; height: 2.4em; border-radius: 50%; display: grid; place-items: center; font: 700 1em/1 var(--head); color: #ffe2a6; border: 1px solid rgba(255, 210, 122, .35); background: rgba(255, 210, 122, .12); }
.form { gap: .5em; }
.form label { display: grid; gap: .16em; font-size: .72em; font-weight: 700; color: var(--muted); }
.form label small { font-weight: 500; }
.form label span { padding: .5em .7em; border-radius: .55em; font-size: 1.2em; font-weight: 600; color: var(--text); background: rgba(255, 255, 255, .06); border: 1px solid var(--card-line); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: .5em; }
.m-btn { text-align: center; padding: .45em; border-radius: 99em; font-weight: 800; font-size: .88em; color: #1b1030; background: var(--magic); }
.list { gap: 0; padding: .3em .8em; }
.list p { display: flex; justify-content: space-between; gap: .5em; align-items: center; padding: .42em 0; font-size: .88em; font-weight: 600; }
.list p + p { border-top: 1px solid var(--card-line); }
.list em { font-style: normal; font-size: .76em; font-weight: 700; color: var(--gold-soft); }
.list em.warn { color: #ffb1b9; }
.ticket { position: relative; text-align: center; padding: .85em .8em; border-radius: .8em; border: 1.5px dashed rgba(255, 210, 122, .7); background: rgba(255, 210, 122, .08); }
.ticket::before, .ticket::after { content: ""; position: absolute; top: 50%; width: 1em; height: 1em; margin-top: -.5em; border-radius: 50%; background: #15153f; border: 1.5px dashed rgba(255, 210, 122, .7); }
.ticket::before { left: -.55em; } .ticket::after { right: -.55em; }
.ticket small { display: block; font-size: .76em; color: var(--muted); }
.ticket b { font: 700 1.5em/1.25 var(--head); letter-spacing: .06em; background: var(--magic); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fam { display: grid; grid-template-columns: 1fr 1fr; gap: .55em; }
.fam small { color: var(--gold-soft); font-weight: 700; font-size: .76em; }
.fam p { display: flex; flex-wrap: wrap; gap: .25em; margin-top: .3em; }
.fam i { font-style: normal; font-size: 1.1em; font-weight: 600; color: var(--text); padding: .1em .55em; border-radius: 99em; background: rgba(255, 255, 255, .08); }
.ring { display: block; width: 14.5em; height: 14.5em; margin: -.3em auto; overflow: visible; }
.ring-base { fill: none; stroke: rgba(255, 255, 255, .13); stroke-width: 1.5; stroke-dasharray: 3 4; }
.ring-gold { fill: none; stroke: url(#gold); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.live .ring-gold { animation: ink 2.6s .8s ease-in-out forwards; }
.ring-n circle { fill: #1d1b52; stroke: rgba(255, 210, 122, .75); stroke-width: 1.2; }
.ring-n text { fill: var(--text); font: 700 8px var(--body); text-anchor: middle; }
.ring-mid { font-size: 25px; text-anchor: middle; }
.m-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: .25em; font-size: .68em; font-weight: 700; text-align: center; color: var(--muted); }
.m-track span { padding-top: .6em; border-top: 3px solid rgba(255, 255, 255, .14); }
.m-track .done { color: var(--text); border-color: var(--gold-soft); }
.m-track .now { color: var(--pink); border-color: var(--pink); }
.m-days { text-align: center; padding: .3em; border-radius: .7em; background: rgba(255, 210, 122, .08); font-size: .85em; }
.m-days b { font: 700 1.5em/1 var(--head); color: var(--gold-soft); margin-right: .2em; }
.wish small, .mail small { color: var(--gold-soft); font-weight: 700; font-size: .76em; }
.wish p { font-size: .92em; line-height: 1.42; }
.m-marks { display: flex; flex-wrap: wrap; gap: .3em; font-size: .74em; font-weight: 700; }
.m-marks span { padding: .25em .6em; border-radius: 99em; background: rgba(255, 255, 255, .08); }
.reveal { position: relative; overflow: hidden; display: grid; gap: .25em; text-align: center; padding: 1.5em 1em; border-radius: 1em; border: 1px solid rgba(255, 210, 122, .55); background: linear-gradient(135deg, rgba(255, 210, 122, .15), rgba(245, 159, 198, .12), rgba(185, 156, 255, .15)); }
.reveal small { color: var(--muted); font-size: .82em; }
.reveal b { font: 700 1.42em/1.2 var(--head); }
.reveal span { font-size: .84em; color: var(--gold-soft); font-weight: 700; }
@keyframes shine { to { transform: translateX(260%) skewX(-18deg); } }
.reveal::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .3), transparent); transform: skewX(-18deg); }
.live .reveal::after { animation: shine 2.4s 1s ease-in-out 2; }
.chat { display: grid; gap: .45em; }
.chat p { max-width: 84%; padding: .5em .8em; border-radius: 1em; font-size: .88em; line-height: 1.36; }
.chat small { display: block; font-size: .76em; font-weight: 800; color: var(--gold-soft); }
.chat .them { background: rgba(255, 255, 255, .08); border-bottom-left-radius: .25em; }
.chat .me { justify-self: end; color: #1b1030; font-weight: 700; background: var(--magic); border-bottom-right-radius: .25em; }
.tbl { width: 100%; border-collapse: collapse; font-size: .84em; }
.tbl th { padding: .45em .3em; font-size: .86em; color: var(--gold-soft); text-align: center; border-bottom: 1px solid var(--line); }
.tbl td { padding: .44em .3em; text-align: center; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.tbl th:first-child, .tbl td:first-child { text-align: left; font-weight: 600; }
.tbl .y { color: #7ee2a8; font-weight: 800; } .tbl .n { color: rgba(255, 255, 255, .34); }
.surprise { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: .6em; margin: .3em 0; }
.surprise b { font: 700 1.7em/1.2 var(--head); background: var(--magic); -webkit-background-clip: text; background-clip: text; color: transparent; }
.surprise small { color: var(--muted); font-size: .8em; line-height: 1.25; display: block; }
.mail { gap: .2em; } .mail p { font-size: .86em; color: var(--muted); }

/* gold ink drawings */
.ink { width: 10em; height: 10em; fill: none; stroke: url(#gold); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 .5em rgba(255, 210, 122, .35)); }
.ink.small { width: 6em; height: 6em; }
.ink.gift { width: 12em; height: 9em; align-self: center; }
.ink path, .ink circle { stroke-dasharray: 1; }
.live .ink path, .live .ink circle { stroke-dashoffset: 1; animation: ink 1.8s .5s ease-in-out forwards; }
.numeral { font: 700 3.4em/1 var(--head); background: var(--magic); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chapter h2, .halfway h2 { font-size: 1.75em; }
.the-end { font-size: 2.5em !important; }

/* ---- Buttons ---- */
.btn-gold, .btn-line { display: inline-flex; align-items: center; justify-content: center; min-height: 2.9em; padding: .6em 1.5em; border-radius: 99em; font-weight: 800; font-size: 1em; text-decoration: none; cursor: pointer; }
.btn-gold { border: 0; color: #1b1030; background: var(--magic); box-shadow: 0 .8em 2em -.7em rgba(245, 159, 198, .85); transition: transform .2s, filter .2s; }
.btn-gold:hover { transform: translateY(-2px); filter: brightness(1.07); }
.btn-line { color: var(--text); border: 1px solid rgba(255, 210, 122, .4); background: rgba(255, 255, 255, .05); }
.btn-line:hover { background: rgba(255, 210, 122, .1); }
.home-link { background: none; border: 0; padding: .5em; font-size: .9em; font-weight: 700; color: var(--gold-soft); text-decoration: none; cursor: pointer; }
.home-link:hover { text-decoration: underline; text-underline-offset: .25em; }
.cta { width: 100%; display: grid; gap: .55em; margin-top: .5em; }
:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 2px; }

/* ---- The covers ---- */
.cover { padding: 2.5em 2.2em; background: radial-gradient(20em 17em at 50% 28%, rgba(245, 159, 198, .26), transparent 70%), radial-gradient(22em 18em at 80% 100%, rgba(185, 156, 255, .28), transparent 70%), linear-gradient(150deg, #2c1b63, #15123f 55%, #2a1553); }
.cover::before { inset: 1.1em; border: 2px solid rgba(255, 210, 122, .65); border-radius: .6em; box-shadow: inset 0 0 0 .3em rgba(21, 18, 63, .9), inset 0 0 0 calc(.3em + 1px) rgba(255, 210, 122, .4); }
.cover-in { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .85em; text-align: center; }
.cover-mark { width: 6em; height: 6em; filter: drop-shadow(0 0 1.3em rgba(245, 159, 198, .65)); }
@keyframes float { 50% { transform: translateY(-.45em); } }
.cover-mark { animation: float 4.5s ease-in-out infinite; }
.cover-kick { margin: .4em 0 0 !important; font-size: .76em; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-soft); }
.cover h1 { margin: 0; font: 700 2.5em/1.14 var(--head); letter-spacing: -.02em; }
@keyframes foil { to { background-position: 220% 0; } }
.foil { background: linear-gradient(100deg, #ffd27a, #fff6d0 22%, #f59fc6 45%, #b99cff 68%, #ffd27a); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: foil 5s linear infinite; }
.cover-sub { max-width: 17em; color: #d7d9ef; font-size: 1em; margin-bottom: .7em !important; }
.cover-url { font: 600 .74em/1 var(--head); color: rgba(255, 210, 122, .8); margin-top: .8em !important; }

/* ---- The bar under the book ---- */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; height: var(--bar); display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 12px; background: rgba(10, 15, 36, .72); border-top: 1px solid rgba(255, 255, 255, .08); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.bar-btn { width: 42px; height: 42px; flex: none; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .13); background: rgba(255, 255, 255, .05); cursor: pointer; transition: background .2s, opacity .2s; }
.bar-btn:hover:not(:disabled) { background: rgba(255, 210, 122, .16); }
.bar-btn:disabled { opacity: .32; cursor: default; }
.bar-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#sound .mute { display: none; } #sound.muted .mute { display: block; } #sound.muted .wave { display: none; } #sound.muted { color: var(--muted); }
#scrub { flex: 0 1 340px; min-width: 40px; accent-color: #ffd27a; height: 24px; cursor: pointer; }
#where { flex: none; min-width: 58px; text-align: center; font: 600 12px/1 var(--head); color: var(--gold-soft); }
.rotate-hint { display: none; }

@media (max-height: 460px) and (orientation: landscape) {
  .rotate-hint { display: block; position: fixed; z-index: 7; top: 8px; left: 50%; transform: translateX(-50%); margin: 0; padding: 5px 14px; border-radius: 99px; font-size: 13px; font-weight: 700; color: #1b1030; background: var(--magic); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ring-gold, .ink path, .ink circle { stroke-dashoffset: 0 !important; }
}

/* The pages wait here until book.js binds them (without scripts: see <noscript> in book.html). */
#pages { display: none; }

/* ================ The enchantment: a spellbook of gold ink on a moonlit night ================ */
:root { --display: "Cinzel", serif; --caps: "Cinzel", serif; --story: "Cormorant Garamond", Georgia, serif; }
body { background: radial-gradient(70% 55% at 50% 48%, #2a1c66 0, transparent 70%), linear-gradient(180deg, #060818, #0d0f2e 55%, #17123f); }
#aurora { position: fixed; inset: 0; width: 100%; height: 72%; opacity: .75; pointer-events: none; mix-blend-mode: screen; }
#dust { z-index: 0; }
.circle { position: absolute; left: 50%; top: 50%; width: min(150vh, 135vw); height: min(150vh, 135vw); margin: calc(min(150vh, 135vw) / -2) 0 0 calc(min(150vh, 135vw) / -2); fill: none; stroke: #ffd27a; stroke-width: .9; opacity: .2; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.c1, .c2 { transform-origin: 300px 300px; animation: spin 120s linear infinite; }
.c2 { animation-duration: 70s; animation-direction: reverse; }
#flash { position: absolute; left: 50%; top: 50%; width: 70em; height: 70em; margin: -35em 0 0 -35em; border-radius: 50%; opacity: 0; pointer-events: none; z-index: 3; mix-blend-mode: screen;
  background: radial-gradient(closest-side, rgba(255, 246, 208, .95), rgba(255, 210, 122, .55) 30%, rgba(245, 159, 198, .22) 55%, transparent 75%); }
@keyframes levitate { 50% { transform: translateX(var(--x)) translateY(-.55em); } }
.book.at-start { --x: -13em; animation: levitate 5s ease-in-out infinite; }
.book.at-end { --x: 13em; animation: levitate 5s ease-in-out infinite; }
.book::before { content: ""; position: absolute; left: 50%; right: -2em; bottom: -2.6em; height: 3.4em; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 190, 110, .42), transparent); transform: translateZ(-3px); }
.book:not(.at-start):not(.at-end)::before { left: -2em; }
.one-page .book::before { left: -1em; right: -1em; }

/* gilded edges of the pages under the leaf, the leather and its gold line */
.board { background: linear-gradient(135deg, #3a1f78, #1a1250 55%, #34186c); border-color: rgba(255, 210, 122, .7); box-shadow: 0 2.6em 5em -1em rgba(0, 0, 0, .85), 0 0 6em .5em rgba(255, 190, 110, .2), 0 0 3em rgba(185, 156, 255, .3); }
/* The binding: one even margin all round and one continuous gold outline */
.board { top: -.4em; bottom: -.4em; width: 26.4em; border: 1px solid rgba(255, 210, 122, .75); border-radius: .6em; }
.board-l { border-radius: .6em 0 0 .6em; border-right: 0; } .board-r { border-radius: 0 .6em .6em 0; border-left: 0; }
.one-page .board-r { left: -.4em; width: 26.8em; border: 1px solid rgba(255, 210, 122, .75); border-radius: .6em; }
.face { border-radius: 0 .22em .22em 0; } .face.back { border-radius: .22em 0 0 .22em; }
.one-page .face, .one-page .face.back { border-radius: .22em; }
/* the covers are the binding itself: same size, same outline */
.face.cover-face { inset: -.4em -.4em -.4em 0; border-radius: 0 .6em .6em 0; box-shadow: inset 0 0 0 1px rgba(255, 210, 122, .75); }
.face.back.cover-face { inset: -.4em -.4em -.4em 0; border-radius: .6em 0 0 .6em; }
.one-page .face.cover-face { inset: -.4em; border-radius: .6em; }
.cover-face .pg::after { border-radius: inherit; }

/* the page: grain, ornate corners, a round belly towards the spine, glowing edge while it turns */
.pg { font-variant-ligatures: none; font-feature-settings: "liga" 0, "dlig" 0, "clig" 0; font-family: var(--story); font-size: 1.14em; line-height: 1.3; font-weight: 500; padding: 3.5em 2.5em 3.5em; color: #f5efe0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .9 0 0 0 0 .75 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E"), radial-gradient(20em 15em at 50% 44%, rgba(120, 92, 220, .26), transparent 72%), radial-gradient(10em 8em at 88% 8%, rgba(255, 210, 122, .13), transparent 70%), linear-gradient(170deg, #201a58, #151343 62%, #1d1650); }
.pg::before { inset: .7em; border: 4.2em solid transparent; border-radius: 0; background: none; opacity: .95; border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 360' fill='none' stroke='%23ffd27a' stroke-width='2.400' stroke-linecap='butt'%3E%3Cg transform='translate(0 0)'%3E%3Cpath d='M6 120V38A32 32 0 0 0 38 6h82'/%3E%3Cpath opacity='.6' d='M16 120V52A36 36 0 0 0 52 16h68'/%3E%3Cpath opacity='.85' d='M36 78c0-23 19-42 42-42'/%3E%3Cpath fill='%23ffd27a' stroke='none' d='M15 3l3 9 9 3-9 3-3 9-3-9-9-3 9-3z'/%3E%3Ccircle cx='36' cy='86' r='2.800' fill='%23ffd27a' stroke='none'/%3E%3Ccircle cx='86' cy='36' r='2.800' fill='%23ffd27a' stroke='none'/%3E%3C/g%3E%3Cg transform='translate(360 0) scale(-1 1)'%3E%3Cpath d='M6 120V38A32 32 0 0 0 38 6h82'/%3E%3Cpath opacity='.6' d='M16 120V52A36 36 0 0 0 52 16h68'/%3E%3Cpath opacity='.85' d='M36 78c0-23 19-42 42-42'/%3E%3Cpath fill='%23ffd27a' stroke='none' d='M15 3l3 9 9 3-9 3-3 9-3-9-9-3 9-3z'/%3E%3Ccircle cx='36' cy='86' r='2.800' fill='%23ffd27a' stroke='none'/%3E%3Ccircle cx='86' cy='36' r='2.800' fill='%23ffd27a' stroke='none'/%3E%3C/g%3E%3Cg transform='translate(0 360) scale(1 -1)'%3E%3Cpath d='M6 120V38A32 32 0 0 0 38 6h82'/%3E%3Cpath opacity='.6' d='M16 120V52A36 36 0 0 0 52 16h68'/%3E%3Cpath opacity='.85' d='M36 78c0-23 19-42 42-42'/%3E%3Cpath fill='%23ffd27a' stroke='none' d='M15 3l3 9 9 3-9 3-3 9-3-9-9-3 9-3z'/%3E%3Ccircle cx='36' cy='86' r='2.800' fill='%23ffd27a' stroke='none'/%3E%3Ccircle cx='86' cy='36' r='2.800' fill='%23ffd27a' stroke='none'/%3E%3C/g%3E%3Cg transform='translate(360 360) scale(-1 -1)'%3E%3Cpath d='M6 120V38A32 32 0 0 0 38 6h82'/%3E%3Cpath opacity='.6' d='M16 120V52A36 36 0 0 0 52 16h68'/%3E%3Cpath opacity='.85' d='M36 78c0-23 19-42 42-42'/%3E%3Cpath fill='%23ffd27a' stroke='none' d='M15 3l3 9 9 3-9 3-3 9-3-9-9-3 9-3z'/%3E%3Ccircle cx='36' cy='86' r='2.800' fill='%23ffd27a' stroke='none'/%3E%3Ccircle cx='86' cy='36' r='2.800' fill='%23ffd27a' stroke='none'/%3E%3C/g%3E%3Cpath d='M120 6h120M120 354h120M6 120v120M354 120v120'/%3E%3Cpath opacity='.6' d='M120 16h120M120 344h120M16 120v120M344 120v120'/%3E%3C/svg%3E") 120 / 4.2em stretch; }
.pg::after { background: linear-gradient(90deg, rgba(2, 2, 14, .72), rgba(2, 2, 14, .22) 1.3em, rgba(255, 255, 255, .05) 3em, transparent 5em); }
.face.back .pg::after { background: linear-gradient(270deg, rgba(2, 2, 14, .72), rgba(2, 2, 14, .22) 1.3em, rgba(255, 255, 255, .05) 3em, transparent 5em); }
.edge { position: absolute; top: 0; bottom: 0; right: 0; width: .55em; opacity: 0; pointer-events: none; background: linear-gradient(270deg, #fff6d0, rgba(255, 210, 122, .6) 40%, transparent); box-shadow: 0 0 1.6em .4em rgba(255, 210, 122, .75); }
.face.back .edge { right: auto; left: 0; transform: scaleX(-1); }
.running { top: 2.75em; font: 600 .56em/1 var(--caps); letter-spacing: .26em; color: rgba(255, 215, 140, .85); }
.folio { bottom: 2.75em; font: 600 .68em/1 var(--caps); letter-spacing: .08em; color: #ffd27a; }
.pg-in { gap: .62em; }
.kick { font: 600 .6em/1.3 var(--caps); letter-spacing: .24em; text-align: center; color: #ffd27a; }
.pg h2 { margin: 0; padding: 0 0 1.05em; font: 700 1.42em/1.14 var(--display); letter-spacing: 0; text-align: center; color: transparent; background: linear-gradient(100deg, #ffd27a, #fff6d0 20%, #f7b5cf 42%, #cdb6ff 62%, #ffd27a 82%) 0 0/220% 100% text, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 24' fill='none' stroke='%23ffd27a' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M6 12h78c10 0 14-8 8-10s-9 6-3 8M234 12h-78c-10 0-14-8-8-10s9 6 3 8'/%3E%3Cpath fill='%23ffd27a' stroke='none' d='M120 2l3 7 7 3-7 3-3 7-3-7-7-3 7-3z'/%3E%3C/svg%3E") 50% 100%/9em .9em no-repeat; -webkit-background-clip: text, border-box; background-clip: text, border-box; text-shadow: 0 0 1.2em rgba(255, 210, 122, .22); }
.live h2 { animation: foil 7s linear infinite, rise .7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: 0s, calc(var(--d, 0) * 95ms + 420ms); }
.lead { font-size: 1.16em; font-style: italic; line-height: 1.26; color: #fff4dc; text-shadow: 0 0 1em rgba(255, 210, 122, .25); }
.note { font-size: .92em; font-style: italic; line-height: 1.26; color: #e2d8c6; border-left-color: #f59fc6; }
.dropcap::first-letter { font: 700 3.5em/.8 "Cinzel Decorative", var(--display); margin: .05em .1em 0 0; color: #ffd27a; text-shadow: 0 0 .35em rgba(255, 210, 122, .7); }
.facts { font-size: 1em; line-height: 1.26; gap: .55em; } .facts.tight { font-size: .97em; gap: .28em; }
.facts li { color: #e8e0d0; } .facts li b { color: #ffe6ad; font-weight: 700; }
.pg b { font-weight: 700; }
.card { position: relative; padding: .62em .78em; border-radius: .35em; border: 1px solid rgba(255, 210, 122, .42); background: linear-gradient(135deg, rgba(255, 210, 122, .09), rgba(185, 156, 255, .07)); box-shadow: inset 0 0 1.4em rgba(255, 210, 122, .05); }
.card b { font: 600 .76em/1.25 var(--caps); letter-spacing: .03em; color: #ffe6ad; }
.card p { font-size: .92em; line-height: 1.2; color: #e2dacb; }
.ico { width: 2em; height: 2em; display: grid; place-items: center; font-size: 1em; border-radius: 50%; border: 1px solid rgba(255, 210, 122, .75); background: radial-gradient(circle at 35% 30%, rgba(255, 226, 166, .32), rgba(30, 22, 80, .9)); box-shadow: 0 0 .9em rgba(255, 210, 122, .35); }
.toc button { font: 600 .8em/1.3 var(--caps); letter-spacing: .02em; padding: .72em .3em; }
.toc em { font: 700 1em/1 var(--caps); }
.trail li::before, .steps li::before { font: 700 .82em/1 var(--caps); color: #ffe6ad; background: radial-gradient(circle at 35% 30%, rgba(255, 226, 166, .34), #1d1650); box-shadow: 0 0 0 1px #ffd27a, 0 0 .9em rgba(255, 210, 122, .5); }
.trail b { font: 600 .86em/1.3 var(--caps); color: #ffe6ad; }
.trail span { font-size: .97em; line-height: 1.18; color: #e2dacb; }
.steps li { font-size: 1em; line-height: 1.22; color: #e2dacb; } .steps li b { color: #ffe6ad; }
.mock, .chat, .tbl, .m-track, code, kbd { font-family: var(--body); font-size: .8em; }
.mock { border-color: rgba(255, 210, 122, .45); border-radius: .6em; box-shadow: 0 0 2em rgba(185, 156, 255, .22), 0 .8em 1.8em -1em #000; }
.chat { font-size: .86em; } .tbl { font-size: .74em; }
.ticket b, .surprise b { font-family: var(--caps); }
.reveal { border-radius: .4em; box-shadow: 0 0 2.4em rgba(255, 210, 122, .35); }
.reveal small { font-size: .95em; color: #efe6d3; } .reveal b { font: 700 1.2em/1.2 var(--display); } .reveal span { font-size: .92em; }
.ring-gold { filter: drop-shadow(0 0 3px #ffd27a); }
.numeral { margin-top: .3em; font: 600 .7em/1 var(--caps); letter-spacing: .3em; text-transform: uppercase; color: #ffd27a; background: none; -webkit-text-fill-color: currentColor; }
.chapter h2, .halfway h2 { font-size: 1.6em; }
.the-end { font-size: 2.3em !important; }
.sigil { position: relative; width: 15.5em; height: 15.5em; display: grid; place-items: center; }
.sig-ring { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: #ffd27a; stroke-width: 1; animation: spin 46s linear infinite; }
.sig-ring .dash { stroke-dasharray: 2 7; }
.sig-ring text { fill: #ffd27a; stroke: none; font: 600 13.5px var(--caps); }
.sigil .ink { width: 7.4em; height: 7.4em; }
.sigil::before { content: ""; position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 210, 122, .28), transparent); animation: pulse 3.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.88); } }
.ink { stroke-width: 4; }
.btn-gold { font-family: var(--caps); font-weight: 700; letter-spacing: .04em; font-size: .86em; background: linear-gradient(100deg, #ffd27a, #fff0c4, #f59fc6, #b99cff, #f59fc6, #fff0c4, #ffd27a) 0 0/200% 100%; animation: btn-foil 6s linear infinite; box-shadow: 0 0 2em rgba(255, 210, 122, .55); }
@keyframes btn-foil { to { background-position: 200% 0; } }
.btn-line { font: 600 .8em/1 var(--caps); border-radius: 99em; }
.home-link { font: 600 .72em/1.3 var(--caps); letter-spacing: .03em; }

/* the cover: tooled leather, gold frame, a slowly turning seal */
.cover { padding: 2.6em 2em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .9 0 0 0 0 .75 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E"), radial-gradient(17em 15em at 50% 30%, rgba(255, 180, 110, .3), transparent 70%), radial-gradient(22em 17em at 85% 100%, rgba(185, 156, 255, .34), transparent 70%), linear-gradient(150deg, #47207f, #1e1357 52%, #3c1a70); }
.cover::before { inset: .9em; box-shadow: none; opacity: 1; }
.cover::after { background: linear-gradient(115deg, transparent 38%, rgba(255, 240, 200, .16) 49%, transparent 60%) -30em 0/300% 100%; animation: sheen 6s ease-in-out infinite; }
@keyframes sheen { 60%, 100% { background-position: 30em 0; } }
.cover-in { gap: .55em; }
.cover-sigil { width: 12.5em; height: 12.5em; }
.cover-sigil .cover-mark { width: 5.6em; height: 5.6em; position: relative; }
.cover-kick { font: 600 .62em/1 var(--caps); letter-spacing: .3em; margin: 0 !important; }
.cover h1 { font: 700 2.2em/1.12 var(--display); color: #fff4dc; text-shadow: 0 0 .6em rgba(255, 210, 122, .45); }
.foil { text-shadow: none; filter: drop-shadow(0 0 .25em rgba(255, 210, 122, .5)); }
.cover-sub { font-size: 1.06em; font-style: italic; line-height: 1.2; color: #f3e9d6; }
.cover-url { font: 600 .66em/1 var(--caps); letter-spacing: .14em; }
.bar { background: rgba(8, 8, 30, .78); border-top-color: rgba(255, 210, 122, .25); backdrop-filter: none; -webkit-backdrop-filter: none; }
.bar-btn { border-color: rgba(255, 210, 122, .4); color: #ffe6ad; }
#where { font: 700 13px/1 var(--caps); }
.one-page .circle { opacity: .22; }
@media (max-width: 900px), (max-aspect-ratio: 1/1) { .ink { filter: none; } .ring-gold { filter: none; } .foil { filter: none; } #aurora { mix-blend-mode: normal; opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .book.at-start { transform: translateX(-13em); } .book.at-end { transform: translateX(13em); } }

#scrub { -webkit-appearance: none; appearance: none; height: 28px; background: none; }
#scrub::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(90deg, #ffd27a, #f59fc6, #b99cff); }
#scrub::-moz-range-track { height: 3px; border-radius: 3px; background: linear-gradient(90deg, #ffd27a, #f59fc6, #b99cff); }
#scrub::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7.500px; border-radius: 50%; border: 2px solid #fff0c4; background: #ffd27a; box-shadow: 0 0 12px rgba(255, 210, 122, .9); }
#scrub::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff0c4; background: #ffd27a; box-shadow: 0 0 12px rgba(255, 210, 122, .9); }
.pg h2, .cover h1, .reveal b { font-variant-ligatures: none !important; font-feature-settings: "liga" 0, "dlig" 0, "clig" 0, "calt" 0 !important; }
.face.back .cover::after { background: linear-gradient(115deg, transparent 38%, rgba(255, 240, 200, .16) 49%, transparent 60%) -30em 0/300% 100%; }
.ring-n text { font-size: 6.2px; }
#music.playing { color: #1b1030; border-color: #ffd27a; background: linear-gradient(100deg, #ffd27a, #f59fc6); box-shadow: 0 0 16px rgba(255, 210, 122, .7); }
@media (max-width: 380px) { #where { display: none; } .bar { gap: 6px; padding: 0 8px; } }
/* the covers: one smooth surface, no fold shadow from the inner pages */
.pg.cover::after, .face.back .pg.cover::after { background: linear-gradient(115deg, transparent 38%, rgba(255, 240, 200, .14) 49%, transparent 60%) -30em 0/300% 100% no-repeat; }
.surprise { grid-template-columns: minmax(0, 13em); justify-content: center; }

/* Phones: flat paper. A sheet is cut along the fold line; the part past the fold is the flap lying over the page. */
.one-page .stage { perspective: none; }
.one-page .tilt, .one-page .book, .one-page .leaves, .one-page .leaf { transform-style: flat; }
.one-page .face { backface-visibility: visible; -webkit-backface-visibility: visible; }
.p-fold { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-origin: 0 0; }
.p-clip { position: absolute; right: 0; top: -60em; width: 70em; height: 120em; overflow: hidden; pointer-events: none; }
.p-un { position: absolute; left: 70em; top: 60em; width: 26em; height: 41em; transform-origin: 0 0; pointer-events: auto; }
.leaf.flat .p-clip { overflow: visible; }
.p-flap { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.p-flap .p-un { pointer-events: none; }
.p-castbox { position: absolute; inset: 0; overflow: hidden; border-radius: .22em; }
.p-cast { position: absolute; left: 0; top: -60em; width: 7em; height: 120em; background: linear-gradient(90deg, rgba(3, 3, 18, .62), rgba(3, 3, 18, .2) 38%, transparent); }
.p-paper { position: absolute; inset: 0; overflow: hidden; border-radius: .22em; box-shadow: 0 0 2.6em rgba(3, 3, 18, .7); }
.p-sheen { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-origin: 0 0; }
.p-sheen::after { content: ""; position: absolute; left: 0; top: -60em; width: 15em; height: 120em;
  background: linear-gradient(90deg, rgba(3, 3, 18, .62), rgba(255, 240, 210, .13) 16%, rgba(255, 240, 210, .04) 42%, rgba(3, 3, 18, .22) 100%); }
