/* The Evolution Unleashed film. One stage, eight beats, flat black, white and yellow, no gradients.
   The player adds .at-1 ... .at-8 as the beats arrive and keeps them, so a rule under .at-N reads
   "from beat N on". Every movement is a keyframe animation (never a transition) so a pause freezes it
   and a still check (.static) can jump to the end of it. Each beat's colour panel wipes in over the
   last one with a higher z-index, so earlier actors never need hiding: beat N lives at z 10N to 10N+9.
   Sizes are container units: the whole stage scales as one picture. */

.film { position: relative; max-width: 1100px; margin: 0 auto; }
.film-stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; container-type: inline-size; background: var(--ink); border: 3px solid var(--paper); border-radius: 16px; box-shadow: 10px 10px 0 var(--yellow); isolation: isolate; user-select: none; -webkit-user-select: none; }
.film-stage * { box-sizing: border-box; }
.film-stage img { max-width: none; }
.v-world { position: absolute; inset: 0; }
.at-4 .v-world { animation: v-shake .38s linear .78s both; }
@keyframes v-shake { 0%, 100% { transform: none; } 20% { transform: translate(-.6cqw, .4cqw); } 40% { transform: translate(.5cqw, -.5cqw); } 60% { transform: translate(-.4cqw, -.2cqw); } 80% { transform: translate(.3cqw, .3cqw); } }

/* the shared moves */
@keyframes v-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes v-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes v-pop { from { opacity: 0; transform: scale(.55) rotate(calc(var(--r, 0) * 1deg)); } to { opacity: 1; transform: rotate(calc(var(--r, 0) * 1deg)); } }
@keyframes v-hop { from { opacity: 0; transform: translateY(3cqw) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes v-rise { from { opacity: 0; transform: translateY(2cqw); } to { opacity: 1; transform: none; } }
@keyframes v-draw { to { stroke-dashoffset: 0; } }
@keyframes v-strike { from { transform: scaleX(0) rotate(-1.5deg); } to { transform: scaleX(1) rotate(-1.5deg); } }
@keyframes v-spin { to { transform: rotate(360deg); } }

/* the poster frame before it plays */
.v-poster { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; }
.v-poster img { width: 22cqw; height: auto; transform: rotate(-3deg); box-shadow: .8cqw .8cqw 0 var(--paper); }

/* colour panels, a slanted wipe each */
.v-pan { position: absolute; inset: 0; clip-path: polygon(0 0, 0 0, -14% 100%, -14% 100%); }
@keyframes v-wipe { from { clip-path: polygon(0 0, 0 0, -14% 100%, -14% 100%); } to { clip-path: polygon(0 0, 114% 0, 100% 100%, -14% 100%); } }
.v-pan.dots { background-image: radial-gradient(rgba(14, 14, 14, .09) 18%, transparent 20%); background-size: 1.1cqw 1.1cqw; }
.p1 { z-index: 10; background-color: var(--bone); }
.p2 { z-index: 20; background-color: var(--yellow); }
.p3 { z-index: 30; background-color: var(--paper); }
.p4 { z-index: 40; background-color: var(--ink); }
.p5 { z-index: 50; background-color: var(--bone); }
.p6 { z-index: 60; background-color: var(--yellow); }
.p7 { z-index: 70; background-color: var(--ink); }
.p8 { z-index: 80; background-color: var(--yellow); }
.p9 { z-index: 90; background-color: var(--ink); }
.at-1 .p1, .at-2 .p2, .at-3 .p3, .at-5 .p5, .at-6 .p6, .at-7 .p7, .at-8 .p8 { animation: v-wipe .5s cubic-bezier(.7, 0, .25, 1) both; }
.at-4 .p4 { animation: v-wipe .5s cubic-bezier(.7, 0, .25, 1) 2.6s both; }
.at-8 .p9 { animation: v-wipe .55s cubic-bezier(.7, 0, .25, 1) 4.8s both; }

/* caption: black tape across the top */
.v-cap { position: absolute; z-index: 200; left: 0; right: 0; top: 3.2cqw; margin: 0; text-align: center; pointer-events: none; opacity: 0; transform: translateY(-1.2cqw) rotate(-1deg); transition: opacity .3s ease, transform .45s cubic-bezier(.2, .8, .3, 1.3); }
.v-cap span { display: inline-block; max-width: 88cqw; padding: .7cqw 1.9cqw .9cqw; background: var(--ink); color: var(--paper); font: 800 3.3cqw/1.08 var(--display); letter-spacing: -.03em; border: .25cqw solid var(--paper); box-shadow: .6cqw .6cqw 0 var(--yellow); }
.v-cap span:empty { display: none; }
.v-cap.show { opacity: 1; transform: rotate(-1deg); }
.at-8 .v-cap { animation: v-out .3s ease 4.5s forwards; }

/* stickers */
.v-sticker { position: absolute; font: 700 1.55cqw/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; background: var(--yellow); color: var(--ink); border: .2cqw solid var(--ink); padding: .8cqw 1.2cqw; box-shadow: .45cqw .45cqw 0 var(--paper); opacity: 0; }

/* ---------------------------------------- 1 and 2: the rulebook, then AI walks in */
.book, .book8 { position: absolute; background: var(--paper); border: .3cqw solid var(--ink); box-shadow: .9cqw .9cqw 0 var(--ink); opacity: 0; }
.book { z-index: 25; left: 9cqw; top: 12.5cqw; width: 44cqw; padding: 2.2cqw 2.8cqw 2.6cqw; transform: rotate(-2deg); }
.tape { position: absolute; top: -1.4cqw; width: 9cqw; height: 2.7cqw; background: rgba(240, 240, 236, .9); border: .1cqw solid rgba(14, 14, 14, .12); }
.tape.t1 { left: -2.4cqw; transform: rotate(-24deg); }
.tape.t2 { right: -2.4cqw; transform: rotate(21deg); }
.book__title { font: 800 4.6cqw/1 var(--display); letter-spacing: -.03em; text-transform: uppercase; color: var(--ink); border-bottom: .35cqw solid var(--ink); padding-bottom: 1cqw; margin: 0 0 1.2cqw; }
.book__list { margin: 0; padding: 0; list-style: none; }
.book__list li { display: flex; gap: 1.4cqw; align-items: center; font: 700 2.5cqw/1.25 var(--body); color: var(--ink); padding: .6cqw 0; clip-path: inset(0 100% 0 0); }
.book__list b, .sign b { font: 700 1.35cqw/1 var(--mono); background: var(--ink); color: var(--yellow); padding: .35cqw .5cqw; }
.at-1 .book { animation: v-drop .55s cubic-bezier(.3, 1.4, .5, 1) .2s both; }
@keyframes v-drop { from { opacity: 0; transform: translateY(-12cqw) rotate(-10deg); } to { opacity: 1; transform: rotate(-2deg); } }
.at-1 .book__list li { animation: v-type .5s steps(16, end) calc(1s + var(--i) * .7s) both; }
@keyframes v-type { to { clip-path: inset(0 0 0 0); } }
.at-2 .book { animation: v-tilt .6s cubic-bezier(.3, 1.4, .5, 1) 2.5s both; }
@keyframes v-tilt { from { opacity: 1; transform: rotate(-2deg); } to { opacity: 1; transform: translateY(1cqw) rotate(5deg); } }
.at-2 .book__list li { animation: v-fall .75s cubic-bezier(.5, 0, .9, .5) calc(2.6s + var(--i) * .22s) both; }
@keyframes v-fall { from { clip-path: inset(0 0 0 0); opacity: 1; transform: none; } to { clip-path: inset(0 0 0 0); opacity: 0; transform: translate(var(--fx), 22cqw) rotate(var(--fr)); } }

.burst { position: absolute; opacity: 0; }
.burst svg { width: 100%; height: 100%; fill: var(--paper); animation: v-spin 24s linear infinite; }
.burst--a { z-index: 23; left: 57cqw; top: 7cqw; width: 36cqw; height: 36cqw; }
.reader { position: absolute; z-index: 15; left: 66cqw; bottom: 1.2cqw; height: 38cqw; width: auto; opacity: 0; }
.at-1 .reader { animation: v-hop .45s cubic-bezier(.3, 1.4, .5, 1) .6s both; }
.walker { position: absolute; z-index: 24; left: 68cqw; bottom: 1.2cqw; height: 40cqw; width: auto; opacity: 0; }
.at-2 .walker { animation: v-walk 1.8s steps(6, end) .5s both; }
@keyframes v-walk { from { opacity: 1; transform: translateX(36cqw); } to { opacity: 1; transform: none; } }
.at-2 .burst--a { animation: v-burst .5s cubic-bezier(.3, 1.6, .5, 1) 2.3s both; }
@keyframes v-burst { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: none; } }

/* ---------------------------------------- 3 and 4: buried in the noise, then the stamp */
.owner { position: absolute; z-index: 31; left: 44.5cqw; bottom: 1.4cqw; height: 37cqw; width: auto; opacity: 0; }
.at-3 .owner { animation: v-hop .45s cubic-bezier(.3, 1.4, .5, 1) .4s both, v-sink 1.4s ease 3.6s forwards; }
@keyframes v-sink { from { opacity: 1; transform: none; } to { opacity: 1; transform: translateY(3cqw) scale(.93); } }
.at-4 .owner { animation: v-stand .45s cubic-bezier(.3, 1.5, .5, 1) 2s both; }
@keyframes v-stand { from { opacity: 1; transform: translateY(3cqw) scale(.93); } to { opacity: 1; transform: none; } }

.chip { position: absolute; z-index: 33; left: calc(var(--x) * 1cqw); top: calc(var(--y) * 1cqw); padding: .75cqw 1.2cqw; font: 700 1.55cqw/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; background: var(--paper); color: var(--ink); border: .22cqw solid var(--ink); box-shadow: .45cqw .45cqw 0 var(--ink); opacity: 0; }
.chip.k { background: var(--ink); color: var(--yellow); box-shadow: .45cqw .45cqw 0 var(--yellow); }
.chip.y { background: var(--yellow); }
.chip em { position: absolute; top: -1.2cqw; right: -1.2cqw; min-width: 2.4cqw; height: 2.4cqw; padding: 0 .5cqw; display: grid; place-items: center; border-radius: 2cqw; background: var(--ink); color: var(--paper); border: .2cqw solid var(--paper); font: 700 1.1cqw/1 var(--mono); font-style: normal; }
.chip.k em { background: var(--yellow); color: var(--ink); border-color: var(--ink); }
.at-3 .chip { animation: v-chipin .32s cubic-bezier(.3, 1.5, .5, 1) calc(.8s + var(--i) * .3s) both; }
@keyframes v-chipin {
  from { opacity: 0; transform: translate(-50%, -50%) translate(calc((var(--x) - 50) * 1.3cqw), calc((var(--y) - 30) * 1.3cqw)) scale(1.5); }
  to { opacity: 1; transform: translate(-50%, -50%) rotate(calc(var(--r) * 1deg)); }
}
.at-4 .chip { animation: v-chipout .6s cubic-bezier(.5, 0, .8, .4) calc(1.9s + var(--i) * .025s) both; }
@keyframes v-chipout {
  from { opacity: 1; transform: translate(-50%, -50%) rotate(calc(var(--r) * 1deg)); }
  to { opacity: 0; transform: translate(-50%, -50%) translate(calc((var(--x) - 50) * 2.6cqw), calc((var(--y) - 30) * 2.6cqw)) rotate(calc(var(--r) * 7deg)) scale(.7); }
}

.scribble { position: absolute; z-index: 36; inset: 0; width: 100%; height: 100%; opacity: 0; }
.scribble path { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.at-4 .scribble { animation: v-in .01s 1.15s both, v-out .25s ease 1.95s forwards; }
.at-4 .scribble path { animation: v-draw .65s ease-in-out 1.2s both; }

.v-stamp { position: absolute; z-index: 46; left: 50%; top: 53%; width: 25cqw; height: auto; opacity: 0; box-shadow: .8cqw .8cqw 0 var(--ink); }
.at-4 .v-stamp { animation: v-slam .28s cubic-bezier(.6, 0, .9, .6) .5s both, v-settle .5s cubic-bezier(.3, 1.4, .5, 1) 2.9s forwards; }
@keyframes v-slam { from { opacity: 0; transform: translate(-50%, -50%) scale(3) rotate(-18deg); } to { opacity: 1; transform: translate(-50%, -50%) rotate(-4deg); } }
@keyframes v-settle { from { opacity: 1; transform: translate(-50%, -50%) rotate(-4deg); box-shadow: .8cqw .8cqw 0 var(--ink); } to { opacity: 1; transform: translate(-50%, -50%) rotate(0) scale(1.1); box-shadow: .8cqw .8cqw 0 var(--paper); } }
.s-nohype { z-index: 47; left: 63cqw; top: 40cqw; --r: 8; }
.at-4 .s-nohype { animation: v-pop .35s cubic-bezier(.3, 1.6, .5, 1) 3.3s both; }

/* ---------------------------------------- 5: what's changing */
.poster { position: absolute; z-index: 52; width: 42cqw; padding: 1.5cqw 2cqw 1.7cqw; background: var(--paper); color: var(--ink); border: .25cqw solid var(--ink); box-shadow: .7cqw .7cqw 0 var(--ink); opacity: 0; }
.poster__tag { display: inline-block; font: 700 1.3cqw/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; background: var(--yellow); border: .18cqw solid var(--ink); padding: .45cqw .7cqw; }
.poster p { position: relative; display: flex; gap: 1.2cqw; align-items: baseline; margin: 1.1cqw 0 0; font: 700 2.1cqw/1.2 var(--body); }
.poster p b { flex: 0 0 4.2cqw; font: 700 1.2cqw/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.poster__was { color: #555; }
.poster__was i { position: absolute; left: 5cqw; right: -.5cqw; top: 50%; height: .3cqw; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; }
.poster__now { opacity: 0; }
.poster__now span { background: var(--yellow); padding: 0 .4cqw; box-shadow: .25cqw .25cqw 0 var(--ink); }
.at-5 .poster { animation: v-slap .28s cubic-bezier(.3, 1.4, .5, 1) calc(.4s + var(--k) * 1.5s) both; }
@keyframes v-slap { from { opacity: 0; transform: scale(1.35) rotate(calc(var(--r) * 1deg - 7deg)); } to { opacity: 1; transform: rotate(calc(var(--r) * 1deg)); } }
.at-5 .poster__was i { animation: v-strike .32s ease calc(.95s + var(--k) * 1.5s) both; }
.at-5 .poster__now { animation: v-pop .3s cubic-bezier(.3, 1.6, .5, 1) calc(1.2s + var(--k) * 1.5s) both; }

/* ---------------------------------------- 6: build your part */
.track { position: absolute; z-index: 61; inset: 0; width: 100%; height: 100%; opacity: 0; }
.track path { fill: none; stroke: var(--ink); stroke-width: .8; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.at-6 .track { animation: v-in .01s .3s both; }
.at-6 .track path { animation: v-draw 1s ease .3s both; }
.sign { position: absolute; z-index: 63; top: 12.5cqw; width: 19cqw; padding: 1cqw 1.2cqw 1.2cqw; background: var(--ink); color: var(--paper); font: 800 2.2cqw/1.05 var(--display); letter-spacing: -.02em; box-shadow: .5cqw .5cqw 0 var(--paper); opacity: 0; }
.sign b { display: table; margin-bottom: .6cqw; }
.sign:nth-child(odd) { --r: -2; }
.sign:nth-child(even) { --r: 2; }
.at-6 .sign { animation: v-pop .35s cubic-bezier(.3, 1.6, .5, 1) calc(1s + var(--k) * 1.45s) both; }
.stepper { position: absolute; z-index: 62; bottom: 5.4cqw; height: 27cqw; width: auto; opacity: 0; }
.at-6 .stepper { animation: v-hop .4s cubic-bezier(.3, 1.5, .5, 1) calc(1.05s + var(--k) * 1.45s) both, v-ghost .4s ease calc(2.5s + var(--k) * 1.45s) forwards; }
.at-6 .stepper.last { animation: v-hop .4s cubic-bezier(.3, 1.5, .5, 1) calc(1.05s + var(--k) * 1.45s) both; }
@keyframes v-ghost { from { opacity: 1; } to { opacity: .28; } }
.burst--b { z-index: 61; left: 69.5cqw; top: 16cqw; width: 28cqw; height: 28cqw; }
.at-6 .burst--b { animation: v-burst .5s cubic-bezier(.3, 1.6, .5, 1) 5.6s both; }

/* ---------------------------------------- 7: the community */
@property --n { syntax: "<integer>"; initial-value: 0; inherits: false; }
.count { position: absolute; z-index: 73; left: 0; right: 0; top: 11.5cqw; margin: 0; text-align: center; font: 800 12cqw/1 var(--display); letter-spacing: -.045em; color: var(--yellow); counter-reset: k var(--n); opacity: 0; }
.count::before { content: counter(k) ",000"; }
.at-7 .count { animation: v-in .2s ease .3s both, v-count 2s cubic-bezier(.2, .6, .3, 1) .4s both; }
@keyframes v-count { from { --n: 0; } to { --n: 65; } }
.count-l { position: absolute; z-index: 73; left: 0; right: 0; top: 24.5cqw; margin: 0; text-align: center; font: 700 1.6cqw/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--paper); opacity: 0; }
.at-7 .count-l { animation: v-rise .4s ease 1.2s both; }
.crowd { position: absolute; z-index: 72; left: 1cqw; right: 1cqw; bottom: 0; height: 22cqw; }
.crowd i { position: absolute; bottom: .4cqw; height: 13cqw; background: var(--yellow); -webkit-mask: var(--m) bottom center / contain no-repeat; mask: var(--m) bottom center / contain no-repeat; opacity: 0; }
.crowd i.back { bottom: 6.5cqw; height: 9.5cqw; background: #4a4a4a; }
.at-7 .crowd i { animation: v-hop .35s cubic-bezier(.3, 1.5, .5, 1) calc(.3s + var(--i) * .045s) both; }
.bubble { position: absolute; z-index: 74; width: 29cqw; margin: 0; padding: 1.4cqw 1.7cqw 1.5cqw; background: var(--paper); color: var(--ink); border: .25cqw solid var(--ink); box-shadow: .6cqw .6cqw 0 var(--yellow); opacity: 0; }
.bubble::after { content: ""; position: absolute; left: 3cqw; bottom: -2.2cqw; border: 1.1cqw solid transparent; border-top-color: var(--paper); border-left-color: var(--paper); }
.bubble p { margin: 0; font: 700 1.9cqw/1.25 var(--body); }
.bubble span { display: inline-block; margin-top: .9cqw; font: 700 1.25cqw/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; background: var(--yellow); padding: .35cqw .6cqw; }
.at-7 .bubble { animation: v-pop .38s cubic-bezier(.3, 1.6, .5, 1) calc(2.6s + var(--k) * 1s) both; }

/* ---------------------------------------- 8: your turn, then the end card */
.book8 { z-index: 82; left: 10cqw; top: 12.5cqw; width: 80cqw; padding: 2cqw 3cqw 2.4cqw; transform: rotate(-1deg); }
.book8__rows { margin: 0; padding: 0; list-style: none; }
.book8__rows li { display: grid; grid-template-columns: 1fr 3.4cqw 1fr; gap: 1.6cqw; align-items: center; padding: .75cqw 0; border-bottom: .15cqw dashed #c4c4c0; font: 700 2.4cqw/1.2 var(--body); color: var(--ink); }
.book8__rows li:last-child { border-bottom: 0; }
.book8 .old { position: relative; color: #6b6b6b; justify-self: start; }
.book8 .old i { position: absolute; left: -.5cqw; right: -.5cqw; top: 52%; height: .35cqw; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; }
.book8 .arrow { width: 3.4cqw; height: 3.4cqw; fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.book8 .new { justify-self: start; font: 800 2.6cqw/1.1 var(--display); letter-spacing: -.02em; opacity: 0; }
.book8 .new span { background: var(--yellow); padding: .1cqw .5cqw; box-shadow: .3cqw .3cqw 0 var(--ink); }
.book8__stamp { position: absolute; right: 3cqw; top: 1.4cqw; font: 800 3.2cqw/1 var(--display); text-transform: uppercase; letter-spacing: -.01em; color: var(--yellow); background: var(--ink); padding: .8cqw 1.6cqw; border: .3cqw solid var(--ink); box-shadow: .5cqw .5cqw 0 var(--yellow); opacity: 0; }
.at-8 .book8 { animation: v-drop8 .5s cubic-bezier(.3, 1.4, .5, 1) .2s both; }
@keyframes v-drop8 { from { opacity: 0; transform: translateY(-12cqw) rotate(-8deg); } to { opacity: 1; transform: rotate(-1deg); } }
.at-8 .book8 .old i { animation: v-strike .3s ease calc(.9s + var(--i) * .55s) both; }
.at-8 .book8 .arrow { animation: v-in .2s ease calc(1.05s + var(--i) * .55s) both; }
.at-8 .book8 .new { animation: v-pop .32s cubic-bezier(.3, 1.6, .5, 1) calc(1.15s + var(--i) * .55s) both; }
.at-8 .book8__stamp { animation: v-stampin .3s cubic-bezier(.6, 0, .9, .6) 3.5s both; }
@keyframes v-stampin { from { opacity: 0; transform: scale(2.4) rotate(-22deg); } to { opacity: 1; transform: rotate(-10deg); } }

.end { position: absolute; z-index: 92; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; }
.end__logo { width: 36cqw; height: auto; opacity: 0; }
.end__h { margin: 2.6cqw 0 0; font: 800 7.6cqw/.95 var(--display); letter-spacing: -.045em; color: var(--paper); opacity: 0; }
.end__h span:last-child { color: var(--yellow); }
.end__l { margin: 2.2cqw 0 0; font: 700 1.9cqw/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted-d); opacity: 0; }
.s-free { left: auto; right: 8cqw; top: 8cqw; --r: 8; }
.at-8 .end__logo { animation: v-rise .5s ease 5.2s both; }
.at-8 .end__h { animation: v-rise .5s ease 5.6s both; }
.at-8 .end__l { animation: v-rise .5s ease 6.3s both; }
.at-8 .s-free { animation: v-pop .35s cubic-bezier(.3, 1.6, .5, 1) 6.8s both; }

/* the big play button (only when it can't start by itself) */
.v-big { position: absolute; z-index: 210; left: 50%; top: 50%; transform: translate(-50%, -50%); display: none; align-items: center; gap: 1.2cqw; padding: 1.7cqw 3.2cqw 1.7cqw 2.6cqw; border: .3cqw solid var(--ink); border-radius: 1.2cqw; background: var(--yellow); color: var(--ink); font: 800 2.4cqw/1 var(--display); box-shadow: .7cqw .7cqw 0 var(--paper); cursor: pointer; }
.v-big svg { width: 2.6cqw; height: 2.6cqw; }
.film.is-idle .v-big { display: inline-flex; }
@media (max-width: 640px) { .v-big { font-size: 15px; padding: 12px 20px; gap: 8px; } .v-big svg { width: 18px; height: 18px; } }

/* phones: the caption leaves the picture and sits under it as a subtitle */
.film-sub { display: none; }
@media (max-width: 600px) {
  .v-cap { display: none; }
  .film-sub { display: block; min-height: 2.5em; margin: 16px 0 0; text-align: center; font: 800 1.2rem/1.2 var(--display); letter-spacing: -.02em; color: var(--paper); }
  .film-stage { border-radius: 10px; box-shadow: 6px 6px 0 var(--yellow); }
}

/* the control bar */
.film-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
.v-dots { display: flex; gap: 6px; flex: 1 1 200px; max-width: 460px; }
.v-dots i { position: relative; flex: 1; height: 5px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.v-dots i::after { content: ""; position: absolute; inset: 0; transform: scaleX(0); transform-origin: 0 50%; background: var(--yellow); }
.v-dots i.is-done::after { transform: scaleX(1); }
.v-dots i.is-now::after { animation: v-fill var(--dur, 4s) linear forwards; }
.film.is-paused .v-dots i.is-now::after { animation-play-state: paused; }
@keyframes v-fill { to { transform: scaleX(1); } }
.v-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.v-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 2px solid var(--paper); border-radius: 10px; background: transparent; color: var(--paper); font: 800 14px/1 var(--body); transition: transform .15s ease; }
.v-btn:hover { transform: translate(-2px, -2px); }
.v-btn svg { width: 16px; height: 16px; flex: none; }
.v-btn.v-sound.want { background: var(--yellow); color: var(--ink); border-color: var(--yellow); box-shadow: 4px 4px 0 var(--paper); animation: v-nudge 2.4s ease-in-out infinite; }
@keyframes v-nudge { 0%, 100% { transform: none; } 50% { transform: translate(-2px, -2px); } }
.film.is-paused .film-stage *, .film.is-paused .film-stage *::before, .film.is-paused .film-stage *::after { animation-play-state: paused !important; }

/* still checks (?filmbeat=N) jump every move to its end */
.film-stage.static, .film-stage.static * { transition: none !important; animation-delay: -30s !important; }

/* phones: the stage is small, so the words inside it get bigger */
@container (max-width: 560px) {
  .book { width: 52cqw; left: 6cqw; }
  .book__title { font-size: 5.6cqw; }
  .book__list li { font-size: 3.2cqw; }
  .chip { font-size: 1.9cqw; }
  .poster { width: 44cqw; padding: 1.4cqw 1.6cqw; }
  .poster p { font-size: 2.6cqw; }
  .poster p b { font-size: 1.6cqw; flex-basis: 5cqw; }
  .poster__was i { left: 5.8cqw; }
  .sign { font-size: 2.7cqw; width: 20cqw; }
  .bubble { width: 33cqw; }
  .bubble p { font-size: 2.3cqw; }
  .book8 { left: 4cqw; width: 92cqw; }
  .book8__rows li { font-size: 2.9cqw; }
  .book8 .new { font-size: 3.1cqw; }
  .end__l { font-size: 2.6cqw; }
}
