/* ==========================================================================
   ANIMAL ADVENTURE 2 - "THE BROKEN FARM BRIDGE"
   presentation only.

   Scoped entirely under .adv2-*. Nothing in this file can reach Adventure 1
   (its selectors are .c1-* / .animal-c1) or any legacy world (whose screens are
   .screen / .saga-map), because no selector here matches either.

   THE LAYOUT IDEA, and why it is a single column:

   The story is a picture, and the controls sit ON the picture. So the scene is
   a full-bleed fixed backdrop and the controls are a short column in front of
   it. That keeps the child's eye on the farm and the bridge, keeps the scene
   out of the scroll flow entirely (so scrolling a long panel never drags the
   artwork with it), and leaves exactly one scroll container on the page.

   The only column that can grow is .adv2-stage, and it grows downward inside
   safe-area padding, so nothing important can end up under a browser bar or a
   notch. Images are sized with width/height and object-fit, never with
   transform: scale().
   ========================================================================== */

/* ---------- the screen ---------- */
#app .adv2-screen{
  position:fixed;
  inset:0;
  z-index:24;
  display:flex;
  flex-direction:column;
  overflow:hidden;              /* the stage scrolls, not the page */
  background:#0f2a17;
  color:#f6fff0;
  font-family:inherit;
  touch-action:manipulation;
}
#app .adv2-screen[hidden]{display:none}

/* ---------- the scene backdrop ----------
   TWO layers that cross-fade. One layer would have to snap from one picture
   to the next, which is exactly the slideshow feeling the story rewrite was
   meant to remove. The pair is the same two-image idea Chapter 1 uses for its
   own story, reimplemented here so animal-story.js is never touched. */
#app .adv2-scene{
  position:absolute;
  inset:0;
  z-index:0;
  overflow:hidden;
}
#app .adv2-scene-layer{
  position:absolute;
  inset:0;
  opacity:0;
  transition:opacity .62s ease;
  pointer-events:none;         /* the art is never a tap target any more */
}
#app .adv2-scene-layer.is-front{opacity:1}
/* Fills the letterbox bands a contained portrait artwork leaves on a taller
   phone screen, using a blurred copy of that same picture so the empty area
   is the scene's own colour rather than a flat void. Decoration only: it is
   aria-hidden, it is never a target, and the real artwork always sits on top
   of it at full sharpness. */
#app .adv2-scene-blur{
  position:absolute;
  inset:-8%;
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
  filter:blur(26px) saturate(1.15) brightness(.62);
  -webkit-filter:blur(26px) saturate(1.15) brightness(.62);
}
/* The window the picture is shown through. Two fills: the whole artwork,
   contained; or one framed region of it, for the one source that is a full
   book spread rather than a single scene. */
#app .adv2-scene-crop{
  position:absolute;
  inset:0;
  overflow:hidden;
}
#app .adv2-scene-crop.is-full img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:contain;         /* the whole picture, never stretched */
}
#app .adv2-scene-crop.is-crop{
  inset:auto;
  left:0;
  right:0;
  top:0;
  bottom:0;
}
#app .adv2-scene-crop.is-crop img{
  position:absolute;
  display:block;
  max-width:none;              /* the percentage geometry is the sizing method */
  object-fit:fill;             /* exact mapping: no resampling surprise */
}
#app .adv2-scene-img{
  user-select:none;
  -webkit-user-drag:none;
  /* Deliberately transparent. With object-fit:contain the element fills the
     frame while the picture sits inside it, so an opaque background here would
     paint over the blurred backdrop and turn the letterbox bands back into the
     flat bars that backdrop exists to avoid. */
  background:transparent
}
/* Warm, gentle, and never a flat grey box: the top stays bright for the sky
   and the bottom deepens so white controls and captions stay readable. */
#app .adv2-scene-veil{
  transition:opacity .62s ease;
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg,rgba(10,40,18,.30) 0%,rgba(8,32,15,.10) 26%,rgba(8,30,14,.34) 62%,rgba(6,24,12,.62) 100%);
}

/* ---------- the story caption ----------
   A caption, never a substitute voice. The approved MP3 is always the primary
   path; this text is what the child reads while the recording plays, and what
   they read instead if audio is unavailable. */
#app .adv2-caption{
  position:absolute;
  z-index:2;
  left:50%;
  bottom:calc(9% + env(safe-area-inset-bottom));
  width:min(92%,520px);
  transform:translateX(-50%);
  padding:10px 16px;
  border-radius:18px;
  border:2px solid rgba(255,255,255,.55);
  background:rgba(12,44,22,.62);
  -webkit-backdrop-filter:blur(6px);
  backdrop-filter:blur(6px);
  color:#fff;
  font-size:clamp(15px,4.2vw,19px);
  font-weight:1000;
  line-height:1.5;
  text-align:center;
  text-shadow:0 1px 3px rgba(0,0,0,.5);
  opacity:0;
  transition:opacity .22s ease;
  pointer-events:none;
}
#app .adv2-caption.is-on{opacity:1}

/* ---------- top bar: back + the bridge tracker ---------- */
#app .adv2-top{
  position:relative;
  z-index:5;
  display:flex;
  align-items:center;
  gap:8px;
  padding:calc(8px + env(safe-area-inset-top)) 10px 8px;
  background:linear-gradient(180deg,rgba(6,26,12,.62),rgba(6,26,12,0));
}
#app .adv2-back{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border:2px solid rgba(255,255,255,.7);
  border-radius:50%;
  background:linear-gradient(180deg,#a9743c,#8a5a2b);
  color:#fff8e8;
  font-size:22px;
  line-height:1;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  box-shadow:0 3px 0 #5f3c19,0 6px 12px rgba(0,0,0,.32);
}
#app .adv2-back:active{transform:translateY(2px);box-shadow:0 1px 0 #5f3c19}

/* ---------- THE BRIDGE TRACKER ----------
   Four planks that fill left to right, plus an n/4 readout. Built as a general
   0-4 progress display, so milestone 2/4 and 3/4 need no new CSS and no new
   markup - only a bigger value. */
#app .adv2-bridge{
  flex:1 1 auto;
  min-width:0;
  display:flex;
  align-items:center;
  gap:8px;
  padding:5px 10px;
  border:2px solid rgba(255,255,255,.7);
  border-radius:999px;
  background:rgba(10,40,20,.52);
  -webkit-backdrop-filter:blur(6px);
  backdrop-filter:blur(6px);
}
#app .adv2-planks{
  flex:1 1 auto;
  min-width:0;
  display:flex;
  gap:4px;
  /* Explicitly LTR, even though the screen is Arabic. The bridge is a physical
     thing being rebuilt along its length, and the plank numbered 1 must be the
     one on the LEFT - so the child can see the first segment of the bridge
     appear at its start. Left to the natural RTL order, plank 1 would sit on
     the right and the repair would look like it happened at the far end. */
  direction:ltr;
}
#app .adv2-plank{
  position:relative;
  flex:1 1 0;
  height:12px;
  border-radius:4px;
  background:rgba(255,255,255,.24);
  box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.34);
  overflow:hidden;
}
#app .adv2-plank-fill{
  position:absolute;
  inset:0;
  display:block;
  border-radius:inherit;
  background:linear-gradient(180deg,#8ef0c4,#3fae74);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.5);
  transform:scaleX(0);
  transform-origin:left center;       /* a plank is laid down from the left */
  transition:transform .5s cubic-bezier(.2,.9,.3,1);
}
#app .adv2-plank.is-done .adv2-plank-fill{transform:scaleX(1)}
/* The plank that was JUST completed gets a short, one-off build shimmer, so
   the celebration always points at real new progress. */
#app .adv2-plank.is-newest .adv2-plank-fill{
  background:linear-gradient(180deg,#d8ffe9,#4cc98a);
  animation:adv2plank .7s ease-out 1;
}
@keyframes adv2plank{
  0%{filter:brightness(1.9)}
  60%{filter:brightness(1.25)}
  100%{filter:brightness(1)}
}
#app .adv2-bridge-count{
  flex:0 0 auto;
  color:#eaffd8;
  font-size:clamp(12px,3.4vw,15px);
  font-weight:1000;
  line-height:1;
  letter-spacing:.02em;
  white-space:nowrap;
}

/* ---------- the stage: the one scroll container ---------- */
#app .adv2-stage{
  position:relative;
  z-index:4;
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  /* Reserve the scrollbar's width ALWAYS. Without this the stage's content box
     narrows the moment the content outgrows the viewport, the panel narrows
     with it, and every card inside changes box - measured as 166x158 becoming
     143x136 mid-activity. That is invisible to a child but it destroys the one
     thing a memory game relies on: that a position means something. */
  scrollbar-gutter:stable;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-y:contain;
  touch-action:pan-y;
  padding:0 10px calc(14px + env(safe-area-inset-bottom));
  display:flex;
  flex-direction:column;
  align-items:center;
}
/* On the story screen the stage is a pass-through: the scene behind it is the
   whole interaction, and the hint must not eat the tap. */
/* On the story screen the stage is a pass-through: the picture speaks for itself
   and the only thing on it is the dim skip control. */
#app .adv2-stage.is-story{pointer-events:none;overflow:hidden;padding:0}
#app .adv2-stage.is-story .adv2-skip{pointer-events:auto}

#app .adv2-panel{
  width:100%;
  max-width:440px;
  margin-top:6px;
  padding:12px 12px 14px;
  border:2px solid rgba(255,255,255,.7);
  border-radius:22px;
  background:linear-gradient(180deg,rgba(255,252,240,.96),rgba(250,242,222,.94));
  -webkit-backdrop-filter:blur(4px);
  backdrop-filter:blur(4px);
  color:#33240f;
  box-shadow:0 6px 0 rgba(120,88,30,.32),0 12px 24px rgba(0,0,0,.34);
}

#app .adv2-title{
  margin:0 0 2px;
  color:#2f4a1c;
  font-size:clamp(16px,4.6vw,20px);
  font-weight:1000;
  line-height:1.35;
  text-align:center;
}
#app .adv2-sub{
  margin:0 0 8px;
  color:#6b7a45;
  font-size:clamp(11px,3.1vw,13px);
  font-weight:1000;
  line-height:1.4;
  text-align:center;
}
#app .adv2-step{
  margin:0 0 6px;
  color:#8a6a2c;
  font-size:clamp(11px,3vw,13px);
  font-weight:1000;
  text-align:center;
}

/* ---------- the skip control ----------
   Deliberately DIM, small, and late. It fades in a beat after the story beat
   starts so it never presents itself as the thing the child is meant to press.
   The story advances perfectly well if this is never touched, and pressing it
   many times still advances exactly one beat, because it shares the same
   guarded advance path. */
#app .adv2-skip{
  position:absolute;
  z-index:6;
  inset-inline-end:14px;
  bottom:calc(16px + env(safe-area-inset-bottom));
  min-height:34px;
  padding:6px 14px;
  border:1.5px solid rgba(255,255,255,.42);
  border-radius:999px;
  background:rgba(10,38,18,.42);
  -webkit-backdrop-filter:blur(4px);
  backdrop-filter:blur(4px);
  color:rgba(255,255,255,.88);
  font-size:clamp(10px,2.8vw,12px);
  font-weight:1000;
  line-height:1;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  opacity:0;
  pointer-events:none;
  transition:opacity .35s ease;
}
#app .adv2-skip.is-on{opacity:1;pointer-events:auto}

/* ---------- the spoken hand-off (c2_sound_intro) ----------
   A calm, non-interactive screen. The four friends are plain elements, not
   buttons, so there is genuinely nothing to answer while the task is being
   explained. */
#app .adv2-sintro-faces{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin:4px 0 2px;
  padding:6px 6px;
  border-radius:16px;
  background:rgba(255,255,255,.55);
}
#app .adv2-sintro-face{
  display:block;
  width:clamp(44px,14vw,58px);
  aspect-ratio:1/1;
}
#app .adv2-sintro-face img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  filter:drop-shadow(0 2px 3px rgba(74,48,16,.26));
}
#app .adv2-sintro-status{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:20px;
  margin:4px 0 6px;
  color:#8a6a2c;
  font-size:clamp(12px,3.3vw,14px);
  font-weight:1000;
  line-height:1.4;
  text-align:center;
  transition:color .3s ease;
}
#app .adv2-sintro-status.is-ready{color:#1d7a45}
/* A listening cue, not dialogue. It fills what would otherwise be a blank
   waiting line, and says "a voice is talking, wait" without inventing any
   words to match audio that has not been transcribed. */
#app .adv2-dots{
  display:inline-flex;
  align-items:center;
  gap:5px;
  height:18px;
}
#app .adv2-dots i{
  display:block;
  width:8px;
  height:8px;
  border-radius:50%;
  background:#c69a3e;
  animation:adv2dot 1.05s ease-in-out infinite;
}
#app .adv2-dots i:nth-child(2){animation-delay:.16s}
#app .adv2-dots i:nth-child(3){animation-delay:.32s}
@keyframes adv2dot{
  0%,100%{opacity:.28;transform:translateY(0)}
  45%{opacity:1;transform:translateY(-3px)}
}
/* ---------- the continuation CTA, deliberately NOT an animal ----------
   Phone review flagged the button being read as a fifth choice, because it
   used to sit immediately under the card grid with the same weight as a card.
   Three things separate it now:
     1. it lives in its own row with real space above it, not inside the grid;
     2. it is full width and visually a BUTTON, with a bottom edge to press
        down on, which a picture card has no reason to have;
     3. it only appears once the completion praise has finished, so it never
        arrives while the child is still listening to the fourth animal.
   The spacing is the load-bearing part: at 360x640 the grid is tight, and a
   button that shares a margin with a card is a mis-tap waiting to happen. */
#app .adv2-cta-row{
  margin-top:14px;
  padding-top:12px;
  border-top:2px dashed rgba(120,150,90,.42);
}
#app .adv2-cta-row .adv2-cta{
  min-height:56px;              /* comfortably above a child's smallest tap */
  font-size:clamp(15px,4.3vw,18px);
  border-radius:18px;
  box-shadow:0 6px 0 #23794c,0 10px 18px rgba(0,0,0,.3);
}
#app .adv2-cta-row .adv2-cta:active{
  transform:translateY(3px);
  box-shadow:0 3px 0 #23794c;
}

/* Discovery, the moment all four have been heard: the set is visibly closed
   before the child is congratulated for it. */
#app .adv2-discover.is-complete .adv2-dgrid{
  box-shadow:inset 0 0 0 2px rgba(95,217,127,.45);
  border-radius:16px;
  transition:box-shadow .3s ease;
}
#app .adv2-discover.is-ready .adv2-dcard{
  opacity:.94;
}

/* While a spoken line owns the speakers, the animal-sound replay says so
   rather than simply going dead. */
#app .adv2-replay.is-locked{
  opacity:.5;
  cursor:default;
}
#app .adv2-replay:disabled{
  opacity:.5;
  cursor:default;
}

/* ---------- MEET OUR FRIENDS ---------- */
#app .adv2-dgrid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:9px;
  margin:2px 0 8px;
}
#app .adv2-dcard{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:1px;
  padding:8px 6px 9px;
  border:2.5px solid rgba(255,255,255,.95);
  border-radius:18px;
  background:linear-gradient(180deg,#fffdf4,#f6ecd6);
  box-shadow:0 4px 0 #c9a45a,0 7px 13px rgba(60,40,10,.22);
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  transition:transform .1s ease,box-shadow .1s ease;
}
#app .adv2-dcard:active{transform:translateY(3px);box-shadow:0 1px 0 #c9a45a}
#app .adv2-dcard-art{
  display:block;
  width:100%;
  max-width:104px;
  aspect-ratio:1/1;
}
#app .adv2-dcard-art img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;         /* transparent 3D art, never cropped or squashed */
  filter:drop-shadow(0 2px 3px rgba(74,48,16,.28));
}
#app .adv2-dcard-en{
  color:#33240f;
  font-size:clamp(14px,4vw,17px);
  font-weight:1000;
  line-height:1.15;
  letter-spacing:.03em;
}
#app .adv2-dcard-ar{
  color:#7a5320;
  font-size:clamp(11px,3.1vw,13px);
  font-weight:1000;
  line-height:1.3;
}
/* Heard. A small positive confirmation, and a replay is still allowed - the
   card never locks, never greys out and is never marked wrong. */
#app .adv2-dcard.is-heard{
  border-color:#7ee2ac;
  box-shadow:0 4px 0 #3fae74,0 0 0 3px rgba(126,226,172,.42),0 7px 13px rgba(60,40,10,.22);
}
#app .adv2-dcard-tick{
  position:absolute;
  top:5px;
  inset-inline-end:5px;
  display:none;
  align-items:center;
  justify-content:center;
  width:22px;
  height:22px;
  border-radius:50%;
  background:#2fa96a;
  color:#fff;
  font-size:13px;
  font-weight:1000;
  line-height:1;
  box-shadow:0 1px 3px rgba(0,0,0,.3);
}
#app .adv2-dcard.is-heard .adv2-dcard-tick{display:flex}
#app .adv2-heardcount{
  margin:0;
  color:#7a5320;
  font-size:clamp(12px,3.3vw,14px);
  font-weight:1000;
  text-align:center;
  line-height:1.3;
}
#app .adv2-progress-note{
  margin:2px 0 8px;
  color:#6b7a45;
  font-size:clamp(11px,3vw,12.5px);
  font-weight:1000;
  text-align:center;
  line-height:1.4;
}

/* ---------- the primary action ---------- */
#app .adv2-cta{
  display:block;
  width:100%;
  min-height:50px;
  padding:12px 16px;
  border:2.5px solid rgba(255,255,255,.9);
  border-radius:16px;
  background:linear-gradient(180deg,#8ef0a8,#3fb56f);
  color:#08301c;
  font-size:clamp(14px,4vw,17px);
  font-weight:1000;
  line-height:1.2;
  text-align:center;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  box-shadow:0 5px 0 #23794c,0 9px 16px rgba(0,0,0,.3);
}
#app .adv2-cta[hidden]{display:none}
#app .adv2-cta:active{transform:translateY(3px);box-shadow:0 2px 0 #23794c}
#app .adv2-cta-ghost{
  background:linear-gradient(180deg,#fff6d8,#ffe9a8);
  color:#4a3210;
  box-shadow:0 5px 0 #b98a24,0 9px 16px rgba(0,0,0,.3);
}

/* ---------- WHO MADE THAT SOUND? ---------- */
#app .adv2-soundbox{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin:2px 0 10px;
  padding:10px;
  border-radius:18px;
  background:linear-gradient(180deg,#2b5f3f,#1d452c);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 4px 10px rgba(0,0,0,.24);
}
#app .adv2-replay{
  display:flex;
  align-items:center;
  gap:6px;
  min-height:48px;
  padding:8px 16px;
  border:2.5px solid rgba(255,255,255,.92);
  border-radius:999px;
  background:linear-gradient(180deg,#fff6d8,#ffd97a);
  color:#4a3210;
  font-size:clamp(13px,3.7vw,16px);
  font-weight:1000;
  line-height:1;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  box-shadow:0 4px 0 #b98a24,0 7px 14px rgba(0,0,0,.3);
}
#app .adv2-replay:active{transform:translateY(3px);box-shadow:0 1px 0 #b98a24}
#app .adv2-replay-ico{font-size:1.15em;line-height:1}
/* A small moving "it is playing" cue. Purely decorative - the child can always
   press the button again, whether or not this is animating. */
#app .adv2-wave{
  display:flex;
  align-items:flex-end;
  gap:3px;
  height:26px;
}
#app .adv2-wave i{
  display:block;
  width:4px;
  height:8px;
  border-radius:2px;
  background:rgba(255,255,255,.75);
}
#app .adv2-wave.is-on i{animation:adv2wave .7s ease-in-out infinite}
#app .adv2-wave.is-on i:nth-child(1){animation-delay:0s}
#app .adv2-wave.is-on i:nth-child(2){animation-delay:.1s}
#app .adv2-wave.is-on i:nth-child(3){animation-delay:.2s}
#app .adv2-wave.is-on i:nth-child(4){animation-delay:.3s}
#app .adv2-wave.is-on i:nth-child(5){animation-delay:.4s}
@keyframes adv2wave{
  0%,100%{height:7px}
  50%{height:24px}
}

/* Four picture choices. NO TEXT: this activity is sound recognition, and a
   printed word next to the picture would let the child answer by reading. */
#app .adv2-sgrid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:9px;
}
#app .adv2-schoice{
  position:relative;
  display:block;
  padding:8px 6px;
  border:2.5px solid rgba(255,255,255,.95);
  border-radius:18px;
  background:linear-gradient(180deg,#fffdf4,#f4ead4);
  box-shadow:0 4px 0 #c9a45a,0 7px 13px rgba(60,40,10,.22);
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  transition:transform .1s ease,box-shadow .1s ease;
}
#app .adv2-schoice-art{
  display:block;
  width:100%;
  max-width:112px;
  margin:0 auto;
  aspect-ratio:1/1;
}
#app .adv2-schoice-art img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  filter:drop-shadow(0 2px 3px rgba(74,48,16,.28));
}
#app .adv2-schoice:active{transform:translateY(3px);box-shadow:0 1px 0 #c9a45a}
#app .adv2-schoice.is-right{
  border-color:#5fd97f;
  background:linear-gradient(180deg,#eafff0,#d6f7e2);
  box-shadow:0 4px 0 #2b7c3e,0 0 0 4px rgba(95,217,127,.5),0 7px 13px rgba(60,40,10,.22);
  animation:adv2pop .4s ease-out 1;
}
@keyframes adv2pop{
  0%{transform:scale(1)}
  45%{transform:scale(1.06)}
  100%{transform:scale(1)}
}
/* Wrong is gentle: a short wobble and a return to normal. No red, no cross, no
   reveal, and the card goes straight back to being tappable. */
#app .adv2-schoice.is-wrong{animation:adv2shake .34s ease-in-out 1}
@keyframes adv2shake{
  0%,100%{transform:translateX(0)}
  25%{transform:translateX(-5px)}
  75%{transform:translateX(5px)}
}
#app .adv2-panel.shake{animation:adv2shake .34s ease-in-out 1}

#app .adv2-feedback{
  min-height:0;
  margin:8px 0 0;
  font-size:clamp(12px,3.4vw,15px);
  font-weight:1000;
  line-height:1.4;
  text-align:center;
}
/* Reserve room only once there is something to say, so an unanswered question
   does not sit above a band of dead space at the bottom of the card. */
#app .adv2-feedback:not(:empty){min-height:22px}
#app .adv2-feedback.is-good{color:#1d7a45}
#app .adv2-feedback.is-soft{color:#a06a1e}

/* ---------- MILESTONE 1/4 ---------- */
#app .adv2-milestone{position:relative;overflow:hidden}
#app .adv2-milestone-count{
  margin:2px 0 4px;
  color:#2f7a4c;
  font-size:clamp(30px,10vw,44px);
  font-weight:1000;
  line-height:1.05;
  text-align:center;
  letter-spacing:.01em;
  text-shadow:0 2px 0 rgba(255,255,255,.7);
}
#app .adv2-donelist{
  display:flex;
  justify-content:center;
  gap:8px;
  margin:6px 0 2px;
  padding:0;
  list-style:none;
}
#app .adv2-donelist li{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:1px;
  padding:4px 7px;
  border-radius:12px;
  background:rgba(255,255,255,.6);
  box-shadow:inset 0 0 0 1.5px rgba(95,217,127,.4);
}
#app .adv2-donelist img{
  display:block;
  width:clamp(30px,9vw,40px);
  height:clamp(30px,9vw,40px);
  object-fit:contain;
}
#app .adv2-donelist span{
  color:#2f4a1c;
  font-size:clamp(10px,2.8vw,12px);
  font-weight:1000;
  line-height:1.2;
}
/* A short, one-off sparkle burst behind the milestone card. */
#app .adv2-sparkles{
  position:absolute;
  inset:0;
  pointer-events:none;
  overflow:hidden;
}
#app .adv2-sparkles i{
  position:absolute;
  width:7px;
  height:7px;
  border-radius:50%;
  background:#ffe9a8;
  opacity:0;
  animation:adv2spark 1.1s ease-out 1;
}
@keyframes adv2spark{
  0%{opacity:0;transform:translateY(6px)}
  25%{opacity:1}
  100%{opacity:0;transform:translateY(-42px)}
}
#app .adv2-milestone-foot{margin-top:8px;text-align:center}
#app .adv2-continuation{
  margin:0 0 8px;
  color:#6b7a45;
  font-size:clamp(11px,3.1vw,13px);
  font-weight:1000;
  line-height:1.4;
}

/* ---------- ANIMAL MEMORY ---------- */
/* The panel becomes a column so the board can claim the leftover height
   instead of the page growing and the stage scrolling. */
#app .adv2-memory{
  display:flex;
  flex-direction:column;
  /* As a COLUMN FLEX ITEM of .adv2-stage this is what gives the board a height
     to divide. Without it the panel is content-sized, `flex:1 1 auto` on the
     board resolves against zero leftover, and all four card rows collapse to
     0px - which is exactly what happened. */
  flex:1 1 auto;
  min-height:0;
  box-sizing:border-box;
  /* `align-items:center` on the stage would otherwise let a flex item shrink
     below its content in the cross axis; stretch keeps the cards full width. */
  align-self:stretch;
}
#app .adv2-memcount{
  margin:0 0 6px;
  /* The one place a "/ 4" appears without saying WHAT it counts. The bridge
     tracker at the top is a separate, separately labelled bar; two bare
     "/ 4" readouts on one screen would be genuinely ambiguous. */
}
#app .adv2-mboard{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  /* 1fr rows, not auto: the board divides whatever height it is given evenly,
     which is what lets ONE layout fit both 390x844 and 360x640 with no scroll
     and no dead gap. The floor below is a safety net, not the normal path. */
  grid-template-rows:repeat(4,minmax(64px,1fr));
  gap:10px;
  flex:1 1 auto;
  min-height:0;
}

/* The card itself is a 3D flip. Two faces, back-to-back, and the rotation is
   the ONLY motion that carries meaning here, so it is the one animation that
   is never cut for speed. */
#app .adv2-mcard{
  position:relative;
  display:block;
  min-width:0;
  min-height:0;
  padding:0;
  border:0;
  background:none;
  perspective:700px;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
}
#app .adv2-mcard-inner{
  position:relative;
  display:block;
  width:100%;
  height:100%;
  transform-style:preserve-3d;
  transition:transform .42s cubic-bezier(.32,.72,.35,1);
}
#app .adv2-mcard.is-open .adv2-mcard-inner{transform:rotateY(180deg)}
#app .adv2-mcard-face{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:16px;
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
  overflow:hidden;
}

/* FACE DOWN: a warm star, deliberately not a question mark and not a lock.
   It reads as "something is hidden here", which is the invitation the game
   needs, and it is not a control, so it never looks tappable on its own. */
#app .adv2-mcard-down{
  background:linear-gradient(160deg,#8fd7ff,#4a9ede 62%,#2f7bbd);
  border:2.5px solid rgba(255,255,255,.95);
  box-shadow:0 4px 0 #1f5e92,0 7px 13px rgba(10,40,70,.26);
  color:#fff;
  font-size:clamp(26px,8.4vw,38px);
  line-height:1;
}
#app .adv2-mcard-down::after{
  content:"";
  position:absolute;
  inset:5px;
  border:2px dashed rgba(255,255,255,.45);
  border-radius:11px;
}
#app .adv2-mcard:active .adv2-mcard-down{transform:translateY(3px)}
#app .adv2-mcard-down{transition:transform .1s ease,box-shadow .1s ease}
#app .adv2-mcard:active .adv2-mcard-down{box-shadow:0 1px 0 #1f5e92}

/* FACE UP: the animal, contained and centred, on a light board so the art
   keeps its own colours. Nothing is printed on it. */
#app .adv2-mcard-up{
  transform:rotateY(180deg);
  background:linear-gradient(180deg,#fffdf4,#f6ecd6);
  border:2.5px solid rgba(255,255,255,.95);
  box-shadow:0 4px 0 #c9a45a,0 7px 13px rgba(60,40,10,.24);
}
#app .adv2-mcard-up img{
  display:block;
  width:100%;
  height:100%;
  padding:7%;
  box-sizing:border-box;
  object-fit:contain;
  /* No transform:scale() anywhere - it softens the artwork and reads as a
     rendering bug on a high-DPI phone. */
}

/* MATCHED: permanently face-up, with a green rim so the child can see at a
   glance which pairs are already banked and never re-taps one. */
#app .adv2-mcard.is-matched{
  cursor:default;
  pointer-events:none;
}
#app .adv2-mcard.is-matched .adv2-mcard-up{
  border-color:rgba(120,230,150,.98);
  box-shadow:0 0 0 3px rgba(95,217,127,.55),0 4px 0 #2f9c5c,0 8px 16px rgba(20,80,45,.28);
}

/* NOT A MATCH. Deliberately soft: a cool, low-contrast outline and NOTHING
   else. No red, no shake, no cross. Turning over two cards that do not go
   together is the mechanic of the game, not a mistake, and the visual has to
   agree with that or the child learns to play afraid of the board. */
/* Neutral, soft, and FULLY OPAQUE. Reducing opacity here would make the two
   pictures harder to compare and would read as punishment; the outline alone
   carries the signal. */
#app .adv2-mcard.is-miss .adv2-mcard-up{
  border-color:rgba(150,160,190,.9);
  box-shadow:0 0 0 2px rgba(140,150,185,.35),0 3px 0 #8b93ad;
  opacity:1;
}
/* The reward pulse lives on the OUTER CARD, which has no competing transform.
   Putting it on the flipping inner element is what produced the flicker. */
#app .adv2-mcard.is-popping{
  animation:adv2-mem-pop .46s cubic-bezier(.3,.9,.4,1);
  will-change:transform;
}
@keyframes adv2-mem-pop{
  0%{transform:scale(1)}
  36%{transform:scale(1.07)}
  100%{transform:scale(1)}
}

/* MATCHED, then GONE.
   The slot is never released. The card keeps its grid area, its size and its
   place in the DOM; `visibility` is switched only AFTER the fade has finished,
   which is why the transition delay on visibility matters - setting it at the
   same instant as opacity:0 would make the card vanish before it faded, which is
   the blink this whole change exists to remove.
   `display:none` is deliberately NOT used anywhere here: it would drop the grid
   item and the six remaining cards would slide into the freed space, destroying
   the one thing a memory game depends on. */
#app .adv2-mcard.is-matched{
  pointer-events:none;
}
#app .adv2-mcard{
  transition:opacity .52s ease,transform .52s ease,visibility 0s linear .52s;
}
#app .adv2-mcard.is-gone{
  opacity:0;
  transform:scale(.86);
  visibility:hidden;
  pointer-events:none;
  /* animation wins over transition on the same property, so the pulse is
     cancelled here or the pair would keep bobbing while fading out */
  animation:none;
}

/* LOCKED - during the spoken introduction, during a comparison, and after
   the final match. The dimming is on the BOARD, not the cards, so the eight
   pictures stay fully legible throughout: a locked card should still look
   like a card, not a grey rectangle. */
#app .adv2-mboard.is-locked{
  cursor:default;
}
#app .adv2-mboard.is-locked .adv2-mcard-down{
  filter:saturate(.72) brightness(.86);
}
#app .adv2-mcard:disabled{cursor:default;pointer-events:none}
/* Completed board: every slot is empty but every slot is still there, so the
   geometry the child learned is unchanged while the completion line plays. */
#app .adv2-mboard.is-complete .adv2-mcard-up{
  border-color:rgba(150,230,170,.9);
}
#app .adv2-mboard.is-complete{
  opacity:.92;
}

/* The listening line under the board. Present only while the introduction is
   speaking, then removed outright so it cannot be left behind as a stray
   sentence under a finished board. */
/* The listening line keeps its height forever once it has been rendered, because
   it is EMPTIED rather than removed when the narration ends. Removing it would
   hand its height back to the flex board, grow every row and move every card -
   or, on Missing Letter, shift the letter buttons under the child's finger. */
#app .adv2-memstatus{
  margin:6px 0 0;
  /* FIXED, not min-height: this element is emptied rather than removed when the
     narration ends, and a min-height would let it shrink by a fraction of a
     pixel and hand that back to the flex board. */
  height:18px;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* ---------- milestone 2/4 and the QA review stop ---------- */
#app .adv2-milestone-pairs{
  margin:2px 0 2px;
  color:#2f6b3d;
  font-size:clamp(30px,10vw,44px);
  font-weight:1000;
  line-height:1.1;
  text-align:center;
}
/* Deliberately unlike the rest of the game. This is a review stop, and it
   should look like one - nobody should mistake it for designed gameplay,
   because the next milestones do not exist yet. */
#app .adv2-qastop{
  margin:10px 0 4px;
  padding:9px 10px;
  border:2px dashed #b4762a;
  border-radius:12px;
  background:rgba(255,244,222,.9);
  color:#7a4f14;
  font-size:clamp(10px,2.9vw,12px);
  font-weight:1000;
  line-height:1.55;
  text-align:center;
}
#app .adv2-handoff-status{
  margin:0;
  min-height:20px;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* ---------- MISSING LETTER ---------- */
/* Chapter 1's structure, reproduced: a slot per character in DOM order, LTR,
   with only the blank slot marked. The `dir="ltr"` on the board is not optional -
   the surrounding document is RTL, and without it the word reads backwards. */
#app .adv2-missing{
  display:flex;
  flex-direction:column;
  align-items:center;
}
#app .adv2-wordboard{
  display:flex;
  flex-direction:row;
  gap:7px;
  margin:2px 0 10px;
  /* centred, and never allowed to wrap: a wrapped word board would silently
     change which letter sits in which slot */
  flex-wrap:nowrap;
  justify-content:center;
}
#app .adv2-wslot{
  display:flex;
  align-items:center;
  justify-content:center;
  width:clamp(38px,12vw,54px);
  height:clamp(46px,14vw,62px);
  border:2.5px solid rgba(255,255,255,.95);
  border-radius:12px;
  background:linear-gradient(180deg,#fffdf4,#f2e6cd);
  box-shadow:0 3px 0 #c9a45a,0 5px 10px rgba(60,40,10,.2);
  color:#33240f;
  font-family:inherit;
  font-size:clamp(20px,6.6vw,28px);
  font-weight:1000;
  line-height:1;
}
/* The blank is the only marked slot, which is what makes the missing position
   obvious at a glance - Chapter 1 does exactly this. */
#app .adv2-wslot.is-blank{
  background:linear-gradient(180deg,#e9f4ff,#cfe6fb);
  border-style:dashed;
  border-color:rgba(90,140,190,.95);
  color:#2b6ca8;
  box-shadow:0 3px 0 #6d9cc4,inset 0 0 0 2px rgba(255,255,255,.7);
}
/* The placeholder underscore. A PSEUDO-ELEMENT, never a text node: the letter
   this slot is waiting for must not exist anywhere in the DOM before the child
   chooses it - not as visible text, not as low-opacity text, and not as
   something a screen reader will read out. */
#app .adv2-wslot.is-blank::after{
  content:"";
  display:block;
  width:56%;
  height:4px;
  border-radius:2px;
  background:rgba(43,108,168,.85);
}
/* The slot keeps its box at all times: `width`/`height` are explicit, and an
   empty flex child with no content would otherwise collapse. */
#app .adv2-wslot.is-blank{
  min-width:clamp(38px,12vw,54px);
  min-height:clamp(46px,14vw,62px);
}
#app .adv2-wslot.is-filled-ok{
  background:linear-gradient(180deg,#bdf3cf,#8fe0ad);
  border-style:solid;
  border-color:rgba(120,230,150,.98);
  color:#08301c;
  box-shadow:0 3px 0 #2f9c5c,0 0 0 3px rgba(95,217,127,.45);
}

/* The animal sits ABOVE the letters, not below: a child who knows the animal
   should be able to finish the word without reading the choices at all. */
#app .adv2-missing-art{
  width:clamp(96px,30vw,132px);
  aspect-ratio:1/1;
  margin:0 0 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:2.5px solid rgba(255,255,255,.95);
  border-radius:18px;
  background:linear-gradient(180deg,#fffdf4,#f6ecd6);
  box-shadow:0 4px 0 #c9a45a,0 7px 13px rgba(60,40,10,.2);
}
#app .adv2-missing-art img{
  width:100%;
  height:100%;
  padding:6%;
  box-sizing:border-box;
  object-fit:contain;
}

/* THE LETTER ROW. Large targets, and it wraps rather than overflowing, so at
   360x640 five letters still fit with real gaps between them. */
#app .adv2-letters{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:10px;
  width:100%;
  margin-top:2px;
}
#app .adv2-letterbtn{
  /* Share the row: flex between a comfortable floor and a ceiling, so the row is
     always one clean line and never re-flows into 4 + 1 on a wider phone. */
  flex:1 1 auto;
  min-width:46px;
  max-width:64px;
  height:clamp(52px,16vw,66px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  border:2.5px solid rgba(255,255,255,.9);
  border-radius:16px;
  background:linear-gradient(180deg,#8ef0a8,#3fb56f);
  box-shadow:0 5px 0 #23794c,0 8px 14px rgba(0,0,0,.26);
  color:#08301c;
  font-size:clamp(20px,6.4vw,26px);
  font-weight:1000;
  line-height:1;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  transition:transform .1s ease,box-shadow .1s ease;
}
#app .adv2-letterbtn:active:not(:disabled){
  transform:translateY(3px);
  box-shadow:0 2px 0 #23794c;
}
#app .adv2-letterbtn.is-correct{
  background:linear-gradient(180deg,#c9ffd8,#57d98a);
  box-shadow:0 0 0 3px rgba(95,217,127,.7),0 5px 0 #23794c;
}
/* A wrong letter is marked SOFTLY. It is never written into the word, and the
   only thing that changes is this button, so the retry target is obvious. */
#app .adv2-letterbtn.is-wrong{
  background:linear-gradient(180deg,#ffe6c9,#f3c48f);
  box-shadow:0 5px 0 #b8763a;
  opacity:.85;
}
#app .adv2-letterbtn:disabled{cursor:default}
#app .adv2-letterbtn:disabled.is-wrong{opacity:.85}

/* The completed board: still the child's work, just frozen. */
#app .adv2-missing.is-complete .adv2-letters{opacity:.75}
#app .adv2-missing.is-complete .adv2-missing-art{
  border-color:rgba(120,230,150,.98);
  box-shadow:0 0 0 3px rgba(95,217,127,.4),0 4px 0 #2f9c5c;
}

#app .adv2-who{
  display:flex;
  flex-direction:column;
  align-items:center;
  flex:1 1 auto;
  min-height:0;
  box-sizing:border-box;
}
/* WHO IS MISSING? (activity four)
   *
   * THE CROSS-FADE DURATION LIVES HERE, not in a JS constant, because it is a
   * CSS transition rather than a timer. Both rows sit in the same flex column and
   * swapping the study row for the question row must not change layout - so the
   * change has to be animated by the stylesheet. .38s is long enough to read as a
   * change of scene rather than a blink, and short enough not to stall the round.
   *
   * `visibility` rather than `display` on the slots, and the delay on the
   * visibility change, are what stop a slot from appearing and disappearing inside
   * a single paint. They also mean no image is ever re-requested, because no
   * element is created, destroyed or re-`src`'d between rounds.
   *
   * Do NOT reintroduce a JS constant for this duration: nothing in the controller
   * reads one, so it would look authoritative and change nothing.
   * ------------------------------------------------------------------------- */
#app .adv2-who-row{
  display:flex;
  flex-wrap:nowrap;
  justify-content:center;
  align-items:center;
  gap:clamp(8px,2.6vw,12px);
  width:100%;
  /* Both rows occupy the SAME height whether or not they are on screen, so the
     question row cannot push the answer choices down when it appears. */
  min-height:clamp(92px,26vw,124px);
  transition:opacity .38s ease;
}
/* `visibility` rather than `display`: the slot keeps its box, so nothing
   reflows and no image is ever re-requested. */
#app .adv2-who-slot{
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  width:clamp(56px,19vw,86px);
  height:clamp(56px,19vw,86px);
  border:2.5px solid rgba(255,255,255,.95);
  border-radius:16px;
  background:linear-gradient(180deg,#fffdf4,#f2e6cd);
  box-shadow:0 3px 0 #c9a45a,0 5px 10px rgba(60,40,10,.2);
  visibility:hidden;
  opacity:0;
  transition:opacity .38s ease,visibility 0s linear .38s;
}
#app .adv2-who-slot.is-on{
  visibility:visible;
  opacity:1;
  transition:opacity .38s ease,visibility 0s;
}
#app .adv2-who-slot img{
  width:100%;
  height:100%;
  padding:7%;
  box-sizing:border-box;
  object-fit:contain;
}
#app .adv2-who-prompt{
  margin:8px 0 2px;
  color:#2f4a1c;
  font-size:clamp(15px,4.4vw,19px);
  font-weight:1000;
  text-align:center;
}
#app .adv2-who-choices{
  display:flex;
  flex-wrap:nowrap;
  justify-content:center;
  gap:clamp(8px,2.6vw,12px);
  width:100%;
  margin-top:6px;
}
#app .adv2-who-choice{
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  width:clamp(56px,19vw,80px);
  height:clamp(56px,19vw,80px);
  padding:0;
  border:2.5px solid rgba(255,255,255,.9);
  border-radius:16px;
  background:linear-gradient(180deg,#8ef0a8,#3fb56f);
  box-shadow:0 5px 0 #23794c,0 8px 14px rgba(0,0,0,.26);
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  transition:transform .1s ease,box-shadow .1s ease;
}
#app .adv2-who-choice:active:not(:disabled){
  transform:translateY(3px);
  box-shadow:0 2px 0 #23794c;
}
#app .adv2-who-choice img{
  width:100%;
  height:100%;
  padding:6%;
  box-sizing:border-box;
  object-fit:contain;
}
#app .adv2-who-choice.is-right{
  background:linear-gradient(180deg,#c9ffd8,#57d98a);
  box-shadow:0 0 0 3px rgba(95,217,127,.7),0 5px 0 #23794c;
}
#app .adv2-who-choice.is-wrong{
  background:linear-gradient(180deg,#ffe6c9,#f3c48f);
  box-shadow:0 5px 0 #b8763a;
}
#app .adv2-who-choice:disabled{cursor:default}
#app .adv2-who.is-hit .adv2-who-here .adv2-who-slot.is-on{
  border-color:rgba(120,230,150,.98);
  box-shadow:0 0 0 3px rgba(95,217,127,.45),0 3px 0 #2f9c5c;
}
#app .adv2-who.is-complete .adv2-who-here,
#app .adv2-who.is-complete .adv2-who-choices{opacity:.6}

/* ---------- the completed bridge (4/4) ---------- */
#app .adv2-milestone.is-complete-bridge{
  border-color:rgba(150,235,175,.95);
  box-shadow:0 0 0 3px rgba(95,217,127,.35),0 10px 24px rgba(20,80,45,.28);
}
#app .adv2-sparkles-wide i{
  width:9px;
  height:9px;
}
#app .adv2-milestone.is-crossing{
  border-color:rgba(255,231,160,.95);
}

/* ---------- small / short phones ---------- */
@media (max-width:380px){
  #app .adv2-panel{padding:10px 10px 12px;border-radius:20px}
  #app .adv2-dcard-art{max-width:88px}
  #app .adv2-schoice-art{max-width:96px}
  #app .adv2-dgrid,#app .adv2-sgrid{gap:7px}
  #app .adv2-milestone-count{font-size:clamp(26px,9vw,36px)}
  #app .adv2-mboard{gap:8px}
  #app .adv2-mcard-face{border-radius:14px}
  #app .adv2-letters{gap:7px}
  #app .adv2-letterbtn{min-width:42px;max-width:58px}
  #app .adv2-who-row{gap:6px}
  #app .adv2-who-slot{width:clamp(46px,15.5vw,62px);height:clamp(46px,15.5vw,62px)}
  #app .adv2-who-choice{width:clamp(46px,16vw,62px);height:clamp(46px,16vw,62px)}
}
@media (max-height:700px){
  #app .adv2-caption{bottom:calc(6% + env(safe-area-inset-bottom));padding:8px 14px}
  #app .adv2-dcard{padding:6px 5px 7px}
  #app .adv2-dcard-art{max-width:76px}
  #app .adv2-schoice-art{max-width:84px}
  #app .adv2-soundbox{margin-bottom:8px;padding:8px}
  #app .adv2-milestone-count{font-size:clamp(24px,8vw,34px)}
  #app .adv2-donelist img{width:clamp(26px,7.6vw,34px);height:clamp(26px,7.6vw,34px)}
  /* On a 640-tall screen the header is what competes with the board, so it
     gives up its margins and the eight cards keep their pixels. The columns
     and rows do NOT change: a different grid shape per screen size would mean
     the layout cannot be reasoned about or tested. */
  #app .adv2-memory{padding:9px 9px 10px}
  #app .adv2-memory .adv2-title{font-size:clamp(14px,4vw,17px);margin-bottom:1px}
  #app .adv2-memcount{margin-bottom:4px;font-size:clamp(10px,2.8vw,12px)}
  #app .adv2-mboard{gap:7px}
  #app .adv2-mcard-face{border-radius:13px}
  #app .adv2-mcard-down{font-size:clamp(22px,7vw,30px)}
  #app .adv2-mcard-up img{padding:5%}
  #app .adv2-wordboard{gap:5px;margin-bottom:7px}
  #app .adv2-wslot{width:clamp(34px,11vw,44px);height:clamp(40px,13vw,50px);font-size:clamp(18px,6vw,23px)}
  #app .adv2-missing-art{width:clamp(78px,24vw,104px);margin-bottom:9px}
  #app .adv2-letters{gap:7px}
  #app .adv2-letterbtn{min-width:42px;max-width:56px;height:clamp(48px,15vw,58px)}
  #app .adv2-who-row{min-height:clamp(78px,23vw,100px);gap:7px}
  #app .adv2-who-slot{width:clamp(48px,16vw,66px);height:clamp(48px,16vw,66px);border-radius:13px}
  #app .adv2-who-choice{width:clamp(48px,16.5vw,66px);height:clamp(48px,16.5vw,66px);border-radius:13px}
  #app .adv2-who-prompt{font-size:clamp(13px,4vw,16px);margin:5px 0 1px}
  #app .adv2-who-choices{gap:7px}
}

/* ---------- reduced motion ----------
   The plank fill and the tap feedback are the only motion that carries
   meaning, so they get a short, opacity-free substitute rather than nothing. */
@media (prefers-reduced-motion:reduce){
  #app .adv2-plank-fill{transition:none;transform-origin:left center}
  #app .adv2-plank.is-done .adv2-plank-fill{transform:none}
  #app .adv2-plank.is-newest .adv2-plank-fill{animation:none}
  #app .adv2-wave.is-on i{animation:none;height:16px}
  #app .adv2-schoice.is-right{animation:none}
  #app .adv2-schoice.is-wrong{animation:none}
  #app .adv2-panel.shake{animation:none}
  #app .adv2-sparkles{display:none}
  #app .adv2-caption{transition:none}
  #app .adv2-scene-layer{transition-duration:.18s}
  #app .adv2-dots i{animation:none;opacity:.8}
  /* The rotation is removed, but the faces still swap, so open/matched is
     still readable without any motion at all. */
  #app .adv2-mcard-inner{transition:none}
  #app .adv2-mcard.is-open .adv2-mcard-inner{transform:none}
  #app .adv2-mcard.is-open .adv2-mcard-down{visibility:hidden}
  #app .adv2-mcard:not(.is-open) .adv2-mcard-up{visibility:hidden}
  #app .adv2-mcard.is-popping{animation:none}
  /* The fade is replaced by an instant disappearance, but `visibility` still
     waits for the (now zero-length) opacity transition rather than switching in
     the same frame, so the card cannot vanish before it has been accounted for. */
  #app .adv2-mcard{transition:none}
  #app .adv2-mcard.is-gone{transition:none}
  #app .adv2-letterbtn{transition:none}
  /* The row cross-fade is replaced by an instant swap, but `visibility` still
     waits for it rather than flipping in the same frame, so a slot can never
     appear and disappear in one paint. */
  #app .adv2-who-row,#app .adv2-who-slot{transition:none}
  #app .adv2-who-choice{transition:none}
  #app .adv2-scene-veil{transition:none}
  #app .adv2-skip{transition:none}
}
