/* Legacy — milestone films and money effects (js/sapphire-films.js) */
/* a film: full screen, the scene drawn on the canvas, the words low on the screen so the scene stays visible */
.mf-film { background: #000; cursor: pointer; }
.mf-film .mf-txt { position: absolute; left: 16px; right: 16px; bottom: 5%; text-align: center; }
.mf-film .mf-txt i { font-size: 44px; }
.mf-film .mf-txt b { display: block; font-size: clamp(22px, 5vw, 38px); line-height: 1.15; }
.mf-film .mf-txt small { display: block; margin-top: 4px; font-size: 15px; opacity: .88; }
/* the Legendary edition is widescreen */
.mf-leg::before, .mf-leg::after { content: ''; position: absolute; left: 0; right: 0; height: 7vh; background: #000; z-index: 2; }
.mf-leg::before { top: 0; } .mf-leg::after { bottom: 0; }
.mf-leg .mf-txt { bottom: calc(7vh + 4%); }
.mf-ribbon { position: absolute; top: calc(7vh + 12px); left: 50%; transform: translateX(-50%); z-index: 3; background: linear-gradient(90deg, #ffd84a, #e0a800, #ffd84a); color: #3a2400; font-weight: 900; font-size: 12px; padding: 4px 12px; border-radius: 999px; box-shadow: 0 0 14px rgb(255 216 74 / .55); white-space: nowrap; }
.mf-skip { position: absolute; right: 14px; top: 12px; z-index: 3; color: rgb(255 255 255 / .6); font-size: 12px; }
.mf-leg .mf-skip { top: calc(7vh + 14px); }

/* money landing in cash: an overlay that never catches a tap (a tap anywhere ends it) */
.mx-fx { position: fixed; inset: 0; z-index: 99980; pointer-events: none; animation: rkIn .2s ease both; }
.mx-fx.out { animation: rkOut .3s ease both; }
.mx-fx canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.mx-full { background: rgb(5 8 25 / .25); }
.mx-t4, .mx-t5 { background: rgb(5 8 25 / .45); }
.mx-txt { position: absolute; left: 16px; right: 16px; top: 20%; text-align: center; color: #fff; text-shadow: 0 2px 12px rgb(0 0 0 / .7); animation: mxUp .7s cubic-bezier(.2, .8, .3, 1.2) .1s both; }
.mx-txt b { display: block; font-size: clamp(30px, 9vw, 72px); font-weight: 900; line-height: 1.1; background: linear-gradient(#fff6c8, #ffd84a 55%, #b8860b); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 #5a3800) drop-shadow(0 4px 14px rgb(0 0 0 / .6)); }
.mx-t5 .mx-txt b { font-size: clamp(36px, 11vw, 96px); }
.mx-txt small { display: block; margin-top: 6px; font-size: 15px; font-weight: 700; opacity: .92; }
@keyframes mxUp { from { opacity: 0; transform: translateY(30px) scale(.8); } }

/* the shop: drawn previews */
.mf-thumb { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; display: block; }
.sp-big .mf-thumb.big { width: min(360px, 100%); height: auto; aspect-ratio: 18 / 11; box-shadow: 0 6px 20px rgb(0 0 0 / .35); }

/* the diary: the films of this life, each with a play button */
.mf-reel { margin: 0 0 14px; }
.mf-reel h5 { margin: 0 0 6px; font-size: 13px; opacity: .8; }
.mf-list { display: grid; gap: 6px; }
.mf-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line, #d6dbe6); background: var(--surface, #fff); color: var(--ink, inherit); font: inherit; text-align: left; cursor: pointer; }
.mf-btn:hover { border-color: var(--accent, #2f6bff); }
.mf-btn i { font-size: 24px; font-style: normal; flex: none; }
.mf-btn span { flex: 1; min-width: 0; display: grid; }
.mf-btn b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mf-btn small { font-size: 12px; opacity: .7; }
.mf-btn em { font-style: normal; opacity: .75; flex: none; }
@media (prefers-reduced-motion: reduce) { .mx-txt, .mx-fx, .mf-film { animation: none; } }
