@font-face {
  font-family: "Caveat";
  src: url("../fonts/Caveat.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --serif: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --ink: #2a2119;
  --sepia: #7d6747;
  --paper: #f4e9cc;
  --paper-2: #ecdcb3;
  --cream: #f3e9d2;
  --wax: #a42e3a;
  --c: #a42e3a;
  --desk: #1a110b;
  --maxw: 468px;
  --hs: 1;      /* handwriting size factor of the language (set by app.js) */
  --hl: 1.16;   /* handwriting line height of the language */
  --dir: 1;     /* -1 in right-to-left languages: flips the slide animations */
  --grain: url("../img/grain-env.png") 0 0 / 128px 128px repeat;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; background: #150d08; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--serif);
  color: var(--cream);
  overflow-x: hidden;
}
/* The quill and the paper tilt can poke past the edge; never let that widen the page on a phone. */
@supports (overflow: clip) { html, body { overflow-x: clip; } }
/* (the paper-grain overlay with mix-blend-mode that used to sit here forced the whole page to be blended on every frame; it changed the picture by about one colour level, so it is gone) */

/* ---------------------------------------------------------------- desk decoration */
.desk {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(120% 100% at 50% 40%, transparent 55%, rgba(0, 0, 0, .5)),
    radial-gradient(1100px 640px at 8% 104%, rgba(255, 168, 70, .22), transparent 62%),
    radial-gradient(900px 600px at 50% 38%, rgba(96, 58, 28, .35), transparent 70%),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .12) 0 3px, transparent 3px 150px),
    linear-gradient(#2b1c12, #150d08);
}
.glow {
  position: absolute; left: -12vmin; bottom: -14vmin; width: 62vmin; height: 62vmin; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 176, 80, .30), transparent);
  animation: flicker 3.4s infinite steps(1, end);
}
@keyframes flicker {
  0% { opacity: .92; transform: scale(1); } 7% { opacity: .78; transform: scale(.985); }
  14% { opacity: 1; transform: scale(1.015); } 31% { opacity: .86; } 44% { opacity: .98; transform: scale(1.01); }
  58% { opacity: .8; transform: scale(.99); } 73% { opacity: 1; } 88% { opacity: .88; transform: scale(1.005); }
}
.candle { position: absolute; left: 3vw; bottom: 3vh; width: 44px; opacity: .9; }
.inkwell { position: absolute; right: 3vw; bottom: 3vh; width: 84px; opacity: .9; }
@media (max-width: 900px) { .candle, .inkwell { opacity: .3; transform: scale(.8); transform-origin: bottom; } }

/* ---------------------------------------------------------------- shell */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  background: linear-gradient(rgba(21, 13, 8, .94) 35%, rgba(21, 13, 8, 0));
  display: flex; justify-content: space-between; align-items: center;
  padding: max(10px, env(safe-area-inset-top)) 14px 10px;
  pointer-events: none;
}
.top > * { pointer-events: auto; }
.brand { font: 700 11px/1 var(--serif); letter-spacing: .26em; text-transform: uppercase; color: #b9a07a; opacity: .85; }
.tools { display: flex; align-items: center; gap: 8px; }
.langwrap { position: relative; }
.lang {
  height: 40px; display: inline-flex; align-items: center; gap: 6px; padding: 0 13px 0 10px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(243, 233, 210, .25); background: rgba(20, 12, 7, .82); color: var(--cream);
  font: 700 12px/1 var(--serif); letter-spacing: .12em;
}
.lang svg { width: 18px; height: 18px; }
.langmenu {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 30; min-width: 196px; margin: 0; padding: 6px; list-style: none;
  max-height: min(70vh, 440px); overflow: auto; border-radius: 12px; background: #1d130c; border: 1px solid rgba(243, 233, 210, .22); box-shadow: 0 18px 36px rgba(0, 0, 0, .6);
}
.langmenu[hidden] { display: none; }
.langitem {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border: 0; border-radius: 8px;
  background: none; color: var(--cream); font: 600 16px/1.25 var(--serif); text-align: start; cursor: pointer;
}
.langitem:hover, .langitem:focus-visible { background: rgba(243, 233, 210, .1); outline: none; }
.langitem[aria-checked="true"] { color: #f2c585; }
.langitem[aria-checked="true"]::after { content: "\2713"; }
.snd {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(243, 233, 210, .25); background: rgba(20, 12, 7, .82); color: var(--cream); cursor: pointer;
}
.snd svg { width: 20px; height: 20px; }
.snd .off { display: none; }
.snd[aria-pressed="false"] .on { display: none; }
.snd[aria-pressed="false"] .off { display: block; }
.snd:focus-visible, .lang:focus-visible, .chip:focus-visible, .btn:focus-visible, .opt:focus-visible, .env:focus-visible, .link:focus-visible, .inkfield input:focus-visible {
  outline: 3px solid #ffd58a; outline-offset: 3px;
}

main { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 64px 16px 72px; }
.screen { display: none; }
.screen.is-active { display: block; animation: screenIn .5s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes screenIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.kicker { margin: 0 0 8px; font: 700 12px/1.2 var(--serif); letter-spacing: .24em; text-transform: uppercase; color: var(--sepia); }
.dark .kicker, .kicker.light { color: #b9a07a; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- intro */
.landing { text-align: center; padding-top: 4px; }
.ribbon { display: none; margin: 0 auto 14px; padding: 8px 14px; max-width: 360px; border-radius: 999px; font: 600 14px/1.3 var(--serif); background: rgba(243, 233, 210, .1); border: 1px solid rgba(243, 233, 210, .25); }
.ribbon.show { display: flex; align-items: center; gap: 10px; justify-content: center; }
.ribbon .seal { width: 26px; height: 26px; flex: none; }
.landing h1 { margin: 6px 0 10px; font: 700 clamp(30px, 9.2vw, 42px)/1.06 var(--serif); letter-spacing: .01em; text-shadow: 0 2px 0 rgba(0, 0, 0, .35); text-wrap: balance; }
.landing h1 em { font-style: italic; color: #f2c585; }
.landing .lede { margin: 0 auto 6px; max-width: 380px; font: 400 16.5px/1.45 var(--serif); color: #e6d9b8; text-wrap: pretty; }

/* The envelope, seen from the back. Layers, bottom to top: back, flap once it is open, letter, front pocket,
   flap while closed, seal. The flap swaps layers half way through opening (class "flapback", set from app.js). */
.env {
  position: relative; display: block; width: min(312px, 78vw); aspect-ratio: 3 / 2; margin: 34px auto 60px; padding: 0; border: 0;
  background: none; cursor: pointer; perspective: 1100px; color: inherit;
  animation: envFloat 5.5s ease-in-out infinite;
  transition: transform .55s cubic-bezier(.5, 0, .7, .4), opacity .45s;
}
@keyframes envFloat { 0%, 100% { translate: 0 0; rotate: -1.4deg; } 50% { translate: 0 -7px; rotate: .8deg; } }
.env > span { position: absolute; left: 0; right: 0; }
.env-back {
  inset: 0; z-index: 0; border-radius: 6px;
  background: var(--grain), linear-gradient(#bfa56b, #a98f57);
  box-shadow: 0 30px 50px rgba(0, 0, 0, .55), 0 8px 14px rgba(0, 0, 0, .3);
}
.env-flap {
  top: 0; height: 58%; z-index: 4; transform-origin: 50% 0; border-radius: 6px 6px 0 0;
  background: var(--grain), linear-gradient(#e6d4a2, #d2bc83);
  clip-path: polygon(0 0, 100% 0, 53% 97%, 50% 100%, 47% 97%);
  transition: transform .52s cubic-bezier(.55, 0, .35, 1) .08s;
}
.env-flap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(255, 255, 255, .18), transparent 40%, rgba(90, 60, 25, .18)); }
.env > .env-paper {
  z-index: 2; left: 7%; right: 7%; top: 9%; height: 84%; border-radius: 2px; padding: 9% 9% 0;
  background: var(--grain), linear-gradient(#fbf3dc, #eedfb6);
  box-shadow: 0 -1px 4px rgba(0, 0, 0, .18);
  transition: transform .8s cubic-bezier(.25, 1.15, .4, 1), box-shadow .8s;
}
.env-paper b { display: block; width: 46%; height: 9px; margin-bottom: 9px; border-radius: 4px; background: rgba(164, 46, 58, .55); }
.env-paper i { display: block; height: 2px; margin-top: 11px; background: rgba(70, 50, 25, .22); border-radius: 2px; }
.env-paper i:nth-of-type(2) { width: 88%; } .env-paper i:nth-of-type(4) { width: 72%; } .env-paper i:nth-of-type(5) { width: 40%; }
.env-front {
  inset: 0; z-index: 3; border-radius: 6px;
  background: var(--grain), linear-gradient(168deg, #ead9aa, #d5be86);
  clip-path: polygon(0 0, 50% 55%, 100% 0, 100% 100%, 0 100%);
}
.env-front::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top right, transparent calc(50% - .8px), rgba(90, 60, 25, .28) 50%, transparent calc(50% + .8px)) 0 0 / 50% 100% no-repeat,
    linear-gradient(to top left, transparent calc(50% - .8px), rgba(90, 60, 25, .28) 50%, transparent calc(50% + .8px)) 100% 0 / 50% 100% no-repeat;
}
.env-front::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 100%, transparent 60%, rgba(70, 45, 15, .2)); }
.env > .env-seal { z-index: 5; left: 50%; right: auto; top: 57%; width: 25%; aspect-ratio: 1; translate: -50% -50%; }
.env-seal .seal { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .45)); transition: transform .65s cubic-bezier(.3, .5, .4, 1), opacity .6s .1s; }
.env-seal .half.l { clip-path: polygon(0 0, 54% 0, 47% 30%, 57% 52%, 46% 74%, 52% 100%, 0 100%); }
.env-seal .half.r { clip-path: polygon(54% 0, 100% 0, 100% 100%, 52% 100%, 46% 74%, 57% 52%, 47% 30%); }
/* The seal used to pulse by scaling. Scaling a seal made of two clipped, shadowed halves inside a 3D envelope made the
   browser re-draw it every frame (64% of the main thread on a standing intro, measured with tools/perf.mjs IDLE=...).
   Now a glow behind it breathes (opacity only) and a ring spreads out from it (transform and opacity only). */
.env-seal::before { content: ""; position: absolute; inset: -46%; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgba(255, 205, 130, .6), rgba(255, 170, 90, .2) 55%, transparent); animation: sealGlow 2.8s ease-in-out infinite; }
@keyframes sealGlow { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
.env-seal::after { content: ""; position: absolute; inset: -14%; border-radius: 50%; border: 2px solid rgba(242, 197, 133, .55); animation: sealRing 2.8s ease-out infinite; pointer-events: none; }
@keyframes sealRing { 0% { transform: scale(.75); opacity: 0; } 30% { opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
@media (hover: hover) {
  .env:not(.open):hover .env-flap { transform: rotateX(16deg); }
  .env:not(.open):hover .env-seal { scale: 1.1; animation-play-state: paused; }
  .env:not(.open):hover .env-paper { transform: translateY(-6%); }
}
.env-hint { top: 100%; margin-top: 18px; text-align: center; font: 700 calc(24px * var(--hs)) / 1.2 var(--hand); color: #f2c585; animation: nudge 2.2s ease-in-out infinite; transition: opacity .3s; }
@keyframes nudge { 50% { transform: translateY(-3px); opacity: .75; } }

.env.open { animation-play-state: paused; cursor: default; }
.env.open .env-hint { opacity: 0; animation: none; }
.env.open .env-seal { animation: none; }
.env.open .env-seal::after, .env.open .env-seal::before { display: none; }
.env.open .half.l { transform: translate(-46%, 120%) rotate(-38deg); opacity: 0; }
.env.open .half.r { transform: translate(42%, 135%) rotate(31deg); opacity: 0; }
.env.open .env-flap { transform: rotateX(180deg); }
.env.flapback .env-flap { z-index: 1; background: var(--grain), repeating-linear-gradient(45deg, #7d2a32 0 6px, #6d2229 6px 12px); }
.env.flapback .env-flap::after { background: linear-gradient(rgba(0, 0, 0, .25), transparent); }
.env.rise .env-paper { transform: translateY(-64%); box-shadow: 0 -6px 18px rgba(0, 0, 0, .3); }
.env.leave { transform: translateY(70px) scale(.92); opacity: 0; }
#intro .kicker, #intro h1, #intro .lede, #intro .four, #intro .ribbon { transition: opacity .35s, transform .45s cubic-bezier(.4, 0, .2, 1); }
#intro.leaving .kicker, #intro.leaving h1, #intro.leaving .lede, #intro.leaving .ribbon { opacity: 0; transform: translateY(-14px); }
#intro.leaving .four { opacity: 0; transform: translateY(14px); }


.four { list-style: none; display: flex; justify-content: center; gap: 14px; margin: 26px 0 0; padding: 0; }
.four li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; width: 78px; overflow-wrap: anywhere; font: 600 11px/1.2 var(--serif); letter-spacing: .06em; color: #cdbd98; text-transform: uppercase; }
.four .seal { width: 44px; height: 44px; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .45)); }
.four li:nth-child(odd) .seal { transform: rotate(-6deg); }
.four li:nth-child(even) .seal { transform: rotate(5deg); }

/* ---------------------------------------------------------------- paper */
.sheet-wrap { box-shadow: 0 22px 26px -8px rgba(0, 0, 0, .45), 0 2px 4px rgba(0, 0, 0, .4); transform: rotate(var(--rot, 0deg)); }
.sheet {
  position: relative; color: var(--ink);
  background:
    radial-gradient(130% 100% at 50% 46%, transparent 58%, rgba(140, 95, 40, .2)),
    url("../img/grain-paper.png") 0 0 / 128px 128px repeat,
    linear-gradient(180deg, var(--paper), var(--paper-2));
  clip-path: polygon(0 .6%, 5% 0, 13% .5%, 24% .1%, 37% .6%, 50% 0, 63% .5%, 75% .1%, 88% .6%, 100% .2%, 99.7% 28%, 100% 61%, 99.6% 100%, 90% 99.5%, 78% 100%, 64% 99.4%, 50% 100%, 36% 99.6%, 22% 100%, 10% 99.4%, 0 99.9%, .3% 71%, 0 40%);
  padding: 22px 20px 22px;
}
.sheet::after { content: ""; position: absolute; left: 0; right: 0; top: 33%; height: 3px; background: linear-gradient(rgba(110, 80, 35, .1), rgba(255, 255, 255, .25)); pointer-events: none; }
.sheet.fold-2::before { content: ""; position: absolute; left: 0; right: 0; top: 66%; height: 3px; background: linear-gradient(rgba(110, 80, 35, .1), rgba(255, 255, 255, .25)); pointer-events: none; }

/* ---------------------------------------------------------------- quiz */
.prog { display: flex; justify-content: center; gap: 12px; list-style: none; margin: 4px 0 18px; padding: 0; }
.prog li { width: 15px; height: 15px; border-radius: 50%; border: 2px solid rgba(243, 233, 210, .35); transition: all .35s; position: relative; }
.prog li.done { background: radial-gradient(circle at 35% 30%, #d9535f, #a42e3a 55%, #6e1d26); border-color: transparent; box-shadow: 0 2px 4px rgba(0, 0, 0, .5); transform: scale(1.1); }
.prog li.cur { border-color: #f2c585; animation: ring 1.6s ease-in-out infinite; }
@keyframes ring { 50% { box-shadow: 0 0 0 5px rgba(242, 197, 133, .18); } }

.qslot { position: relative; }
.q { transition: transform .5s cubic-bezier(.2, .8, .2, 1), opacity .4s; }
.q.in-right { transform: translateX(calc(60px * var(--dir))) rotate(calc(var(--rot, 0deg) + 2deg)); opacity: 0; }
.q.in-left { transform: translateX(calc(-60px * var(--dir))) rotate(calc(var(--rot, 0deg) - 2deg)); opacity: 0; }
.q.out-left { position: absolute; inset: 0 0 auto 0; transform: translateX(calc(-70px * var(--dir))) rotate(calc(var(--rot, 0deg) - 3deg)); opacity: 0; pointer-events: none; }
.q.out-right { position: absolute; inset: 0 0 auto 0; transform: translateX(calc(70px * var(--dir))) rotate(calc(var(--rot, 0deg) + 3deg)); opacity: 0; pointer-events: none; }
.q h2 { margin: 0 0 18px; font: 700 clamp(22px, 6.2vw, 26px)/1.22 var(--serif); letter-spacing: .005em; text-wrap: balance; }
.opts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.opt {
  position: relative; display: flex; align-items: flex-start; gap: 12px; width: 100%; min-height: 52px; padding: 13px 14px 13px 12px; text-align: start;
  font: 600 16px/1.32 var(--serif); color: var(--ink);
  background: linear-gradient(#f8eed4, #eedfb8); border: 1px solid rgba(90, 60, 25, .38); border-radius: 7px; cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 3px 0 rgba(90, 60, 25, .28);
  transition: transform .14s, box-shadow .14s, background .25s, opacity .3s, border-color .2s;
  overflow: hidden;
}
@media (hover: hover) { .opt:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 6px 0 rgba(90, 60, 25, .25), 0 10px 14px rgba(0, 0, 0, .2); } }
.opt:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 1px 0 rgba(90, 60, 25, .28); }
.opt .nib { flex: none; width: 18px; height: 22px; margin-top: 1px; color: var(--sepia); opacity: .7; transition: all .25s; }
.opt .txt { flex: 1; }
.opt[aria-pressed="true"] { background: linear-gradient(#f7e5ae, #f0d98f); border-color: var(--ink); }
.opt[aria-pressed="true"] .nib { color: var(--wax); opacity: 1; transform: rotate(-12deg) scale(1.15); }
.q.locked .opt:not([aria-pressed="true"]) { opacity: .42; }
.q.locked .opt { pointer-events: none; }
.note { min-height: 32px; margin: 10px 4px 0; font: 700 calc(25px * var(--hs)) / var(--hl) var(--hand); color: var(--wax); opacity: 0; transform: rotate(-1.5deg) translateY(4px); transition: opacity .3s, transform .3s; }
.note.show { opacity: 1; transform: rotate(-1.5deg); }
.blot { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 52% 48% 55% 45% / 48% 56% 44% 52%; background: radial-gradient(circle at 40% 35%, #4a3322, #1d130c 70%); pointer-events: none; transform: scale(0); animation: blot 1.8s ease-out forwards; z-index: 3; }
@keyframes blot { 0% { transform: scale(0); opacity: 1; } 12% { transform: scale(1.25); } 22% { transform: scale(1); } 80% { opacity: .85; } 100% { transform: scale(1); opacity: 0; } }
.nav { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; min-height: 40px; }
.link { background: none; border: 0; padding: 8px 4px; font: 600 15px/1 var(--serif); color: #e2d2ac; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(226, 210, 172, .4); }
.link[hidden] { visibility: hidden; display: inline; }
.hint-idle { font: 700 calc(22px * var(--hs)) / 1.2 var(--hand); color: #f2c585; opacity: 0; transition: opacity .6s; text-align: end; }
.hint-idle.show { opacity: 1; }

/* ---------------------------------------------------------------- sign */
.sign h2 { margin: 0 0 8px; font: 700 26px/1.2 var(--serif); }
.sign p { margin: 0 0 16px; font: 400 15.5px/1.4 var(--serif); color: #4b3b27; }
.inkfield { display: block; margin: 0 0 18px; }
.inkfield input {
  width: 100%; padding: 6px 4px 2px; font: 700 calc(38px * var(--hs)) / 1.2 var(--hand); color: var(--c, #2f4a7e); background: transparent; border: 0; border-bottom: 2px solid rgba(60, 40, 18, .55); border-radius: 0; caret-color: var(--wax);
}
.inkfield input::placeholder { color: rgba(60, 40, 18, .32); }
.btn {
  text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px; cursor: pointer;
  font: 700 15px/1 var(--serif); letter-spacing: .16em; text-transform: uppercase; color: #fff5e4;
  background: radial-gradient(120% 160% at 30% 10%, #cf4a57, #a42e3a 55%, #741f29);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 5px 0 #571820, 0 12px 18px rgba(0, 0, 0, .35);
  transition: transform .12s, box-shadow .12s, filter .2s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 1px 0 #571820, 0 4px 8px rgba(0, 0, 0, .35); }
.btn.ghost { color: var(--cream); background: rgba(243, 233, 210, .08); box-shadow: 0 0 0 1.5px rgba(243, 233, 210, .35) inset, 0 4px 0 rgba(0, 0, 0, .35); letter-spacing: .1em; font-size: 13.5px; }
.btn.block { width: 100%; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------------------------------------------------------------- crossing */
.cross { min-height: 62vh; display: grid; place-content: center; gap: 20px; text-align: center; }
.cross .seal { width: 112px; margin: 0 auto; filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .5)); animation: drop .7s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes drop { 0% { transform: translateY(-120px) scale(2.2); opacity: 0; } 55% { opacity: 1; } 100% { transform: none; opacity: 1; } }
.cross p { margin: 0; font: 700 calc(30px * var(--hs)) / var(--hl) var(--hand); color: #f2c585; min-height: 34px; }
.cross .skip { margin-top: 6px; }

/* ---------------------------------------------------------------- result */
.letter { padding: 20px 20px 22px; }
.lhead { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1.5px solid rgba(90, 65, 30, .3); }
.lhead .place { font: 700 13px/1 var(--serif); letter-spacing: .22em; text-transform: uppercase; color: var(--c); }
.lhead .yr { font: italic 14px/1 var(--serif); letter-spacing: .12em; color: var(--sepia); }
.hand { font: 500 calc(clamp(24px, 6.4vw, 29px) * var(--hs)) / var(--hl) var(--hand); color: var(--ink); }
.hand p { margin: 0 0 .32em; }
.hand .w { opacity: 0; transition: opacity .12s; }
.hand .w.on { opacity: 1; }
.hand .fw { font-weight: 700; }
.hand .fw.on.hot { color: var(--c); transition: color .4s; }
.sheet-wrap.rel { position: relative; }
.hand .salute { font-size: 1.08em; }
.hand .freedom { margin-top: .5em; }
.sig { display: flex; justify-content: space-between; align-items: flex-end; margin-top: .4em; }
.sig .closing { margin: 0; }
.sig .signame { margin: 0; font: 700 calc(clamp(32px, 9vw, 40px) * var(--hs)) / 1.15 var(--hand); color: var(--c); }
.sig .sealslot { width: 74px; height: 74px; flex: none; margin: -6px 0 -6px; }
.sig .seal { width: 100%; height: 100%; opacity: 0; transform: translateY(-70px) scale(2.2); }
.sig .seal.stamp { animation: stamp .5s cubic-bezier(.3, 1.4, .5, 1) forwards; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .35)); }
@keyframes stamp { 0% { opacity: 0; transform: translateY(-70px) scale(2.2) rotate(-12deg); } 60% { opacity: 1; } 100% { opacity: 1; transform: rotate(-6deg); } }
.ps { margin: 10px 0 0; font: 500 calc(clamp(21px, 5.5vw, 25px) * var(--hs)) / var(--hl) var(--hand); color: var(--sepia); }
.circle { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.circle path { fill: none; stroke: var(--c); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.circle path.draw { animation: draw .7s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.quill { position: absolute; width: 54px; height: 54px; pointer-events: none; z-index: 4; opacity: 0; transition: opacity .2s, left .09s linear, top .09s linear; transform-origin: 6% 90%; filter: drop-shadow(1px 2px 2px rgba(0, 0, 0, .35)); }
.quill.on { opacity: 1; }
.shake { animation: shake .35s; }
@keyframes shake { 20% { transform: rotate(var(--rot, 0deg)) translate(2px, 3px); } 45% { transform: rotate(var(--rot, 0deg)) translate(-2px, 1px); } 70% { transform: rotate(var(--rot, 0deg)) translate(1px, 0); } }
.skiphint { margin: 10px 0 0; text-align: center; font: 600 14px/1 var(--serif); color: #cdbd98; opacity: .8; transition: opacity .4s; }
.skiphint.gone { opacity: 0; pointer-events: none; }

.more { margin-top: 26px; opacity: 0; transform: translateY(16px); transition: opacity .7s, transform .7s; }
.more.show { opacity: 1; transform: none; }
.verdict { text-align: center; }
.verdict .you { margin: 0; font: 600 14px/1 var(--serif); letter-spacing: .22em; text-transform: uppercase; color: #b9a07a; }
.verdict h2 { margin: 10px 0 2px; font: 700 clamp(34px, 10vw, 44px)/1.04 var(--serif); color: var(--vc); text-shadow: 0 2px 0 rgba(0, 0, 0, .4); }
.verdict .noun { margin: 0 0 10px; font: italic 600 19px/1.3 var(--serif); color: var(--cream); }
.verdict .joke { margin: 0 auto 10px; max-width: 340px; font: 700 calc(26px * var(--hs)) / var(--hl) var(--hand); color: #f2c585; }
.verdict .blurb { margin: 0 auto; max-width: 380px; font: 400 16px/1.5 var(--serif); color: #e6d9b8; text-wrap: pretty; }
.verdict .from { margin: 10px 0 0; font: italic 14px/1.4 var(--serif); color: #b9a07a; }
.badge { margin: 18px auto 0; max-width: 360px; padding: 12px 16px; border-radius: 10px; border: 1.5px dashed rgba(242, 197, 133, .55); background: rgba(242, 197, 133, .07); }
.badge b { display: block; font: 700 15px/1.2 var(--serif); letter-spacing: .14em; text-transform: uppercase; color: #f2c585; }
.badge span { display: block; margin-top: 4px; font: 400 14.5px/1.4 var(--serif); color: #e6d9b8; }

.dna { margin: 24px auto 0; max-width: 400px; padding: 16px 16px 6px; border-radius: 12px; background: rgba(0, 0, 0, .22); border: 1px solid rgba(243, 233, 210, .14); text-align: start; }
.dna h3 { margin: 0 0 12px; font: 700 12px/1 var(--serif); letter-spacing: .24em; text-transform: uppercase; color: #b9a07a; }
.dna .row { display: grid; grid-template-columns: 112px 1fr 48px; align-items: center; gap: 10px; margin-bottom: 11px; font: 600 14px/1.2 var(--serif); color: var(--cream); }
.dna .row span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dna .row.lead span:first-child { color: var(--rc); }
.dna .bar { height: 10px; border-radius: 6px; background: rgba(243, 233, 210, .12); overflow: hidden; }
.dna .bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--rc); transition: width 1s cubic-bezier(.2, .8, .2, 1) .2s; }
.dna .pct { text-align: end; white-space: nowrap; color: #cdbd98; font-variant-numeric: tabular-nums; }

.card { margin: 28px auto 0; max-width: 340px; }
.card .kicker { text-align: center; }
.card img { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 18px 30px rgba(0, 0, 0, .5); background: #2b1c12; aspect-ratio: 1080 / 1350; }
.card .ph { aspect-ratio: 1080 / 1350; border-radius: 6px; background: rgba(0, 0, 0, .25); display: grid; place-items: center; font: 600 calc(24px * var(--hs)) var(--hand); color: #b9a07a; }

.actions { display: grid; gap: 12px; margin: 22px auto 0; max-width: 340px; }
.actions .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.after { margin-top: 22px; text-align: center; display: grid; gap: 4px; justify-items: center; }
.credit { margin: 26px auto 0; max-width: 360px; text-align: center; font: italic 13px/1.5 var(--serif); color: #a38d68; }

.toast { position: fixed; left: 50%; bottom: max(26px, env(safe-area-inset-bottom)); z-index: 40; transform: translate(-50%, 20px); padding: 10px 18px; border-radius: 999px; background: #f4e9cc; color: var(--ink); font: 700 calc(24px * var(--hs)) / 1.25 var(--hand); box-shadow: 0 10px 24px rgba(0, 0, 0, .5); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

noscript p { padding: 24px; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .glow { animation: none; }
}
@media (min-width: 700px) {
  main { padding-top: 84px; }
  .q h2 { font-size: 27px; }
}

/* Headings take programmatic focus for screen readers; no ring needed on them. */
[tabindex="-1"]:focus { outline: none; }

/* ---------------------------------------------------------------- more ways to share */
.shares { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 4px; }
.chip {
  display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 15px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(243, 233, 210, .3); background: rgba(243, 233, 210, .06); color: var(--cream); text-decoration: none; font: 600 14px/1 var(--serif);
  transition: background .2s;
}
.chip:hover { background: rgba(243, 233, 210, .15); }
.chip svg { width: 18px; height: 18px; }
.chip.icon { width: 44px; padding: 0; }
.btn[hidden] { display: none; }

/* ---------------------------------------------------------------- languages */
/* Right-to-left (Persian): the pen is mirrored and the slides come from the other side. */
html[dir="rtl"] { --dir: -1; }
html[dir="rtl"] .quill { transform: scaleX(-1); transform-origin: 94% 90%; }
/* Scripts without Latin-style spacing or italics: no letter-spacing (it breaks joining), no faked italics, taller lines */
html[data-plain] *, html[data-plain] *::before, html[data-plain] *::after { letter-spacing: 0 !important; font-style: normal !important; }
html[data-plain] .landing h1 em { text-decoration: underline; text-decoration-color: #f2c585; text-underline-offset: .14em; text-decoration-thickness: 2px; }
html[data-plain] .landing h1, html[data-plain] .q h2, html[data-plain] .verdict h2 { line-height: 1.38; }
html[data-plain] .opt, html[data-plain] .lede, html[data-plain] .blurb, html[data-plain] .badge span, html[data-plain] .sign p, html[data-plain] .credit { line-height: 1.6; }
html[data-plain] .kicker, html[data-plain] .brand { line-height: 1.5; }
html[data-plain] .btn { line-height: 1.3; }
/* Inside a Farcaster client the window is small: drop the desk decorations */


/* ================================================================ motion and polish
   Everything below is decoration on top of the layout above. All of it collapses under "reduce motion"
   (the rule near the top of this block plus the global one), and app.js skips the timed parts too. */

/* dust floating in the candle light */
.motes { position: absolute; inset: 0; overflow: hidden; }
.motes i {
  position: absolute; width: var(--s); height: var(--s); border-radius: 50%; background: #ffd9a0; opacity: 0;
  box-shadow: 0 0 6px rgba(255, 200, 120, .8); animation: mote var(--d) linear infinite; animation-delay: var(--dl);
}
@keyframes mote {
  0% { transform: translate(0, 0); opacity: 0; }
  12% { opacity: var(--o); }
  50% { transform: translate(var(--x), -38vh); }
  88% { opacity: var(--o); }
  100% { transform: translate(calc(var(--x) * -.4), -76vh); opacity: 0; }
}

/* intro: things arrive one after another */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
#intro.is-active .kicker { animation: rise .6s .05s cubic-bezier(.2, .8, .2, 1) both; }
#intro.is-active h1 { animation: rise .7s .15s cubic-bezier(.2, .8, .2, 1) both; }
#intro.is-active .lede { animation: rise .7s .28s cubic-bezier(.2, .8, .2, 1) both; }
#intro.is-active .env-back, #intro.is-active .env-flap, #intro.is-active .env-front, #intro.is-active .env-paper { animation: envIn .8s .38s cubic-bezier(.2, 1.2, .3, 1) backwards; }
#intro.is-active .env-seal { animation: sealIn .55s .95s cubic-bezier(.3, 1.6, .5, 1) both; }
#intro.is-active .env.open .env-seal { animation: none; }
#intro.leaving .env-back, #intro.leaving .env-flap, #intro.leaving .env-front, #intro.leaving .env-paper { animation: none; }
@keyframes envIn { from { opacity: 0; transform: translateY(26px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes sealIn { 0% { opacity: 0; scale: 2.4; } 60% { opacity: 1; } 100% { opacity: 1; scale: 1; } }
#intro.is-active .four li { animation: rise .5s calc(1.05s + var(--i) * .09s) cubic-bezier(.2, 1.3, .4, 1) both; }
.landing h1 em { background: linear-gradient(#f2c585, #f2c585) 0 92% / 0 2px no-repeat; animation: underline .7s 1.1s ease-out forwards; padding-bottom: 2px; }
@keyframes underline { to { background-size: 100% 2px; } }
.four .seal { transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
@media (hover: hover) { .four li:hover .seal { transform: rotate(0) scale(1.15) translateY(-3px); } }

/* quiz: sheets land like paper on a desk, answers deal in one by one */
.q { transition: transform .62s cubic-bezier(.2, 1.15, .3, 1), opacity .4s; }
.q.in-up { transform: translateY(46px) rotate(calc(var(--rot, 0deg) + 1.5deg)) scale(.96); opacity: 0; }
.q.out-left { transition: transform .55s cubic-bezier(.5, 0, .75, .3), opacity .45s; transform: translate(calc(-90px * var(--dir)), 26px) rotate(calc(var(--rot, 0deg) - 7deg)); }
.q.out-right { transition: transform .55s cubic-bezier(.5, 0, .75, .3), opacity .45s; transform: translate(calc(90px * var(--dir)), 26px) rotate(calc(var(--rot, 0deg) + 7deg)); }
.q.enter .opts li { animation: deal .45s calc(.16s + var(--i) * .07s) cubic-bezier(.2, 1.2, .4, 1) both; }
.q.enter h2 { animation: rise .5s .08s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes deal { from { opacity: 0; transform: translateX(calc(18px * var(--dir))) rotate(calc(1.2deg * var(--dir))); } to { opacity: 1; transform: none; } }
.kicker .qn { color: var(--wax); }
.opt { isolation: isolate; }
.opt::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0;
  background: radial-gradient(120% 140% at 0% 50%, rgba(164, 46, 58, .14), transparent 60%); transition: opacity .25s;
}
@media (hover: hover) {
  .opt:hover::before { opacity: 1; }
  .opt:hover .nib { opacity: 1; color: var(--wax); transform: rotate(-8deg) translateY(-1px); }
}
.opt[aria-pressed="true"] { animation: chosen .45s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes chosen { 30% { transform: scale(.97); } 70% { transform: scale(1.02); } }
.opt[aria-pressed="true"] .nib { animation: dip .5s ease-in-out; }
@keyframes dip { 0% { transform: none; } 35% { transform: rotate(-24deg) translateY(3px); } 100% { transform: rotate(-12deg) scale(1.15); } }
.q.locked .opt:not([aria-pressed="true"]) { opacity: .38; transform: scale(.985); filter: saturate(.6); }
.opt .txt { position: relative; }
.scrib { position: absolute; left: -2px; right: -2px; bottom: -7px; width: calc(100% + 4px); height: 12px; overflow: visible; pointer-events: none; }
.scrib path { fill: none; stroke: var(--wax); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .38s .08s ease-out forwards; vector-effect: non-scaling-stroke; }
html[dir="rtl"] .scrib { transform: scaleX(-1); }
.splat { position: absolute; border-radius: 50%; background: #241810; pointer-events: none; z-index: 3; opacity: 0; animation: splat 1.8s ease-out forwards; }
@keyframes splat { 0% { opacity: 0; transform: translate(-50%, -50%); } 8% { opacity: .9; } 25% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))); } 80% { opacity: .7; } 100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))); } }
/* the quip is written in, left to right (right to left in Persian) */
.note { opacity: 1; clip-path: inset(-10px 100% -10px -10px); transform: rotate(-1.5deg); transition: clip-path .6s cubic-bezier(.4, 0, .2, 1) .12s; }
html[dir="rtl"] .note { clip-path: inset(-10px -10px -10px 100%); }
.note.show, html[dir="rtl"] .note.show { clip-path: inset(-10px -10px -10px -10px); }
/* progress: each answer drops a blob of wax */
.prog li.done { animation: waxDrop .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes waxDrop { 0% { transform: translateY(-14px) scale(1.7); opacity: 0; } 60% { opacity: 1; } 100% { transform: scale(1.1); } }

/* sign */
.sign { position: relative; }
.signseal { position: absolute; top: 14px; inset-inline-end: 14px; width: 54px; height: 54px; opacity: .9; transform: rotate(8deg); animation: sealIn .5s .25s cubic-bezier(.3, 1.6, .5, 1) both; }
.signseal .seal { width: 100%; height: 100%; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .35)); }
.sign h2, .sign p:not(.kicker) { padding-inline-end: 56px; }
.inkfield { position: relative; }
.inkfield input { border-bottom-color: rgba(60, 40, 18, .3); }
.inkfield::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: var(--ink-w, 0%); background: var(--c, var(--wax)); transition: width .35s cubic-bezier(.2, .8, .2, 1); }
html[dir="rtl"] .inkfield::after { left: auto; right: 0; }
#sign.is-active .sheet-wrap { animation: rise .6s cubic-bezier(.2, 1.1, .3, 1) backwards; }
.btn { position: relative; overflow: hidden; }
.btn:not(.ghost)::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 240, 220, .35), transparent); animation: shine 4.5s 1.5s ease-in-out infinite;
}
@keyframes shine { 0%, 70% { translate: 0 0; } 100% { translate: 475% 0; } } /* (a transform, not "left": it moves on the compositor) */
#seal.pressed { transform: translateY(4px) scale(.98); filter: brightness(.9); }

/* crossing: rolling sea, a rocking ship, lines that fade into each other */
.cross p { transition: opacity .2s, transform .2s; }
.cross p.swap { opacity: 0; transform: translateY(-6px); }
.cross { position: relative; }
.cross::before { content: ""; position: absolute; left: 50%; top: 40%; width: 280px; height: 280px; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, rgba(242, 197, 133, .12), transparent); animation: breatheGlow 3s ease-in-out infinite; pointer-events: none; }
@keyframes breatheGlow { 50% { scale: 1.12; opacity: .7; } }

/* result: the letter unfolds, then every word is inked in */
.sheet-wrap.unfold { animation: unfold .8s cubic-bezier(.2, .9, .25, 1) both; transform-origin: 50% 0; }
@keyframes unfold {
  0% { transform: perspective(900px) rotateX(-70deg) scaleY(.4) rotate(var(--rot, 0deg)); opacity: 0; }
  45% { opacity: 1; }
  100% { transform: rotate(var(--rot, 0deg)); opacity: 1; }
}
.hand .w { display: inline-block; opacity: 1; clip-path: inset(-20% 105% -20% -5%); }
html[dir="rtl"] .hand .w { clip-path: inset(-20% -5% -20% 105%); }
.hand .w.on { animation: ink var(--wd, 80ms) linear forwards; }
html[dir="rtl"] .hand .w.on { animation-name: inkRtl; }
@keyframes ink { from { clip-path: inset(-20% 105% -20% -5%); } to { clip-path: inset(-20% -5% -20% -5%); } }
@keyframes inkRtl { from { clip-path: inset(-20% -5% -20% 105%); } to { clip-path: inset(-20% -5% -20% -5%); } }
.inst .w.on, .inst .w { animation: none !important; clip-path: none !important; }
.hand .fw.on.hot { animation: ink var(--wd, 80ms) linear forwards, glowWord 1.4s .2s ease-out; }
@keyframes glowWord { 30% { text-shadow: 0 0 14px color-mix(in srgb, var(--c) 60%, transparent); } }
.quill { --qx: 1; transform: scaleX(var(--qx)); transition: opacity .25s, left .14s cubic-bezier(.3, .7, .4, 1), top .2s cubic-bezier(.3, .7, .4, 1); }
html[dir="rtl"] .quill { --qx: -1; }
.quill.on { animation: scrib .16s ease-in-out infinite alternate; }
.quill.on.lift { animation: liftPen .3s ease-out forwards; }
@keyframes scrib { from { transform: scaleX(var(--qx)) rotate(-5deg) translate(0, 0); } to { transform: scaleX(var(--qx)) rotate(3deg) translate(1px, -2px); } }
@keyframes liftPen { to { transform: scaleX(var(--qx)) rotate(-12deg) translate(2px, -8px); } }
.sealslot { position: relative; }
.sealslot .ring { position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--wc); opacity: .7; animation: ring2 .8s ease-out forwards; pointer-events: none; }
@keyframes ring2 { from { transform: scale(.6); opacity: .8; } to { transform: scale(1.9); opacity: 0; } }
.sealslot .drop { position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%; background: var(--wc); animation: wax .8s cubic-bezier(.2, .8, .3, 1) forwards; pointer-events: none; }
@keyframes wax { from { transform: none; opacity: 1; } to { transform: translate(var(--dx), var(--dy)) scale(.3); opacity: 0; } }
@media (hover: hover) { .sig .seal.stamp { cursor: pointer; } .sealslot:hover .seal.stamp { filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .4)) brightness(1.08); } }

/* verdict and the rest arrive in sequence */
.more.show .verdict > *, .more.show .dna, .more.show .card, .more.show .actions, .more.show .after, .more.show .credit { animation: rise .6s cubic-bezier(.2, .8, .2, 1) both; }
.more.show .verdict > :nth-child(1) { animation-delay: 0s; }
.more.show .verdict > :nth-child(2) { animation: verdictIn .8s .08s cubic-bezier(.2, 1.2, .3, 1) both; }
.more.show .verdict > :nth-child(3) { animation-delay: .28s; }
.more.show .verdict > :nth-child(4) { animation-delay: .4s; }
.more.show .verdict > :nth-child(5) { animation-delay: .52s; }
.more.show .verdict > :nth-child(6) { animation-delay: .6s; }
.more.show .verdict > :nth-child(7) { animation: stampIn .55s .75s cubic-bezier(.3, 1.6, .5, 1) both; }
.more.show .dna { animation-delay: .7s; }
.more.show .card { animation-delay: .85s; }
.more.show .actions { animation-delay: 1s; }
.more.show .after, .more.show .credit { animation-delay: 1.1s; }
@keyframes verdictIn { from { opacity: 0; transform: scale(1.25); } to { opacity: 1; transform: none; } }
@keyframes stampIn { from { opacity: 0; transform: scale(1.4) rotate(-4deg); } to { opacity: 1; transform: none; } }
.verdict h2 { background: linear-gradient(100deg, var(--vc) 40%, #fff3d6 50%, var(--vc) 60%) 0 0 / 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .4)); animation: none; }
.more.show .verdict h2 { animation: verdictIn .8s .08s cubic-bezier(.2, 1.2, .3, 1) both, sheen 3s 1.2s ease-in-out; }
@keyframes sheen { from { background-position: 100% 0; } to { background-position: 0 0; } }
.dna .row.lead .bar i { box-shadow: 0 0 10px color-mix(in srgb, var(--rc) 60%, transparent); }
.card .ph { position: relative; overflow: hidden; }
.card .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(242, 197, 133, .1) 50%, transparent 70%); animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.card img.dev { animation: develop 1.2s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes develop { from { opacity: 0; transform: translateY(12px) rotate(-2deg) scale(.97); } to { opacity: 1; transform: rotate(-.6deg); } }
.card img { transition: transform .35s cubic-bezier(.3, 1.4, .5, 1); }
@media (hover: hover) { .card img:hover { transform: rotate(0) scale(1.02); } }
.chip { transition: background .2s, transform .2s cubic-bezier(.3, 1.6, .5, 1); }
.chip:hover { transform: translateY(-2px); }
.toast.show { animation: toastIn .4s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes toastIn { from { transform: translate(-50%, 20px) scale(.8) rotate(-3deg); } to { transform: translate(-50%, 0); } }

/* language switch: the page flutters once */
#stage.relang { animation: relang .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes relang { 0% { opacity: .2; transform: translateY(6px); } 100% { opacity: 1; transform: none; } }

.screen.is-active { animation: screenIn .55s cubic-bezier(.2, .8, .2, 1) both; }

@media (prefers-reduced-motion: reduce) {
  .motes, .env-seal::after, .env-seal::before, .btn::after, .card .ph::after { display: none; }
  .env { animation: none; }
  .hand .w { clip-path: none; }
  .note { clip-path: none; transition: none; }
}
/* the four seals under the envelope: labels never break inside a word */
.four { gap: 6px; }
.four li { width: auto; flex: 1 1 0; max-width: 100px; min-width: 0; overflow-wrap: normal; font-size: clamp(9.5px, 2.6vw, 11px); letter-spacing: .04em; }
.shares .chip { gap: 8px; padding: 0 18px; }
.shares .chip svg { width: 16px; height: 16px; }
/* the share card is shown as the canvas itself (see makeCard in app.js) */
.card canvas { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 18px 30px rgba(0, 0, 0, .5); background: #2b1c12; aspect-ratio: 1080 / 1350; transition: transform .35s cubic-bezier(.3, 1.4, .5, 1); }
.card canvas.dev { animation: develop 1.2s cubic-bezier(.2, .8, .2, 1) both; }
@media (hover: hover) { .card canvas:hover { transform: rotate(0) scale(1.02); } }

/* once the letter is written every word is simply visible, whatever the animations did */
.letter.written .w { clip-path: none !important; animation: none !important; opacity: 1; }

/* card placeholder: a ring that turns while the card is being drawn (transform only, so it keeps moving even if the page is busy) */
.card .ph { flex-direction: column; gap: 14px; align-content: center; }
.card .ph::before { content: ""; width: 46px; height: 46px; border-radius: 50%; border: 3px solid rgba(242, 197, 133, .22); border-top-color: #f2c585; animation: spin .9s linear infinite; will-change: transform; }
.card .ph { display: flex; align-items: center; justify-content: center; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ================================================================ lite
   A phone-sized webview (a Farcaster client is one) is decided before the first paint (see index.html: data-lite on <html>;
   ?lite=1 forces it, ?lite=0 turns it off). The page keeps its look. What goes is everything that makes the browser
   re-draw or re-composite big areas: per-word clip paths, 3D, infinite animations, staggered reveals, blurs. */
html[data-lite] .motes, html[data-lite] .glow, html[data-lite] .candle, html[data-lite] .inkwell { display: none; }
html[data-lite] .screen.is-active, html[data-lite] #sign.is-active .sheet-wrap, html[data-lite] .sheet-wrap.unfold, html[data-lite] #stage.relang { animation: none; }
html[data-lite] .btn::after, html[data-lite] .card .ph::after { display: none; }
html[data-lite] .env, html[data-lite] .cross::before { animation: none; }
/* the letter: words simply appear one after another */
html[data-lite] .hand .w, html[dir="rtl"][data-lite] .hand .w { clip-path: none; visibility: hidden; }
html[data-lite] .hand .w.on, html[dir="rtl"][data-lite] .hand .w.on, html[data-lite] .hand .fw.on.hot { visibility: visible; animation: none; }
html[data-lite] .letter.written .w { visibility: visible; }
html[data-lite] .quill { transition: opacity .2s; filter: none; }
html[data-lite] .quill.on, html[data-lite] .quill.on.lift { animation: none; }
/* the rest of the result: a plain fade, no staggered animations */
html[data-lite] .more { transform: none; transition: none; } /* (a fade would put the whole tall block on its own layer for a moment) */
html[data-lite] #lw { transform: none; } /* the letter stays straight on a phone: crisper text, and no rotated tall layer */
html[data-lite] .more.show .verdict > *, html[data-lite] .more.show .dna, html[data-lite] .more.show .card, html[data-lite] .more.show .actions,
html[data-lite] .more.show .after, html[data-lite] .more.show .credit, html[data-lite] .more.show .verdict h2 { animation: none; }
html[data-lite] .verdict h2 { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--vc); filter: none; text-shadow: 0 2px 0 rgba(0, 0, 0, .4); }
html[data-lite] .dna .bar i { transition: none; }
html[data-lite] .card canvas.dev { animation: none; }


/* ================================================================ v2: colour, type and scenes
   A richer look on top of everything above. The pictures are still images (drawn once, see js/art.js) and what moves is
   moved with transform and opacity only, so a phone webview keeps its calm. The lite rules at the very end switch the
   few things that would still be too much there. */
@font-face { font-family: "IM Fell English"; src: url("../fonts/IMFellEnglish-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IM Fell English"; src: url("../fonts/IMFellEnglish-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
:root {
  /* headings: a 17th-century English face for the Latin languages; app.js puts the language's own serif here for the others */
  --display: "IM Fell English", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --dw: 400;
  --gold: #e9bb6a; --gold-hi: #fff1c9; --gold-lo: #b07a2c;
  --tc: 164 46 58;   /* the colour of the idea of freedom you got (r g b), set once the letter is sealed */
}
html[data-type="pur"] { --tc: 47 74 126; }
html[data-type="cav"] { --tc: 164 46 58; }
html[data-type="qua"] { --tc: 47 125 98; }
html[data-type="bor"] { --tc: 194 112 31; }

/* the desk: cool moonlight from the window, warm candle light from the corner, a faint sea chart underneath */
.desk {
  background:
    radial-gradient(120% 100% at 50% 42%, transparent 50%, rgba(5, 3, 2, .66)),
    radial-gradient(1000px 620px at 6% 106%, rgba(255, 150, 64, .3), transparent 62%),
    radial-gradient(760px 560px at 100% -6%, rgba(86, 104, 176, .26), transparent 62%),
    radial-gradient(900px 600px at 50% 40%, rgba(96, 58, 28, .3), transparent 70%),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .12) 0 3px, transparent 3px 150px),
    linear-gradient(#271c29, #130b08);
}
.chart { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .13; }
.tint { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; background: radial-gradient(900px 640px at 50% 18%, rgb(var(--tc) / .3), transparent 70%), radial-gradient(760px 560px at 50% 112%, rgb(var(--tc) / .2), transparent 70%); }
html[data-type] .tint { opacity: 1; }

.brand { font-family: var(--display); font-weight: var(--dw); font-size: 13px; letter-spacing: .3em; color: var(--gold); opacity: .9; }
.kicker { font-family: var(--display); font-weight: var(--dw); }

/* ---------------------------------------------------------------- intro: dusk over the Atlantic */
.vista { position: fixed; top: 0; left: 0; right: 0; height: 430px; z-index: 1; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s .7s; }
html[data-screen="intro"] .vista { opacity: 1; visibility: visible; transition: opacity 1.2s ease; }
.vista img, .voyage img { position: absolute; display: block; max-width: none; }
.vsc { left: 0; top: 0; width: 100%; height: 100%; }
.vship { width: 62px; left: var(--sx, 70px); top: calc(var(--hz, 322px) + 6px - 62px * .652); animation: vbob 6.5s ease-in-out infinite, vdrift 70s ease-in-out infinite alternate; }
@keyframes vbob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-2px) rotate(1.1deg); } }
@keyframes vdrift { from { translate: -6px 0; } to { translate: 46px 0; } }

#intro { padding-top: 12px; }
.landing .kicker { margin-bottom: 12px; font-size: 13px; letter-spacing: .36em; color: var(--gold); text-shadow: 0 1px 8px rgba(5, 3, 12, .9); }
.landing .kicker::before, .landing .kicker::after { content: ""; display: inline-block; width: 26px; height: 1px; margin: 0 12px; vertical-align: middle; background: linear-gradient(90deg, transparent, var(--gold)); opacity: .85; }
.landing .kicker::after { transform: scaleX(-1); }
.landing h1 { margin: 0 0 14px; font-family: var(--display); font-weight: var(--dw); font-size: clamp(34px, 10.4vw, 48px); line-height: 1.04; letter-spacing: 0; color: #fbf0d4; text-shadow: 0 2px 18px rgba(6, 4, 14, .85), 0 1px 0 rgba(0, 0, 0, .45); }
.landing h1 em { color: var(--gold); }
.landing .lede { max-width: 372px; font-size: 16px; line-height: 1.45; color: #f0e4c6; text-shadow: 0 1px 2px rgba(8, 5, 14, .95), 0 0 16px rgba(8, 5, 14, .85); }
.env { isolation: isolate; margin-top: 56px; }
.env::before { content: ""; position: absolute; inset: -34% -26% -46%; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(255, 176, 90, .34), rgba(255, 150, 70, .12) 55%, transparent 76%); }
.env-hint { color: var(--gold); text-shadow: 0 2px 10px rgba(0, 0, 0, .7); }
.four li { font-family: var(--display); font-weight: var(--dw); color: #d8c8a2; }

/* ---------------------------------------------------------------- quiz: the voyage strip and the paper */
.voy { position: relative; height: 42px; margin: 0 6px 14px; }
.voy .track { position: absolute; left: 13px; right: 13px; bottom: 11px; border-top: 2px dashed rgba(243, 233, 210, .26); }
.voy .trail { position: absolute; left: 13px; right: 13px; bottom: 10px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--gold-lo), var(--gold)); transform-origin: 0 50%; transform: scaleX(var(--k, 0)); transition: transform .9s cubic-bezier(.3, .8, .2, 1); }
html[dir="rtl"] .voy .trail { transform-origin: 100% 50%; }
.voy .prog { position: absolute; left: 0; right: 0; bottom: 4px; height: 16px; margin: 0; gap: 0; padding: 0 6px; justify-content: space-between; align-items: center; }
.prog li { width: 14px; height: 14px; border: 2px solid rgba(243, 233, 210, .42); background: #231710; }
.prog li.done { background: radial-gradient(circle at 35% 30%, #e0606c, #a42e3a 55%, #6a1c25); border-color: transparent; transform: scale(1.12); box-shadow: 0 2px 3px rgba(0, 0, 0, .5); }
.prog li.cur { border-color: var(--gold); background: #2c1d12; animation: none; }
.prog li.cur::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid var(--gold); opacity: 0; animation: dotRing 1.8s ease-out infinite; }
@keyframes dotRing { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }
.pship { position: absolute; left: 0; bottom: 15px; width: 34px; max-width: none; transform: translateX(var(--px, 0px)); transition: transform .9s cubic-bezier(.3, .8, .2, 1); }
.pship.sail { animation: pbob 2.4s ease-in-out infinite; transform-origin: 50% 85%; }
@keyframes pbob { 0%, 100% { rotate: -3deg; translate: 0 0; } 50% { rotate: 3deg; translate: 0 -1.5px; } }
html[dir="rtl"] .pship { scale: -1 1; }

.q .sheet {
  padding: 24px 22px 24px;
  background:
    radial-gradient(circle at var(--sx, 86%) var(--sy, 15%), transparent 0 25px, rgba(122, 82, 32, .13) 26px 28px, rgba(122, 82, 32, .05) 29px 37px, transparent 38px),
    radial-gradient(130% 100% at 50% 46%, transparent 58%, rgba(140, 95, 40, .2)),
    url("../img/grain-paper.png") 0 0 / 128px 128px repeat,
    linear-gradient(180deg, var(--paper), var(--paper-2));
}
.q .sheet::before { content: ""; position: absolute; inset: 9px; border: 1px solid rgba(120, 85, 40, .26); border-radius: 3px; pointer-events: none; }
.q h2 { font-family: var(--display); font-weight: var(--dw); font-size: clamp(24px, 6.9vw, 29px); line-height: 1.18; letter-spacing: 0; color: #20170f; margin-bottom: 20px; }
.opt { border-radius: 8px; border-color: rgba(90, 60, 25, .34); background: linear-gradient(#fbf1d8, #efdfb6); padding: 14px 14px 14px 12px; font-size: 16.5px; }
.opt .wx { position: absolute; left: 7px; top: 12px; width: 28px; height: 28px; z-index: 2; animation: waxPress .55s cubic-bezier(.3, 1.5, .5, 1) both; }
@keyframes waxPress { 0% { transform: scale(2.8) rotate(-34deg); opacity: 0; } 50% { opacity: 1; } 100% { transform: rotate(-8deg); opacity: 1; } }
.opt[aria-pressed="true"] .nib { opacity: 0; }

/* ---------------------------------------------------------------- sign */
.sign h2 { font-family: var(--display); font-weight: var(--dw); font-size: 31px; letter-spacing: 0; }

/* ---------------------------------------------------------------- the crossing: a night at sea, full screen */
.voyage { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s .5s; }
html[data-screen="cross"] .voyage { opacity: 1; visibility: visible; transition: opacity .6s ease; }
.vsc2 { left: 0; top: 0; width: 100%; height: 100%; }
.vship2 { left: 0; width: 120px; top: calc(var(--hz, 440px) + 8px - 120px * .652); transform: translateX(-170px); transform-origin: 50% 85%; animation: sbob 1.6s ease-in-out infinite; }
@keyframes sbob { 0%, 100% { rotate: -3.5deg; translate: 0 0; } 50% { rotate: 3deg; translate: 0 -4px; } }
.vw { position: absolute; left: 0; width: calc(100% + 100px); height: 36px; background-repeat: repeat-x; background-size: 100px 36px; animation: slideW 2.2s linear infinite; }
.vw.v1 { top: calc(var(--hz, 440px) + 26px); }
.vw.v2 { top: calc(var(--hz, 440px) + 70px); animation-duration: 1.5s; animation-direction: reverse; }
@keyframes slideW { to { transform: translateX(-100px); } }
.cross { min-height: calc(100dvh - 150px); place-content: start center; padding-top: 7vh; gap: 18px; }
#crossSeal { position: relative; width: 112px; margin: 0 auto; }
#crossSeal::before { content: ""; position: absolute; inset: -74px; border-radius: 50%; background: radial-gradient(closest-side, rgb(var(--tc) / .55), rgb(var(--tc) / .16) 56%, transparent); animation: breatheGlow 3s ease-in-out infinite; }
.cross .seal { position: relative; filter: none; }
.cross p { color: var(--gold-hi); text-shadow: 0 2px 14px rgba(0, 0, 0, .85); }
.cross .skip { position: fixed; left: 50%; bottom: max(26px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 3; text-shadow: 0 1px 8px rgba(0, 0, 0, .9); white-space: nowrap; }

/* ---------------------------------------------------------------- the letter: a letterhead with postage, and a little foxing */
.letter {
  background:
    radial-gradient(circle at 88% 38%, transparent 0 30px, rgba(122, 82, 32, .11) 31px 33px, rgba(122, 82, 32, .04) 34px 44px, transparent 45px),
    radial-gradient(70px 46px at 7% 74%, rgba(150, 105, 50, .1), transparent 70%),
    radial-gradient(60px 40px at 93% 90%, rgba(150, 105, 50, .09), transparent 70%),
    radial-gradient(130% 100% at 50% 46%, transparent 58%, rgba(140, 95, 40, .2)),
    url("../img/grain-paper.png") 0 0 / 128px 128px repeat,
    linear-gradient(180deg, var(--paper), var(--paper-2));
}
.lhead { position: relative; align-items: flex-start; margin-bottom: 12px; padding-bottom: 14px; border-bottom: 0; }
.lhead::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; border-top: 1px solid rgba(90, 65, 30, .36); border-bottom: 1px solid rgba(90, 65, 30, .22); }
.lh-text { display: flex; flex-direction: column; gap: 7px; min-width: 0; padding-top: 6px; }
.lhead .place { font-family: var(--display); font-weight: var(--dw); font-size: 15px; line-height: 1.2; letter-spacing: .2em; }
.lhead .yr { font-family: var(--display); font-size: 17px; letter-spacing: .08em; }
.postage { position: relative; flex: none; width: 56px; height: 68px; margin: -4px -2px 0 8px; }
.postage .stamp { position: absolute; right: 0; top: 0; width: 46px; transform: rotate(3deg); }
.postage .pmark { position: absolute; right: 18px; top: 28px; width: 88px; transform: rotate(-9deg); }
html[dir="rtl"] .postage { margin: -4px 8px 0 -2px; }
html[dir="rtl"] .postage .stamp { right: auto; left: 0; transform: rotate(-3deg); }
html[dir="rtl"] .postage .pmark { right: auto; left: 18px; transform: rotate(9deg); }

/* ---------------------------------------------------------------- the verdict */
.verdict { position: relative; padding-top: 6px; }
.crest { position: relative; width: 112px; height: 112px; margin: 0 auto 12px; }
.crest::before { content: ""; position: absolute; inset: -48px; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgb(var(--tc) / .55), rgb(var(--tc) / .16) 58%, transparent 78%); }
.crest .seal { position: relative; display: block; width: 100%; height: 100%; transform: rotate(-4deg); }
.crest::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--vc); opacity: 0; pointer-events: none; }
.more.show .crest .seal { animation: crestIn .8s cubic-bezier(.3, 1.45, .5, 1) both; }
.more.show .crest::after { animation: crestRing 1s .32s ease-out both; }
@keyframes crestIn { 0% { transform: scale(2.6) rotate(-22deg); opacity: 0; } 45% { opacity: 1; } 100% { transform: rotate(-4deg); opacity: 1; } }
@keyframes crestRing { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
.more.show .verdict > :nth-child(1) { animation: none; }
.more.show .verdict > :nth-child(2) { animation-delay: .1s; }
.more.show .verdict > :nth-child(3) { animation: verdictIn .8s .2s cubic-bezier(.2, 1.2, .3, 1) both; }
.more.show .verdict > :nth-child(4) { animation-delay: .45s; }
.more.show .verdict > :nth-child(5) { animation-delay: .55s; }
.more.show .verdict > :nth-child(6) { animation-delay: .65s; }
.more.show .verdict > :nth-child(7) { animation-delay: .78s; }
.more.show .verdict > :nth-child(8) { animation-delay: .9s; }
.more.show .verdict > :nth-child(9) { animation: stampIn .55s 1s cubic-bezier(.3, 1.6, .5, 1) both; }
.verdict .you { font-family: var(--display); font-weight: var(--dw); font-size: 14px; letter-spacing: .3em; color: var(--gold); }
.ttl { position: relative; margin: 8px 0 4px; font-family: var(--display); font-weight: var(--dw); font-size: clamp(38px, 11.6vw, 54px); line-height: 1.04; letter-spacing: 0; font-synthesis: none; text-wrap: balance; }
.ttl::before { content: attr(data-t); position: absolute; inset: 0; transform: translateY(3px); color: rgba(0, 0, 0, .5); pointer-events: none; text-wrap: balance; }
.ttl h2, .more.show .verdict .ttl h2 {
  position: relative; display: inline; margin: 0; font: inherit; animation: none; filter: none; text-shadow: none;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; /* a title that wraps gets the whole gradient on every line */
  background: linear-gradient(180deg, #fff7de 0%, var(--vc) 46%, var(--vd) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.verdict .noun { margin: 2px 0 0; font-family: var(--display); font-style: italic; font-weight: 400; font-size: 21px; color: #f6ead0; }
.orn { height: 14px; width: 168px; margin: 12px auto 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 168 14'%3E%3Cpath d='M2 7H66M102 7H166' stroke='%23e9bb6a' stroke-width='1' stroke-linecap='round' opacity='.65'/%3E%3Cpath d='M84 1L91 7L84 13L77 7Z' fill='%23e9bb6a'/%3E%3Ccircle cx='70' cy='7' r='1.8' fill='%23e9bb6a'/%3E%3Ccircle cx='98' cy='7' r='1.8' fill='%23e9bb6a'/%3E%3C/svg%3E") center / contain no-repeat; }
.verdict .from { font-family: var(--display); font-style: italic; }
.em { position: absolute; left: 50%; top: 62px; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: var(--vc); box-shadow: 0 0 7px 1px var(--vc); opacity: 0; pointer-events: none; animation: ember var(--dur, 1.8s) var(--dl, 0s) cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes ember { 0% { opacity: 0; transform: translate(0, 0) scale(1.2); } 14% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.2); } }

/* the compass of answers, then the bars */
.dna { padding: 18px 18px 8px; background: linear-gradient(rgba(0, 0, 0, .28), rgba(0, 0, 0, .18)); border-color: rgba(233, 187, 106, .24); box-shadow: inset 0 1px 0 rgba(255, 241, 201, .06); }
.dna h3 { margin-bottom: 8px; line-height: 1.5; text-align: center; font-family: var(--display); font-weight: var(--dw); font-size: 13px; letter-spacing: .26em; color: var(--gold); }
.compass { display: block; width: 156px; height: 156px; margin: 4px auto 14px; overflow: visible; }
.compass .pk { transform-box: view-box; transform-origin: 80px 80px; transform: scale(.1); transition: transform 1s cubic-bezier(.2, 1.25, .35, 1) calc(var(--n) * .13s + .3s); }
.more.show .compass .pk { transform: none; }
.dna .bar { position: relative; height: 10px; overflow: hidden; background: rgba(243, 233, 210, .1); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .4); }
.dna .bar i { width: 100%; background: linear-gradient(90deg, rgba(255, 255, 255, .22), var(--rc) 42%, var(--rc)); transform: translateX(calc(-100% + var(--p, 0) * 1%)); transition: transform 1.1s cubic-bezier(.2, .8, .2, 1) .35s; }
html[dir="rtl"] .dna .bar i { transform: translateX(calc(100% - var(--p, 0) * 1%)); }
.card canvas { border-radius: 4px; box-shadow: 0 0 0 1px rgba(233, 187, 106, .3), 0 20px 34px rgba(0, 0, 0, .55); }
.credit { font-family: var(--display); }

/* ---------------------------------------------------------------- v2 in a phone webview (lite) */
html[data-lite] .glow { display: block; animation: none; }  /* a still candle glow: the flicker is for bigger screens */
html[data-lite] .env-hint { animation: none; }            /* the hint stands still (its nudge cost a surprising share of the compositor) */
html[data-lite] .vship { animation: vbob 6.5s ease-in-out infinite; }
html[data-lite] #crossSeal::before { animation: none; }
html[data-lite] .more.show .verdict > .ttl { animation: verdictIn .7s .12s cubic-bezier(.2, 1.2, .3, 1) both; }
html[data-lite] .dna .bar i { transition: transform 1s cubic-bezier(.2, .8, .2, 1) .3s; }
/* a scene that is not on screen stands still (an animation under visibility:hidden still keeps waking the compositor) */
html:not([data-screen="intro"]) .vship, html:not([data-screen="cross"]) .vship2, html:not([data-screen="cross"]) .vw { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .vship, .vship2, .pship.sail, .vw, .prog li.cur::after { animation: none; }
}
/* IM Fell has only old-style figures (a "1" reads as an "I" in "1 OF 6"): digits in the question counter come from a system serif that has lining ones */
@font-face { font-family: "LN"; src: local("Palatino Linotype"), local("Palatino"), local("Book Antiqua"), local("Noto Serif"), local("Times New Roman"), local("Droid Serif"); unicode-range: U+30-39; }
.kicker .qn { font-family: "LN", var(--display); font-weight: 700; }
