/* stratanaut.com: a small scene for each app, drawn in CSS in the app's own theme (themes.css).
   A scene is decoration (aria-hidden) and shows no more than the app's tagline says.
   It is 12 empty <i> (build.py) on a 5:4 stage measured in container units: 1cqw is 1% of the
   stage's width, so the stage is 100 x 80 cqw at any size.
   The resting state is the finished scene. That is what shows with reduced motion, or in a browser
   without scroll-driven animation. With motion, a scene assembles while its slab slides in, on the
   slab's own timeline (--tl, from themes.css). Each part sets where it comes from with --fx, --fy
   (offset), --fs (scale), --fr (rotation) and --fo (opacity), and when with --a0 and --a1 (--b0
   and --b1 for a second step). Those count across the part of the slide-in in which the scene can
   be seen, from --r0 on (--rk is 1 - --r0): a scene sits lower in a wide slab than in a narrow one.
   A few details keep moving after that. */
.scene {
  position: relative; justify-self: center; width: min(100%, 280px); aspect-ratio: 5 / 4;
  container-type: inline-size; --r0: 12%; --rk: .88;
}
@media (min-width: 900px) { .scene { width: min(100%, 500px); --r0: 32%; --rk: .68; } }
.scene i { position: absolute; display: block; }
.scene i::before, .scene i::after { position: absolute; }

/* Kept: find duplicates and free space. Nine photos; the extra copy of three is picked out, and
   the storage bar drops. */
.s-kept i {
  width: 20cqw; height: 20cqw; border-radius: 3.4cqw;
  box-shadow: 0 1.4cqw 3cqw -1.4cqw rgb(0 0 0 / .6); --fy: 5cqw; --fs: .9;
}
.s-kept i:nth-child(3n+1) { left: 17cqw; --a0: 6%; --a1: 32%; }
.s-kept i:nth-child(3n+2) { left: 40cqw; --a0: 12%; --a1: 38%; }
.s-kept i:nth-child(3n) { left: 63cqw; --a0: 18%; --a1: 44%; }
.s-kept i:where(:nth-child(-n+3)) { top: 2cqw; }
.s-kept i:where(:nth-child(n+4):nth-child(-n+6)) { top: 25cqw; }
.s-kept i:where(:nth-child(n+7):nth-child(-n+9)) { top: 48cqw; }
.s-kept i:where(:nth-child(n+11)) { display: none; }
.s-kept i:nth-child(1), .s-kept i:nth-child(2) {
  background: radial-gradient(circle at 68% 34%, #ffe2a3 0 9%, transparent 10%),
    linear-gradient(to top, #2a2036 0 30%, transparent 30.5%), linear-gradient(170deg, #b98cff, #f5b43c);
}
.s-kept i:nth-child(3) {
  background: radial-gradient(circle at 50% 40%, #2a2036 0 17%, transparent 18%),
    radial-gradient(40% 34% at 50% 100%, #2a2036 0 98%, transparent 100%), linear-gradient(160deg, #f7c86e, #e08a3a);
}
.s-kept i:nth-child(4) {
  background: linear-gradient(to top, #231a2e 0 24%, transparent 24.5%),
    conic-gradient(from 135deg at 36% 40%, #3b2d52 0 90deg, transparent 0),
    conic-gradient(from 135deg at 70% 54%, #54427a 0 90deg, transparent 0), linear-gradient(#f5b43c, #f7d9a0);
}
.s-kept i:nth-child(5), .s-kept i:nth-child(6) {
  background: linear-gradient(to top, #3b2f5c 0 38%, rgb(255 255 255 / .55) 38% 40%, transparent 40%),
    radial-gradient(circle at 34% 62%, #ffd89a 0 13%, transparent 14%), linear-gradient(#7b62c9, #f0a35e);
}
.s-kept i:nth-child(7), .s-kept i:nth-child(8) {
  background: radial-gradient(circle at 72% 30%, #f5f0fa 0 8%, transparent 9%),
    radial-gradient(circle at 24% 24%, #fff 0 2%, transparent 3%), radial-gradient(circle at 44% 44%, #fff 0 1.6%, transparent 2.6%),
    linear-gradient(to top, #161020 0 26%, transparent 26.5%), linear-gradient(#2c2250, #6d4fb0);
}
.s-kept i:nth-child(9) {
  background: radial-gradient(circle at 50% 46%, #f5b43c 0 12%, transparent 13%),
    radial-gradient(circle at 50% 46%, #b98cff 0 25%, transparent 26%), linear-gradient(160deg, #3a2a4d, #1f1829);
}
.s-kept i:is(:nth-child(2), :nth-child(6), :nth-child(8)) {
  scale: .9; outline: .7cqw solid var(--t-acc); outline-offset: .6cqw; --b0: 48%; --b1: 62%;
}
.s-kept i:nth-child(6) { --b0: 54%; --b1: 68%; }
.s-kept i:nth-child(8) { --b0: 60%; --b1: 74%; }
.s-kept i:is(:nth-child(2), :nth-child(6), :nth-child(8))::before {
  content: ""; inset: 0; border-radius: inherit; background: rgb(20 16 23 / .55);
}
.s-kept i:is(:nth-child(2), :nth-child(6), :nth-child(8))::after {
  content: ""; right: -2.6cqw; top: -2.6cqw; width: 6.4cqw; height: 6.4cqw; border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%231d1405' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 66% no-repeat, var(--t-acc);
  box-shadow: 0 0 0 .6cqw var(--t-bg);
}
.s-kept i:nth-child(10) {
  left: 17cqw; top: 73cqw; width: 66cqw; height: 2.6cqw; border-radius: 1.3cqw;
  background: rgb(var(--t-ink-rgb) / .12); box-shadow: none; --fy: 0; --fs: 1; --a0: 4%; --a1: 26%;
}
.s-kept i:nth-child(10)::before {
  content: ""; left: 0; top: 0; bottom: 0; width: 38%; border-radius: inherit; transform-origin: left;
  background: linear-gradient(90deg, var(--t-acc), #ffd27a);
}

/* Suare: dark thriller, horror and crime stories. A page writes itself line by line under a
   candle, and one line turns the colour of blood. */
.s-suare { rotate: -4deg; }
.s-suare i:nth-child(1) {
  left: 24cqw; top: 3cqw; width: 52cqw; height: 74cqw; border-radius: 1.2cqw;
  background: linear-gradient(180deg, rgb(var(--t-ink-rgb) / .11), rgb(var(--t-ink-rgb) / .04));
  box-shadow: inset 0 0 0 .25cqw rgb(var(--t-ink-rgb) / .14), 0 3cqw 6cqw -2cqw rgb(0 0 0 / .7);
  --fy: 6cqw; --a0: 4%; --a1: 28%;
}
.s-suare i:where(:nth-child(n+2):nth-child(-n+9)) {
  left: 30cqw; height: 1.5cqw; border-radius: .75cqw; background: rgb(var(--t-ink-rgb) / .32);
  transform-origin: left; --fy: 0; --fs: 0 1;
}
.s-suare i:nth-child(2) { top: 11cqw; width: 40cqw; --a0: 20%; --a1: 30%; }
.s-suare i:nth-child(3) { top: 18cqw; width: 36cqw; --a0: 27%; --a1: 37%; }
.s-suare i:nth-child(4) { top: 25cqw; width: 40cqw; --a0: 34%; --a1: 44%; }
.s-suare i:nth-child(5) { top: 32cqw; width: 26cqw; --a0: 41%; --a1: 51%; }
.s-suare i:nth-child(6) { top: 39cqw; width: 38cqw; --a0: 48%; --a1: 58%; }
.s-suare i:nth-child(7) { top: 46cqw; width: 34cqw; background: rgb(var(--t-acc2-rgb)); --a0: 55%; --a1: 66%; }
.s-suare i:nth-child(8) { top: 53cqw; width: 40cqw; --a0: 62%; --a1: 72%; }
.s-suare i:nth-child(9) { top: 60cqw; width: 22cqw; --a0: 69%; --a1: 79%; }
.s-suare i:nth-child(10) {
  left: 65.5cqw; top: 42.4cqw; width: 3cqw; height: 3cqw; border-radius: 50% 0 50% 50%; rotate: -45deg;
  background: rgb(var(--t-acc2-rgb)); --fy: -24cqw; --fr: -45deg; --a0: 76%; --a1: 92%;
}
.s-suare i:nth-child(11) { left: 26cqw; top: 10cqw; width: 60cqw; height: 60cqw; --fy: 0; --a0: 30%; --a1: 70%; }
.s-suare i:nth-child(11)::before {
  content: ""; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgb(var(--t-acc-rgb) / .2), transparent 66%);
}

/* Milki: a hands-free feeding tracker. A session ring fills, one side is marked, and a voice level
   moves below. */
@property --p { syntax: "<number>"; inherits: false; initial-value: 0; }
.s-milki i:nth-child(1) {
  left: 27cqw; top: 5cqw; width: 46cqw; height: 46cqw; border-radius: 50%; --p: 68;
  background: conic-gradient(var(--t-acc) calc(var(--p) * 1%), rgb(var(--t-ink-rgb) / .1) 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 3cqw), #000 calc(100% - 2.9cqw));
  --fy: 0; --fs: .85; --a0: 8%; --a1: 30%;
}
.s-milki i:nth-child(2) {
  left: 36cqw; top: 14cqw; width: 28cqw; height: 28cqw; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #fff 0 8%, #ffd1e0 30%, var(--t-acc) 78%);
  box-shadow: 0 0 9cqw rgb(var(--t-acc-rgb) / .45); --fy: 0; --fs: .6; --a0: 14%; --a1: 42%;
}
.s-milki i:nth-child(2)::after {
  content: ""; inset: 0; border-radius: 50%; box-shadow: 0 0 0 .5cqw rgb(var(--t-acc-rgb) / .7); opacity: 0;
}
.s-milki i:nth-child(3), .s-milki i:nth-child(4) { top: 24cqw; width: 8cqw; height: 8cqw; border-radius: 50%; --fy: 0; --fs: .2; }
.s-milki i:nth-child(3) {
  left: 10cqw; background: var(--t-acc); box-shadow: 0 0 4cqw rgb(var(--t-acc-rgb) / .5); --a0: 48%; --a1: 60%;
}
.s-milki i:nth-child(4) { left: 82cqw; box-shadow: inset 0 0 0 .6cqw rgb(var(--t-ink-rgb) / .3); --a0: 54%; --a1: 66%; }
.s-milki i:where(:nth-child(n+5):nth-child(-n+9)) { bottom: 6cqw; width: 2cqw; transform-origin: bottom; --fy: 0; --fs: 1 0; }
.s-milki i:where(:nth-child(n+5):nth-child(-n+9))::before {
  content: ""; inset: 0; border-radius: 1cqw; background: rgb(var(--t-acc2-rgb)); transform-origin: bottom;
}
.s-milki i:nth-child(5) { left: 41cqw; height: 4cqw; --a0: 60%; --a1: 70%; }
.s-milki i:nth-child(6) { left: 45cqw; height: 8cqw; --a0: 63%; --a1: 73%; }
.s-milki i:nth-child(7) { left: 49cqw; height: 11cqw; --a0: 66%; --a1: 76%; }
.s-milki i:nth-child(8) { left: 53cqw; height: 7cqw; --a0: 69%; --a1: 79%; }
.s-milki i:nth-child(9) { left: 57cqw; height: 5cqw; --a0: 72%; --a1: 82%; }

/* Eat First: eat what expires first. Five things on a shelf sort themselves by how soon they go
   off, and the first one is pointed out. */
.s-eatfirst i:nth-child(1) {
  left: 6cqw; top: 66cqw; width: 88cqw; height: 1.2cqw; border-radius: .6cqw;
  background: rgb(var(--t-ink-rgb) / .22); --fy: 0; --fs: 0 1; --a0: 4%; --a1: 24%;
}
.s-eatfirst i:where(:nth-child(n+2):nth-child(-n+6)) {
  width: 13cqw; border-radius: 2.4cqw 2.4cqw 1.4cqw 1.4cqw;
  background: linear-gradient(180deg, rgb(var(--t-ink-rgb) / .16), rgb(var(--t-ink-rgb) / .06));
  box-shadow: inset 0 0 0 .3cqw rgb(var(--t-ink-rgb) / .18);
  --fy: 0; --fo: 1; --a0: 30%; --a1: 70%;
}
.s-eatfirst i:where(:nth-child(n+2):nth-child(-n+6))::before {
  content: ""; left: 18%; right: 18%; bottom: 16%; height: 2cqw; border-radius: 1cqw;
}
.s-eatfirst i:where(:nth-child(n+2):nth-child(-n+6))::after {
  content: ""; left: 12%; right: 12%; top: -2cqw; height: 2.2cqw; border-radius: 1cqw 1cqw .4cqw .4cqw;
  background: rgb(var(--t-ink-rgb) / .3);
}
.s-eatfirst i:nth-child(2) {
  left: 10cqw; top: 42cqw; height: 24cqw; --fx: 34cqw;
  box-shadow: inset 0 0 0 .3cqw rgb(var(--t-ink-rgb) / .18), 0 0 0 .6cqw var(--t-acc), 0 0 7cqw rgb(var(--t-acc-rgb) / .35);
}
.s-eatfirst i:nth-child(2)::before { background: #ff6b5a; }
.s-eatfirst i:nth-child(3) { left: 27cqw; top: 48cqw; height: 18cqw; --fx: 51cqw; }
.s-eatfirst i:nth-child(3)::before { background: #ffa24d; }
.s-eatfirst i:nth-child(4) { left: 44cqw; top: 38cqw; height: 28cqw; --fx: -34cqw; }
.s-eatfirst i:nth-child(4)::before { background: #f4dc5a; }
.s-eatfirst i:nth-child(5) { left: 61cqw; top: 46cqw; height: 20cqw; }
.s-eatfirst i:nth-child(5)::before { background: var(--t-acc); }
.s-eatfirst i:nth-child(6) { left: 78cqw; top: 44cqw; height: 22cqw; --fx: -51cqw; }
.s-eatfirst i:nth-child(6)::before { background: #4fd18b; }
.s-eatfirst i:nth-child(7) { left: 13.5cqw; top: 29cqw; width: 6cqw; height: 6cqw; --fy: -5cqw; --a0: 72%; --a1: 88%; }
.s-eatfirst i:nth-child(7)::before {
  content: ""; inset: 0; border-right: 1.3cqw solid var(--t-acc); border-bottom: 1.3cqw solid var(--t-acc);
  border-radius: .4cqw; rotate: 45deg;
}

/* NULLPORT: a spy crime story played on a phone. Messages come in, someone is typing, and one of
   two answers is chosen. */
.s-nullport i:where(:nth-child(-n+4)) {
  left: 10cqw; border-radius: 3cqw 3cqw 3cqw .8cqw; background: rgb(var(--t-ink-rgb) / .08);
  box-shadow: inset 0 0 0 .25cqw rgb(var(--t-ink-rgb) / .1); --fs: .9;
}
.s-nullport i:where(:nth-child(-n+3))::before, .s-nullport i:where(:nth-child(-n+3))::after {
  content: ""; left: 4cqw; height: 1.4cqw; border-radius: .7cqw; background: rgb(var(--t-ink-rgb) / .42);
}
.s-nullport i:nth-child(1) { top: 3cqw; width: 52cqw; height: 11cqw; --a0: 8%; --a1: 24%; }
.s-nullport i:nth-child(1)::before { top: 3cqw; right: 6cqw; }
.s-nullport i:nth-child(1)::after { top: 6.4cqw; right: 18cqw; }
.s-nullport i:nth-child(2) { top: 17cqw; width: 62cqw; height: 11cqw; --a0: 22%; --a1: 38%; }
.s-nullport i:nth-child(2)::before { top: 3cqw; right: 10cqw; }
.s-nullport i:nth-child(2)::after { top: 6.4cqw; right: 26cqw; }
.s-nullport i:nth-child(3) { top: 31cqw; width: 44cqw; height: 7.6cqw; --a0: 36%; --a1: 52%; }
.s-nullport i:nth-child(3)::before { top: 3.1cqw; right: 17cqw; background: var(--t-acc); }
.s-nullport i:nth-child(3)::after { top: 3.1cqw; left: auto; right: 4cqw; width: 10cqw; }
.s-nullport i:nth-child(4) {
  top: 42cqw; width: 15cqw; height: 7cqw; --a0: 48%; --a1: 60%;
  background: radial-gradient(circle at 28% 50%, rgb(var(--t-ink-rgb) / .55) 0 .9cqw, transparent 1cqw),
    radial-gradient(circle at 50% 50%, rgb(var(--t-ink-rgb) / .55) 0 .9cqw, transparent 1cqw),
    radial-gradient(circle at 72% 50%, rgb(var(--t-ink-rgb) / .55) 0 .9cqw, transparent 1cqw), rgb(var(--t-ink-rgb) / .08);
}
.s-nullport i:nth-child(5), .s-nullport i:nth-child(6) { top: 60cqw; width: 37cqw; height: 10cqw; border-radius: 5cqw; }
.s-nullport i:nth-child(5)::before, .s-nullport i:nth-child(6)::before {
  content: ""; left: 6cqw; right: 12cqw; top: 4.3cqw; height: 1.4cqw; border-radius: .7cqw;
}
.s-nullport i:nth-child(5) {
  left: 10cqw; background: var(--t-acc); box-shadow: 0 0 6cqw rgb(var(--t-acc-rgb) / .35); --a0: 60%; --a1: 74%;
}
.s-nullport i:nth-child(5)::before { background: var(--t-on); opacity: .5; }
.s-nullport i:nth-child(6) {
  left: 53cqw; opacity: .6; box-shadow: inset 0 0 0 .3cqw rgb(var(--t-ink-rgb) / .28); --a0: 64%; --a1: 78%;
}
.s-nullport i:nth-child(6)::before { background: rgb(var(--t-ink-rgb) / .35); }
.s-nullport i:nth-child(7) {
  left: 24cqw; top: 62.5cqw; width: 5cqw; height: 5cqw; border-radius: 50%; background: rgb(255 255 255 / .9);
  box-shadow: 0 0 0 1cqw rgb(255 255 255 / .25); --fy: 0; --fs: 2.2; --a0: 80%; --a1: 92%;
}
.s-nullport i:nth-child(7)::after {
  content: ""; inset: 0; border-radius: 50%; box-shadow: 0 0 0 .5cqw rgb(255 255 255 / .6); opacity: 0;
}

/* Archive: see which old emails can go. A core of mail, one layer per kind: the layers that can
   go are set aside, and what stays settles. The dashed line shows how tall the core was. */
.s-archive i {
  left: 20cqw; width: 26cqw; border-radius: .6cqw; background-color: var(--t-acc);
  background-image: linear-gradient(90deg, rgb(0 0 0 / .3), rgb(255 255 255 / .2) 14%, transparent 34%, transparent 76%, rgb(0 0 0 / .26));
  box-shadow: inset 0 .4cqw rgb(255 255 255 / .4), inset 0 -.6cqw rgb(0 0 0 / .32);
  --fo: 1; --fy: 0; --a0: 44%; --a1: 84%;
}
.s-archive i:nth-child(1) { top: 34cqw; height: 6cqw; --fy: -30cqw; }
.s-archive i:nth-child(3) { top: 40cqw; height: 5cqw; --fy: -21cqw; }
.s-archive i:nth-child(5) { top: 45cqw; height: 6cqw; --fy: -13cqw; }
.s-archive i:nth-child(6) { top: 51cqw; height: 10cqw; --fy: -13cqw; }
.s-archive i:nth-child(8) { top: 61cqw; height: 7cqw; --fy: -8cqw; }
.s-archive i:nth-child(10) { top: 68cqw; height: 6cqw; }
.s-archive i:is(:nth-child(2), :nth-child(4), :nth-child(7), :nth-child(9)) {
  left: 58cqw; opacity: .8; background-color: rgb(var(--t-acc2-rgb));
  background-image: repeating-linear-gradient(135deg, rgb(255 255 255 / .16) 0 .6cqw, transparent .6cqw 1.8cqw),
    linear-gradient(90deg, rgb(0 0 0 / .3), rgb(255 255 255 / .2) 14%, transparent 34%, transparent 76%, rgb(0 0 0 / .26));
  --fx: -38cqw; --fr: 0deg; --a0: 22%; --a1: 58%;
}
.s-archive i:nth-child(2) { top: 44cqw; height: 9cqw; rotate: 3deg; --fy: -34cqw; }
.s-archive i:nth-child(4) { top: 53cqw; height: 8cqw; rotate: -2deg; --fy: -29cqw; }
.s-archive i:nth-child(7) { top: 61cqw; height: 5cqw; rotate: 4deg; --fy: -13cqw; }
.s-archive i:nth-child(9) { top: 66cqw; height: 8cqw; rotate: -1deg; --fy: -6cqw; }
.s-archive i:nth-child(11) {
  top: 4cqw; height: 70cqw; background: none; box-shadow: none; outline: .3cqw dashed rgb(var(--t-ink-rgb) / .24); outline-offset: .6cqw;
  --fo: 0; --a0: 80%; --a1: 96%;
}
.s-archive i:nth-child(12) { display: none; }

/* Tribe Rush: evolve your army. Two units become one stronger unit, twice, and the last one is
   crowned. */
.s-triberush i:where(:nth-child(-n+3)) {
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #fff6dd 0 10%, transparent 34%), linear-gradient(160deg, var(--t-acc), #e2862a);
  box-shadow: inset 0 -1.2cqw 0 rgb(0 0 0 / .18), 0 1.6cqw 3cqw -1cqw rgb(0 0 0 / .6);
}
.s-triberush i:where(:nth-child(-n+3))::before {
  content: ""; left: 30%; right: 30%; top: 24%; bottom: 24%; background: rgb(42 20 5 / .75);
  clip-path: polygon(50% 0, 100% 45%, 64% 45%, 64% 100%, 36% 100%, 36% 45%, 0 45%);
}
.s-triberush i:nth-child(1) { left: 8cqw; top: 50cqw; width: 14cqw; height: 14cqw; --fy: 0; --fs: .3; --a0: 8%; --a1: 28%; }
.s-triberush i:nth-child(2) {
  left: 35cqw; top: 36cqw; width: 20cqw; height: 20cqw; --fx: -30cqw; --fy: 11cqw; --fs: .5; --a0: 34%; --a1: 54%;
}
.s-triberush i:nth-child(3) {
  left: 64cqw; top: 16cqw; width: 28cqw; height: 28cqw; --fx: -33cqw; --fy: 16cqw; --fs: .6; --a0: 60%; --a1: 80%;
  box-shadow: inset 0 -1.6cqw 0 rgb(0 0 0 / .18), 0 0 0 .8cqw rgb(var(--t-acc2-rgb) / .9), 0 0 9cqw rgb(var(--t-acc2-rgb) / .5);
}
.s-triberush i:nth-child(4) {
  left: 70cqw; top: 5cqw; width: 16cqw; height: 9cqw; background: var(--t-acc);
  clip-path: polygon(0 100%, 0 20%, 25% 60%, 50% 0, 75% 60%, 100% 20%, 100% 100%); --fy: -8cqw; --a0: 82%; --a1: 96%;
}
.s-triberush i:nth-child(5), .s-triberush i:nth-child(6) {
  width: 5cqw; height: 5cqw; rotate: 25deg;
  border-top: 1.1cqw solid rgb(var(--t-ink-rgb) / .45); border-right: 1.1cqw solid rgb(var(--t-ink-rgb) / .45);
}
.s-triberush i:nth-child(5) { left: 24.5cqw; top: 48cqw; --a0: 28%; --a1: 38%; }
.s-triberush i:nth-child(6) { left: 56cqw; top: 31cqw; --a0: 54%; --a1: 64%; }

/* SpellShot: a word race against another player. Two rows of letters race in from both sides
   while the clock runs down. */
.s-spellshot i:where(:nth-child(-n+9)) {
  top: 14cqw; width: 11cqw; height: 11cqw; border-radius: 2.2cqw; background: var(--t-acc); color: #fff;
  box-shadow: inset 0 -1cqw 0 rgb(0 0 0 / .2), 0 1.4cqw 3cqw -1cqw rgb(0 0 0 / .6);
  font: 800 6.4cqw/11cqw var(--t-display); text-align: center; --fx: -50cqw; --fy: 0; --fr: -25deg;
}
.s-spellshot i:where(:nth-child(-n+9))::before { inset: 0; }
.s-spellshot i:where(:nth-child(n+6):nth-child(-n+9)) { top: 34cqw; background: rgb(var(--t-acc2-rgb)); --fx: 50cqw; --fr: 25deg; }
.s-spellshot i:nth-child(1) { left: 18.5cqw; --a0: 10%; --a1: 34%; }
.s-spellshot i:nth-child(2) { left: 31.5cqw; --a0: 14%; --a1: 38%; }
.s-spellshot i:nth-child(3) { left: 44.5cqw; --a0: 18%; --a1: 42%; }
.s-spellshot i:nth-child(4) { left: 57.5cqw; --a0: 22%; --a1: 46%; }
.s-spellshot i:nth-child(5) { left: 70.5cqw; --a0: 26%; --a1: 50%; }
.s-spellshot i:nth-child(6) { left: 25cqw; --a0: 42%; --a1: 66%; }
.s-spellshot i:nth-child(7) { left: 38cqw; --a0: 38%; --a1: 62%; }
.s-spellshot i:nth-child(8) { left: 51cqw; --a0: 34%; --a1: 58%; }
.s-spellshot i:nth-child(9) { left: 64cqw; --a0: 30%; --a1: 54%; }
.s-spellshot i:nth-child(1)::before, .s-spellshot i:nth-child(6)::before { content: "S"; }
.s-spellshot i:nth-child(2)::before { content: "P"; }
.s-spellshot i:nth-child(3)::before { content: "E"; }
.s-spellshot i:nth-child(4)::before, .s-spellshot i:nth-child(5)::before { content: "L"; }
.s-spellshot i:nth-child(7)::before { content: "H"; }
.s-spellshot i:nth-child(8)::before { content: "O"; }
.s-spellshot i:nth-child(9)::before { content: "T"; }
.s-spellshot i:nth-child(10) {
  left: 18.5cqw; top: 58cqw; width: 63cqw; height: 2.4cqw; border-radius: 1.2cqw;
  background: rgb(var(--t-ink-rgb) / .12); --fy: 0; --a0: 4%; --a1: 24%;
}
.s-spellshot i:nth-child(10)::before {
  content: ""; left: 0; top: 0; bottom: 0; width: 34%; border-radius: inherit; transform-origin: left;
  background: linear-gradient(90deg, rgb(var(--t-acc2-rgb)), #ffb36b);
}

/* Mystica: bluff, memory and hidden powers. Three cards lie face down; one turns over and shows its
   sign, and the stars keep watch. */
.s-mystica { perspective: 140cqw; }
.s-mystica i:where(:nth-child(-n+3)), .s-mystica i:nth-child(2)::before {
  width: 22cqw; height: 32cqw; border-radius: 2cqw;
  background: repeating-linear-gradient(45deg, rgb(var(--t-acc2-rgb) / .95) 0 1.1cqw, rgb(var(--t-acc2-rgb) / .72) 1.1cqw 2.2cqw);
  box-shadow: inset 0 0 0 1cqw var(--t-bg2), inset 0 0 0 1.35cqw var(--t-acc), 0 3cqw 6cqw -2cqw rgb(0 0 0 / .8);
}
.s-mystica i:nth-child(1) { left: 16cqw; top: 26cqw; rotate: -14deg; --fx: 23cqw; --fy: -4cqw; --a0: 8%; --a1: 36%; }
.s-mystica i:nth-child(3) { left: 62cqw; top: 26cqw; rotate: 14deg; --fx: -23cqw; --fy: -4cqw; --a0: 8%; --a1: 36%; }
.s-mystica i:nth-child(2) {
  left: 39cqw; top: 22cqw; background: none; box-shadow: none; transform-style: preserve-3d;
  --fo: 1; --fy: 0; --fr: y 180deg; --a0: 46%; --a1: 84%;
}
.s-mystica i:nth-child(2)::before, .s-mystica i:nth-child(2)::after {
  content: ""; inset: 0; border-radius: 2cqw; backface-visibility: hidden;
}
.s-mystica i:nth-child(2)::before { rotate: y 180deg; }
.s-mystica i:nth-child(2)::after {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 6 L58 42 L94 50 L58 58 L50 94 L42 58 L6 50 L42 42 Z' fill='%23cd9f43'/%3E%3Ccircle cx='50' cy='50' r='7' fill='%23150f24'/%3E%3C/svg%3E") center / 62% no-repeat,
    radial-gradient(circle, rgb(var(--t-acc-rgb) / .3), transparent 66%), var(--t-bg2);
  box-shadow: inset 0 0 0 .5cqw var(--t-acc), 0 0 8cqw rgb(var(--t-acc-rgb) / .35);
}
.s-mystica i:where(:nth-child(n+4):nth-child(-n+8)) { width: 3.4cqw; height: 3.4cqw; --fy: 0; --fs: 0; --a0: 70%; --a1: 94%; }
.s-mystica i:where(:nth-child(n+4):nth-child(-n+8))::before {
  content: ""; inset: 0; background: var(--t-acc);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.s-mystica i:nth-child(4) { left: 10cqw; top: 8cqw; }
.s-mystica i:nth-child(5) { left: 86cqw; top: 12cqw; width: 2.4cqw; height: 2.4cqw; }
.s-mystica i:nth-child(6) { left: 28cqw; top: 70cqw; width: 2.2cqw; height: 2.2cqw; }
.s-mystica i:nth-child(7) { left: 80cqw; top: 66cqw; }
.s-mystica i:nth-child(8) { left: 54cqw; top: 6cqw; width: 2.6cqw; height: 2.6cqw; }

/* Sermaye: grow capital in a living economy. Prices rise and dip, and the last one is still
   moving. */
.s-sermaye i:where(:nth-child(-n+10)) {
  width: 4.4cqw; border-radius: .6cqw; background: var(--t-acc); transform-origin: bottom; --fy: 0; --fs: 1 0;
}
.s-sermaye i:where(:nth-child(-n+10))::before {
  content: ""; left: 50%; top: -3cqw; bottom: -3cqw; width: .5cqw; margin-left: -.25cqw; border-radius: .25cqw;
  background: inherit;
}
.s-sermaye i:nth-child(2n):not(:nth-child(10)) { background: rgb(var(--t-ink-rgb) / .38); }
.s-sermaye i:nth-child(1) { left: 12cqw; top: 52cqw; height: 10cqw; --a0: 12%; --a1: 26%; }
.s-sermaye i:nth-child(2) { left: 20.4cqw; top: 48cqw; height: 8cqw; --a0: 18%; --a1: 32%; }
.s-sermaye i:nth-child(3) { left: 28.8cqw; top: 44cqw; height: 12cqw; --a0: 24%; --a1: 38%; }
.s-sermaye i:nth-child(4) { left: 37.2cqw; top: 46cqw; height: 6cqw; --a0: 30%; --a1: 44%; }
.s-sermaye i:nth-child(5) { left: 45.6cqw; top: 36cqw; height: 12cqw; --a0: 36%; --a1: 50%; }
.s-sermaye i:nth-child(6) { left: 54cqw; top: 38cqw; height: 7cqw; --a0: 42%; --a1: 56%; }
.s-sermaye i:nth-child(7) { left: 62.4cqw; top: 28cqw; height: 12cqw; --a0: 48%; --a1: 62%; }
.s-sermaye i:nth-child(8) { left: 70.8cqw; top: 30cqw; height: 6cqw; --a0: 54%; --a1: 68%; }
.s-sermaye i:nth-child(9) { left: 79.2cqw; top: 20cqw; height: 12cqw; --a0: 60%; --a1: 74%; }
.s-sermaye i:nth-child(10) { left: 87.6cqw; top: 12cqw; height: 10cqw; --a0: 66%; --a1: 80%; }
.s-sermaye i:nth-child(10)::after {
  content: ""; left: 50%; top: -1.6cqw; width: 3.2cqw; height: 3.2cqw; margin-left: -1.6cqw; border-radius: 50%;
  background: var(--t-acc); box-shadow: 0 0 4cqw var(--t-acc);
}
.s-sermaye i:nth-child(11) {
  left: 6cqw; top: 6cqw; width: 88cqw; height: 68cqw;
  background: repeating-linear-gradient(180deg, rgb(var(--t-ink-rgb) / .08) 0 .25cqw, transparent .25cqw 11.25cqw);
  --fy: 0; --a0: 0%; --a1: 18%;
}
.s-sermaye i:nth-child(12) {
  left: 6cqw; top: 10.2cqw; width: 80cqw; border-top: .3cqw dashed rgb(var(--t-acc-rgb) / .55);
  transform-origin: right; --fy: 0; --fs: 0 1; --a0: 80%; --a1: 96%;
}

/* Telltale Wind: see where the wind comes from. The needle swings round to where the wind is
   coming from, and the air keeps moving past. */
.s-telltale i:nth-child(1) {
  left: 28cqw; top: 18cqw; width: 44cqw; height: 44cqw; border-radius: 50%;
  background: repeating-conic-gradient(from -.7deg, rgb(var(--t-ink-rgb) / .55) 0 1.4deg, transparent 1.4deg 30deg);
  mask: radial-gradient(farthest-side, transparent calc(100% - 2.6cqw), #000 calc(100% - 2.5cqw));
  --fy: 0; --fs: .8; --a0: 8%; --a1: 32%;
}
.s-telltale i:nth-child(1)::before { content: ""; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 .3cqw rgb(var(--t-ink-rgb) / .3); }
.s-telltale i:nth-child(2) {
  left: 48cqw; top: 12.6cqw; width: 4cqw; height: 3.6cqw; background: rgb(var(--t-ink-rgb) / .85);
  clip-path: polygon(50% 0, 100% 100%, 0 100%); --fy: -3cqw; --a0: 24%; --a1: 38%;
}
.s-telltale i:nth-child(3) {
  left: 46.5cqw; top: 22cqw; width: 7cqw; height: 36cqw; rotate: 45deg; --fo: 1; --fy: 0; --fr: -100deg; --a0: 30%; --a1: 78%;
}
.s-telltale i:nth-child(3)::before {
  content: ""; inset: 0; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background: linear-gradient(180deg, var(--t-acc) 0 50%, rgb(var(--t-ink-rgb) / .32) 50% 100%);
}
.s-telltale i:nth-child(4) {
  left: 48cqw; top: 38cqw; width: 4cqw; height: 4cqw; border-radius: 50%; background: var(--t-bg2);
  box-shadow: 0 0 0 .6cqw rgb(var(--t-ink-rgb) / .8); --fy: 0; --fs: 0; --a0: 30%; --a1: 40%;
}
.s-telltale i:where(:nth-child(n+5):nth-child(-n+10)) { height: .6cqw; rotate: -35deg; --fy: 0; --fr: -35deg; --a0: 40%; --a1: 70%; }
.s-telltale i:where(:nth-child(n+5):nth-child(-n+10))::before {
  content: ""; inset: 0; border-radius: .3cqw;
  background: linear-gradient(90deg, transparent, rgb(var(--t-acc2-rgb) / .75) 40% 60%, transparent);
}
.s-telltale i:nth-child(5) { left: 4cqw; top: 14cqw; width: 26cqw; }
.s-telltale i:nth-child(6) { left: 66cqw; top: 6cqw; width: 30cqw; }
.s-telltale i:nth-child(7) { left: 72cqw; top: 58cqw; width: 22cqw; }
.s-telltale i:nth-child(8) { left: 2cqw; top: 56cqw; width: 30cqw; }
.s-telltale i:nth-child(9) { left: 38cqw; top: 72cqw; width: 24cqw; }
.s-telltale i:nth-child(10) { left: 76cqw; top: 32cqw; width: 20cqw; }

/* Sonorra: steady noise, live. A thin line marks now; the trace behind it is bright, the trace
   ahead is dim, and a small moon keeps the night. */
.s-sonorra i:nth-child(1) {
  left: 49.8cqw; top: 8cqw; width: .4cqw; height: 64cqw; border-radius: .2cqw;
  background: linear-gradient(180deg, transparent, rgb(var(--t-ink-rgb) / .55) 20% 80%, transparent);
  --fy: 0; --fs: 1; --a0: 4%; --a1: 24%;
}
.s-sonorra i:nth-child(2) {
  left: 82cqw; top: 6cqw; width: 8cqw; height: 8cqw; border-radius: 50%;
  box-shadow: inset -2.4cqw -.6cqw 0 0 rgb(var(--t-ink-rgb) / .85); --fy: 0; --fs: .6; --a0: 60%; --a1: 90%;
}
.s-sonorra i:nth-child(2)::before {
  content: ""; inset: -4cqw; border-radius: 50%; background: radial-gradient(circle, rgb(var(--t-ink-rgb) / .12), transparent 68%);
}
.s-sonorra i:where(:nth-child(n+3)) { width: 3cqw; border-radius: 1.5cqw; top: calc(40cqw - var(--h) / 2); height: var(--h); --fy: 0; --fs: .3; }
.s-sonorra i:where(:nth-child(n+3):nth-child(-n+7)) { background: var(--t-acc); box-shadow: 0 0 3cqw rgb(var(--t-acc-rgb) / .45); }
.s-sonorra i:where(:nth-child(n+8)) { background: rgb(var(--t-acc2-rgb) / .3); }
.s-sonorra i:nth-child(3) { left: 12cqw; --h: 18cqw; --a0: 6%; --a1: 30%; }
.s-sonorra i:nth-child(4) { left: 20cqw; --h: 32cqw; --a0: 10%; --a1: 34%; }
.s-sonorra i:nth-child(5) { left: 28cqw; --h: 24cqw; --a0: 14%; --a1: 38%; }
.s-sonorra i:nth-child(6) { left: 36cqw; --h: 38cqw; --a0: 18%; --a1: 42%; }
.s-sonorra i:nth-child(7) { left: 44cqw; --h: 28cqw; --a0: 22%; --a1: 46%; }
.s-sonorra i:nth-child(8) { left: 54cqw; --h: 22cqw; --a0: 26%; --a1: 50%; }
.s-sonorra i:nth-child(9) { left: 62cqw; --h: 30cqw; --a0: 30%; --a1: 54%; }
.s-sonorra i:nth-child(10) { left: 70cqw; --h: 16cqw; --a0: 34%; --a1: 58%; }
.s-sonorra i:nth-child(11) { left: 78cqw; --h: 24cqw; --a0: 38%; --a1: 62%; }
.s-sonorra i:nth-child(12) { left: 86cqw; --h: 12cqw; --a0: 42%; --a1: 66%; }

/* Motion. Nothing here runs with reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) and (timeline-scope: --a) {
    .scene i {
      --s0: calc(var(--r0) + var(--a0, 25%) * var(--rk)); --s1: calc(var(--r0) + var(--a1, 60%) * var(--rk));
      --t0: calc(var(--r0) + var(--b0, 60%) * var(--rk)); --t1: calc(var(--r0) + var(--b1, 90%) * var(--rk));
      animation: arrive linear both; animation-timeline: var(--tl); animation-range: cover var(--s0) cover var(--s1);
    }
    .s-kept i:is(:nth-child(2), :nth-child(6), :nth-child(8)) {
      animation: arrive linear both, kept-pick linear both; animation-timeline: var(--tl), var(--tl);
      animation-range: cover var(--s0) cover var(--s1), cover var(--t0) cover var(--t1);
    }
    .s-kept i:is(:nth-child(2), :nth-child(6), :nth-child(8))::before,
    .s-kept i:is(:nth-child(2), :nth-child(6), :nth-child(8))::after {
      animation: pop linear both; animation-timeline: var(--tl); animation-range: cover var(--t0) cover var(--t1);
    }
    .s-kept i:nth-child(10)::before, .s-spellshot i:nth-child(10)::before {
      animation: drain linear both; animation-timeline: var(--tl); animation-range: cover var(--t0) cover var(--t1);
    }
    .s-kept i:nth-child(10)::before { --from: 2.3; }
    .s-spellshot i:nth-child(10) { --b0: 30%; }
    .s-spellshot i:nth-child(10)::before { --from: 2.9; }
    .s-milki i:nth-child(1) {
      --b0: 28%; --b1: 86%;
      animation: arrive linear both, fill linear both; animation-timeline: var(--tl), var(--tl);
      animation-range: cover var(--s0) cover var(--s1), cover var(--t0) cover var(--t1);
    }
  }
  /* The details that keep moving: all transform or opacity, on pseudo-elements, so they never
     fight the scroll. */
  .s-suare i:nth-child(11)::before { animation: flicker 3.4s ease-in-out infinite alternate; }
  .s-milki i:nth-child(2)::after { animation: ripple 2.8s ease-out infinite; }
  .s-milki i:where(:nth-child(n+5):nth-child(-n+9))::before { animation: voice 1.1s ease-in-out infinite alternate; }
  .s-milki i:nth-child(6)::before { animation-delay: -.4s; }
  .s-milki i:nth-child(7)::before { animation-delay: -.8s; }
  .s-milki i:nth-child(8)::before { animation-delay: -.2s; }
  .s-milki i:nth-child(9)::before { animation-delay: -.6s; }
  .s-eatfirst i:nth-child(7)::before { animation: nudge 1.3s ease-in-out infinite alternate; }
  .s-nullport i:nth-child(7)::after { animation: ripple 2.2s ease-out infinite; }
  .s-mystica i:where(:nth-child(n+4):nth-child(-n+8))::before { animation: twinkle 3.2s ease-in-out infinite; }
  .s-mystica i:nth-child(5)::before { animation-delay: -1.1s; }
  .s-mystica i:nth-child(6)::before { animation-delay: -2.2s; }
  .s-mystica i:nth-child(7)::before { animation-delay: -.6s; }
  .s-mystica i:nth-child(8)::before { animation-delay: -1.7s; }
  .s-sermaye i:nth-child(10)::after { animation: breathe 1.3s ease-in-out infinite alternate; }
  .s-telltale i:nth-child(3)::before { animation: sway 4.6s ease-in-out infinite; }
  .s-telltale i:where(:nth-child(n+5):nth-child(-n+10))::before { animation: gust 3.6s linear infinite; }
  .s-telltale i:nth-child(6)::before { animation-delay: -.7s; }
  .s-telltale i:nth-child(7)::before { animation-delay: -1.4s; }
  .s-telltale i:nth-child(8)::before { animation-delay: -2.1s; }
  .s-telltale i:nth-child(9)::before { animation-delay: -2.8s; }
  .s-telltale i:nth-child(10)::before { animation-delay: -3.2s; }
  .s-sonorra i:nth-child(2)::before { animation: flicker 4.6s ease-in-out infinite alternate; }
}
@keyframes arrive {
  from { opacity: var(--fo, 0); translate: var(--fx, 0) var(--fy, 3cqw); scale: var(--fs, 1); rotate: var(--fr, 0deg); }
}
@keyframes kept-pick { from { scale: 1; outline-color: transparent; } }
@keyframes pop { from { opacity: 0; scale: .3; } }
@keyframes drain { from { scale: var(--from) 1; } }
@keyframes fill { from { --p: 0; } }
@keyframes flicker { to { opacity: .72; scale: .96; } }
@keyframes breathe { to { scale: 1.5; opacity: .5; } }
@keyframes ripple { from { opacity: .8; scale: 1; } to { opacity: 0; scale: 1.8; } }
@keyframes voice { to { scale: 1 .4; } }
@keyframes nudge { to { translate: 0 1.4cqw; } }
@keyframes twinkle { 50% { opacity: .35; scale: .6; } }
@keyframes sway { 0%, 100% { rotate: -3deg; } 50% { rotate: 3deg; } }
@keyframes gust { from { translate: 12cqw 0; opacity: 0; } 30%, 70% { opacity: 1; } to { translate: -12cqw 0; opacity: 0; } }
