/* Animated scenes of the home page sections ("Néon nuit"), one per visitor profile.
   The SVGs are inline in index.html; nothing here relies on style="" attributes (CSP style-src 'self').
   Without JavaScript, or with reduced motion, each scene shows its final, still picture. */

/* ---------- Layout: text on the left, scene on the right ---------- */

.who-anim {
  max-width: 420px;
  margin: 32px auto 0;
}

.who-anim svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(10, 20, 64, .28);
}

@media (min-width: 900px) {
  .who-inner.has-anim {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
    gap: 56px;
    align-items: center;
  }

  .who-inner.has-anim .who-anim {
    max-width: none;
    margin: 0;
  }

  /* Every other home section puts its picture on the left, so the page does not read as one repeated block. */
  .who-sec.section-alt .who-inner.has-anim {
    grid-template-columns: minmax(320px, 460px) minmax(0, 1fr);
  }

  .who-sec.section-alt .who-inner.has-anim .who-anim {
    order: -1;
  }
}

.anim text { font-family: var(--font-display); }
.anim .ink { fill: #0A1440; }
.anim .ink-soft { fill: #535C86; }
.anim .frame { fill: none; stroke: rgba(142, 162, 255, .25); stroke-width: 1.5; }
.anim .d-strike { stroke: #FF4D6A; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; }
.anim .s-ring { fill: none; stroke: #FF4D6A; stroke-width: 3; stroke-dasharray: 1; }

/* Every moving part turns, grows or pops around its own box. */
.anim .a { transform-box: fill-box; transform-origin: center; }
.anim .shadow { fill: #000; opacity: .28; }
.anim .arm-wave,
.anim .arm-pump,
.anim .arm-vote,
.anim .arm-cheer { transform-origin: left top; }
.anim .leg { transform-origin: center top; }
.anim .flag { transform-origin: center top; }
.anim .bob,
.anim .r-dance { transform-origin: center bottom; }
.anim .g-bar { transform-origin: left center; }
.anim .r-beam { transform-box: view-box; }
.anim .rb1 { transform-origin: 70px 14px; }
.anim .rb2 { transform-origin: 200px 14px; }
.anim .rb3 { transform-origin: 330px 14px; }
.anim .r-ball { transform-origin: center top; }

/* Still picture = end of each story. */
.anim .d-offer,
.anim .d-beam,
.anim .e-beam,
.anim .s-heart,
.anim .e-plus,
.anim .r-note,
.anim .ew1,
.anim .ew2,
.anim .d-cf,
.anim .g-cf,
.anim .g-vote { opacity: 0; }

/* ---------- Motion (only with JavaScript, never with reduced motion) ---------- */

@media (prefers-reduced-motion: no-preference) {
  /* :where() keeps this default at the lowest specificity, so each part's own duration, direction and easing win. */
  .js-anim :where(.who-anim .a) {
    animation-duration: 8s;
    animation-iteration-count: infinite;
    animation-fill-mode: both;
    animation-timing-function: cubic-bezier(.3, .7, .3, 1);
    animation-play-state: paused;
  }

  .js-anim .who-anim.is-in .a { animation-play-state: running; }

  /* Shared: blinking eyes, idle bounce, twinkling stars and windows, waving arms, confetti. */
  .js-anim .eyes { animation-name: blink; animation-duration: 4.2s; }
  .js-anim .bob { animation-name: bob; animation-duration: .9s; animation-direction: alternate; animation-timing-function: ease-in-out; }
  .js-anim .tw { animation-name: twinkle; animation-duration: 2.6s; animation-direction: alternate; animation-timing-function: ease-in-out; }
  .js-anim .tw1 { animation-delay: -.7s; }
  .js-anim .tw2 { animation-delay: -1.4s; animation-duration: 3.4s; }
  .js-anim .tw3 { animation-delay: -2s; animation-duration: 2s; }
  .js-anim .win-lit { animation-name: window; animation-duration: 6s; animation-timing-function: steps(1, end); }
  .js-anim .wl1 { animation-delay: -1.5s; }
  .js-anim .wl2 { animation-delay: -3s; animation-duration: 7s; }
  .js-anim .wl3 { animation-delay: -4.5s; animation-duration: 5s; }
  .js-anim .arm-wave { animation-name: wave; }

  @keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
  @keyframes bob { from { transform: translateY(0); } to { transform: translateY(-2px); } }
  @keyframes twinkle { from { opacity: .2; } to { opacity: 1; } }
  @keyframes window { 0%, 100% { opacity: 1; } 60% { opacity: .15; } 80% { opacity: 1; } }
  @keyframes wave { 0%, 38% { transform: rotate(0); } 43% { transform: rotate(-152deg); } 47% { transform: rotate(-124deg); } 51% { transform: rotate(-152deg); } 55% { transform: rotate(-124deg); } 59% { transform: rotate(-140deg); } 66%, 100% { transform: rotate(0); } }


  /* Walking legs: they swing while the character moves, then stand still. */
  .js-anim .stride36.legL { animation-name: stride36-l; animation-timing-function: ease-in-out; }
  .js-anim .stride36.legR { animation-name: stride36-r; animation-timing-function: ease-in-out; }
  .js-anim .stride26.legL { animation-name: stride26-l; animation-timing-function: ease-in-out; }
  .js-anim .stride26.legR { animation-name: stride26-r; animation-timing-function: ease-in-out; }
  .js-anim .spin { animation-name: spin36; animation-timing-function: cubic-bezier(.4, 0, .3, 1); }
  @keyframes stride36-l { 0% { transform: rotate(22deg); } 2% { transform: rotate(-22deg); } 4% { transform: rotate(22deg); } 6% { transform: rotate(-22deg); } 8% { transform: rotate(22deg); } 10% { transform: rotate(-22deg); } 12% { transform: rotate(22deg); } 14% { transform: rotate(-22deg); } 16% { transform: rotate(22deg); } 18% { transform: rotate(-22deg); } 20% { transform: rotate(22deg); } 22% { transform: rotate(-22deg); } 24% { transform: rotate(22deg); } 26% { transform: rotate(-22deg); } 28% { transform: rotate(22deg); } 30% { transform: rotate(-22deg); } 32% { transform: rotate(22deg); } 34% { transform: rotate(-22deg); } 36%, 100% { transform: rotate(0); } }
  @keyframes stride36-r { 0% { transform: rotate(-22deg); } 2% { transform: rotate(22deg); } 4% { transform: rotate(-22deg); } 6% { transform: rotate(22deg); } 8% { transform: rotate(-22deg); } 10% { transform: rotate(22deg); } 12% { transform: rotate(-22deg); } 14% { transform: rotate(22deg); } 16% { transform: rotate(-22deg); } 18% { transform: rotate(22deg); } 20% { transform: rotate(-22deg); } 22% { transform: rotate(22deg); } 24% { transform: rotate(-22deg); } 26% { transform: rotate(22deg); } 28% { transform: rotate(-22deg); } 30% { transform: rotate(22deg); } 32% { transform: rotate(-22deg); } 34% { transform: rotate(22deg); } 36%, 100% { transform: rotate(0); } }
  @keyframes stride26-l { 0% { transform: rotate(22deg); } 2% { transform: rotate(-22deg); } 4% { transform: rotate(22deg); } 6% { transform: rotate(-22deg); } 8% { transform: rotate(22deg); } 10% { transform: rotate(-22deg); } 12% { transform: rotate(22deg); } 14% { transform: rotate(-22deg); } 16% { transform: rotate(22deg); } 18% { transform: rotate(-22deg); } 20% { transform: rotate(22deg); } 22% { transform: rotate(-22deg); } 24% { transform: rotate(22deg); } 26%, 100% { transform: rotate(0); } }
  @keyframes stride26-r { 0% { transform: rotate(-22deg); } 2% { transform: rotate(22deg); } 4% { transform: rotate(-22deg); } 6% { transform: rotate(22deg); } 8% { transform: rotate(-22deg); } 10% { transform: rotate(22deg); } 12% { transform: rotate(-22deg); } 14% { transform: rotate(22deg); } 16% { transform: rotate(-22deg); } 18% { transform: rotate(22deg); } 20% { transform: rotate(-22deg); } 22% { transform: rotate(22deg); } 24% { transform: rotate(-22deg); } 26%, 100% { transform: rotate(0); } }
  @keyframes spin36 { 0% { transform: rotate(0); } 36%, 100% { transform: rotate(720deg); } }

  .anim .cf0 { --tx: -70px; --ty: -60px; } .anim .cf1 { --tx: -40px; --ty: -90px; } .anim .cf2 { --tx: 0px; --ty: -100px; }
  .anim .cf3 { --tx: 40px; --ty: -90px; } .anim .cf4 { --tx: 70px; --ty: -60px; } .anim .cf5 { --tx: 85px; --ty: -20px; }
  .anim .cf6 { --tx: -85px; --ty: -20px; } .anim .cf7 { --tx: -60px; --ty: 30px; } .anim .cf8 { --tx: 60px; --ty: 30px; }
  .anim .cf9 { --tx: -20px; --ty: -70px; } .anim .cf10 { --tx: 25px; --ty: -55px; } .anim .cf11 { --tx: 0px; --ty: 50px; }

  @keyframes confetti-d { 0%, 67% { opacity: 0; transform: translate(0, 0) rotate(0) scale(.4); } 69% { opacity: 1; transform: scale(1); } 86% { opacity: 1; } 92%, 100% { opacity: 0; transform: translate(var(--tx), var(--ty)) rotate(320deg) scale(1); } }
  @keyframes confetti-g { 0%, 59% { opacity: 0; transform: translate(0, 0) rotate(0) scale(.4); } 61% { opacity: 1; transform: scale(1); } 78% { opacity: 1; } 86%, 100% { opacity: 0; transform: translate(var(--tx), var(--ty)) rotate(320deg) scale(1); } }

  /* 1. Bons plans: the offer, the price drops, "Afficher mon bon", scan, validated, confetti. */
  .js-anim .bk { animation-name: bokeh; animation-duration: 6s; animation-direction: alternate; animation-timing-function: ease-in-out; }
  .js-anim .bk1 { animation-delay: -2s; animation-duration: 7s; }
  .js-anim .bk2 { animation-delay: -4s; animation-duration: 5s; }
  .js-anim .d-phone { animation-name: float; animation-duration: 4s; animation-direction: alternate; animation-timing-function: ease-in-out; }
  .js-anim .d-offer { animation-name: d-offer; }
  .js-anim .d-strike { animation-name: d-strike; }
  .js-anim .d-new { animation-name: d-new; }
  .js-anim .d-badge { animation-name: d-badge; }
  .js-anim .d-btn { animation-name: d-btn; }
  .js-anim .d-voucher { animation-name: d-voucher; }
  .js-anim .d-beam { animation-name: d-beam; animation-timing-function: linear; }
  .js-anim .d-ok { animation-name: d-ok; }
  .js-anim .d-fan { animation-name: d-fan; }
  .js-anim .arm-cheer { animation-name: cheer; }
  .js-anim .d-cf { animation-name: confetti-d; animation-timing-function: cubic-bezier(.2, .8, .4, 1); }

  @keyframes bokeh { from { transform: translate(0, 0) scale(1); } to { transform: translate(8px, -12px) scale(1.15); } }
  @keyframes float { from { transform: translateY(0); } to { transform: translateY(-5px); } }
  @keyframes d-offer { 0% { opacity: 0; } 4%, 42% { opacity: 1; transform: none; } 47%, 100% { opacity: 0; transform: translateX(-16px); } }
  @keyframes d-strike { 0%, 10% { stroke-dashoffset: 1; opacity: 0; } 11% { opacity: 1; } 18%, 100% { stroke-dashoffset: 0; opacity: 1; } }
  @keyframes d-new { 0%, 18% { opacity: 0; transform: scale(.4); } 24% { opacity: 1; transform: scale(1.18); } 28%, 100% { opacity: 1; transform: scale(1); } }
  @keyframes d-badge { 0%, 24% { opacity: 0; transform: scale(0) rotate(-40deg); } 30% { opacity: 1; transform: scale(1.2) rotate(10deg); } 34%, 92% { opacity: 1; transform: scale(1) rotate(-8deg); } 98%, 100% { opacity: 0; transform: scale(.5); } }
  @keyframes d-btn { 0%, 34% { transform: scale(1); } 37% { transform: scale(.9); } 41%, 100% { transform: scale(1); } }
  @keyframes d-voucher { 0%, 43% { opacity: 0; transform: translateX(16px); } 48%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
  @keyframes d-beam { 0%, 50% { opacity: 0; transform: translateY(0); } 52% { opacity: 1; transform: translateY(0); } 64% { opacity: 1; transform: translateY(70px); } 66%, 100% { opacity: 0; transform: translateY(70px); } }
  @keyframes d-fan { 0%, 66% { transform: translateY(0); } 70% { transform: translateY(-14px); } 74% { transform: translateY(0); } 78% { transform: translateY(-9px); } 82%, 100% { transform: translateY(0); } }
  @keyframes cheer { 0%, 64% { transform: rotate(0); } 68% { transform: rotate(-162deg); } 72% { transform: rotate(-128deg); } 76% { transform: rotate(-162deg); } 80% { transform: rotate(-128deg); } 84%, 88% { transform: rotate(-145deg); } 96%, 100% { transform: rotate(0); } }
  @keyframes d-ok { 0%, 65% { opacity: 0; transform: scale(.2); } 70% { opacity: 1; transform: scale(1.25); } 74%, 100% { opacity: 1; transform: scale(1); } }

  /* 2. Sortir: strangers walk in from both sides, say hello, a neon ring joins them, hearts. */
  .js-anim .walk { animation-name: walk-in; animation-timing-function: cubic-bezier(.4, 0, .3, 1); }
  .anim .s-l1 { --dx: -190px; } .anim .s-l2 { --dx: -220px; } .anim .s-r1 { --dx: 190px; } .anim .s-r2 { --dx: 220px; }
  .js-anim .lamp { animation-name: twinkle; animation-duration: 1.8s; animation-direction: alternate; }
  .js-anim .shoot { animation-name: shoot; animation-timing-function: ease-in; }
  .js-anim .drift { animation-name: drift; animation-duration: 10s; animation-direction: alternate; animation-timing-function: ease-in-out; }
  .js-anim .s-b1 { animation-name: s-b1; }
  .js-anim .s-b2 { animation-name: s-b2; }
  .js-anim .s-ring { animation-name: s-ring; }
  .js-anim .s-heart { animation-name: s-heart; }
  .js-anim .h1 { animation-delay: .35s; }
  .js-anim .h2 { animation-delay: .7s; }

  @keyframes walk-in { 0% { opacity: 0; transform: translateX(var(--dx)); } 4% { opacity: 1; } 36%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
  @keyframes shoot { 0%, 20% { opacity: 0; transform: translate(0, 0); } 22% { opacity: 1; } 28%, 100% { opacity: 0; transform: translate(-90px, 38px); } }
  @keyframes drift { from { transform: translateX(0); } to { transform: translateX(-8px); } }
  @keyframes s-b1 { 0%, 42% { opacity: 0; transform: scale(.3) translateY(14px); } 47% { opacity: 1; transform: scale(1.1); } 50%, 90% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; } }
  @keyframes s-b2 { 0%, 54% { opacity: 0; transform: scale(.3) translateY(14px); } 59% { opacity: 1; transform: scale(1.1); } 62%, 90% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; } }
  @keyframes s-ring { 0%, 64% { stroke-dashoffset: 1; opacity: 0; } 65% { opacity: 1; } 76%, 90% { stroke-dashoffset: 0; opacity: 1; } 96%, 100% { stroke-dashoffset: 0; opacity: 0; } }
  @keyframes s-heart { 0%, 72% { opacity: 0; transform: translateY(0) scale(.4); } 76% { opacity: 1; transform: translateY(-8px) scale(1.1); } 90% { opacity: 0; transform: translateY(-46px) scale(1); } 100% { opacity: 0; } }

  /* 3. Pour tout le monde: the beach at sunset, everyone arrives and waves, the promises pop up. */
  .js-anim .p-sun { animation-name: sun; animation-duration: 4s; animation-direction: alternate; animation-timing-function: ease-in-out; }
  .js-anim .wave { animation-name: sea; animation-duration: 3s; animation-timing-function: linear; }
  .js-anim .wv1 { animation-duration: 4s; animation-direction: reverse; }
  .js-anim .wv2 { animation-duration: 5s; }
  .js-anim .gull { animation-name: gull; animation-duration: 9s; animation-timing-function: linear; }
  .js-anim .g2 { animation-delay: -3.5s; animation-duration: 11s; }
  .js-anim .p-in { animation-name: walk-in; animation-timing-function: cubic-bezier(.4, 0, .3, 1); }
  .anim .pi0 { --dx: -180px; } .anim .pi1 { --dx: -230px; } .anim .pi2 { --dx: -300px; } .anim .pi3 { --dx: 240px; } .anim .pi4 { --dx: 180px; }
  .js-anim .p-tag { animation-name: p-tag; }
  .js-anim .pt1 { animation-delay: .6s; }
  .js-anim .pt2 { animation-delay: 1.2s; }

  @keyframes sun { from { transform: scale(1); } to { transform: scale(1.06); } }
  @keyframes sea { from { transform: translateX(0); } to { transform: translateX(-60px); } }
  @keyframes gull { 0% { transform: translate(-40px, 0); } 25% { transform: translate(80px, -10px); } 50% { transform: translate(200px, 4px); } 75% { transform: translate(320px, -8px); } 100% { transform: translate(440px, 0); } }
  @keyframes p-tag { 0%, 40% { opacity: 0; transform: translateY(18px) scale(.5); } 46% { opacity: 1; transform: translateY(-3px) scale(1.06); } 50%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: translateY(-10px); } }

  /* 4. Établissements: the garland and the sign glow, members walk in (+1), tables fill, voucher scanned. */
  .js-anim .bulb { animation-name: bulb; animation-duration: 1.2s; animation-timing-function: steps(1, end); }
  .js-anim .bu1 { animation-delay: -.6s; }
  .js-anim .e-neon { animation-name: neon; animation-duration: 5s; animation-timing-function: linear; }
  .js-anim .e-walk { animation-name: e-walk; animation-timing-function: cubic-bezier(.45, 0, .4, 1); }
  .js-anim .e-doorlight { animation-name: doorlight; }
  .js-anim .e-plus { animation-name: e-plus; }
  .js-anim .e-seat { animation-name: e-seat; }
  .js-anim .e-phone { animation-name: float; animation-duration: 3s; animation-direction: alternate; animation-timing-function: ease-in-out; }
  .js-anim .e-beam { animation-name: e-beam; animation-timing-function: linear; }
  .js-anim .e-toast { animation-name: e-toast; }

  @keyframes bulb { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
  @keyframes neon { 0%, 61%, 63%, 66%, 68%, 100% { opacity: 1; } 62% { opacity: .35; } 67% { opacity: .5; } }
  @keyframes e-walk { 0% { opacity: 0; transform: translateX(-210px); } 3% { opacity: 1; } 26% { opacity: 1; transform: translateX(0); } 30%, 100% { opacity: 0; transform: translateX(4px) scale(.8); } }
  @keyframes doorlight { 0%, 24% { opacity: 0; } 27% { opacity: .75; } 32%, 39% { opacity: 0; } 42% { opacity: .75; } 47%, 54% { opacity: 0; } 57% { opacity: .75; } 62%, 100% { opacity: 0; } }
  @keyframes e-plus { 0%, 25% { opacity: 0; transform: translateY(0); } 28% { opacity: 1; } 40%, 100% { opacity: 0; transform: translateY(-34px); } }
  @keyframes e-seat { 0%, 30% { opacity: 0; transform: scale(.4); } 35% { opacity: 1; transform: scale(1.15); } 38%, 92% { opacity: 1; transform: scale(1); } 98%, 100% { opacity: 0; } }
  @keyframes e-beam { 0%, 62% { opacity: 0; transform: translateY(0); } 64% { opacity: 1; transform: translateY(0); } 74% { opacity: 1; transform: translateY(44px); } 76%, 100% { opacity: 0; transform: translateY(44px); } }
  @keyframes e-toast { 0%, 75% { opacity: 0; transform: translateY(16px) scale(.5); } 80% { opacity: 1; transform: scale(1.1); } 83%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-8px); } }

  /* 5. Artistes: DJ set, sweeping beams, disco ball, the crowd moves, a venue writes, the artist answers. */
  .js-anim .r-beam { animation-name: sway; animation-duration: 3s; animation-direction: alternate; animation-timing-function: ease-in-out; }
  .js-anim .rb2 { animation-delay: -1s; animation-duration: 2.4s; }
  .js-anim .rb3 { animation-delay: -2s; animation-duration: 3.6s; }
  .js-anim .r-ball { animation-name: swing; animation-duration: 3s; animation-direction: alternate; animation-timing-function: ease-in-out; }
  .js-anim .r-glint { animation-name: glint; animation-duration: 1.6s; }
  .js-anim .rg1 { animation-delay: -.5s; }
  .js-anim .rg2 { animation-delay: -1.1s; }
  .js-anim .r-dance { animation-name: dance; animation-duration: .5s; animation-direction: alternate; animation-timing-function: ease-in-out; }
  .js-anim .arm-pump { animation-name: pump; animation-duration: .5s; animation-direction: alternate; animation-timing-function: ease-in-out; }
  .js-anim .r-disc { animation-name: spin-dash; animation-duration: .8s; animation-timing-function: linear; }
  .js-anim .r-note { animation-name: note; animation-duration: 3s; animation-timing-function: ease-out; }
  .js-anim .rn1 { animation-delay: -.8s; }
  .js-anim .rn2 { animation-delay: -1.6s; }
  .js-anim .rn3 { animation-delay: -2.3s; }
  .js-anim .r-head { animation-name: head; animation-duration: .5s; animation-direction: alternate; animation-timing-function: ease-in-out; }
  .js-anim .rh1 { animation-delay: -.2s; }
  .js-anim .rh2 { animation-delay: -.35s; }
  .js-anim .r-hands { animation-name: head; animation-duration: .25s; animation-direction: alternate; }
  .js-anim .r-msg { animation-name: r-msg; }
  .js-anim .r-reply { animation-name: r-reply; }

  @keyframes sway { from { transform: rotate(-14deg); } to { transform: rotate(14deg); } }
  @keyframes swing { from { transform: rotate(-8deg); } to { transform: rotate(8deg); } }
  @keyframes glint { 0%, 100% { opacity: 0; transform: scale(.2); } 50% { opacity: 1; transform: scale(1.2) rotate(45deg); } }
  @keyframes dance { from { transform: translateY(0) rotate(-4deg); } to { transform: translateY(-4px) rotate(4deg); } }
  @keyframes pump { from { transform: rotate(-128deg); } to { transform: rotate(-86deg); } }
  @keyframes spin-dash { to { stroke-dashoffset: -20; } }
  @keyframes note { 0% { opacity: 0; transform: translate(0, 12px) rotate(-12deg); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(12px, -70px) rotate(14deg); } }
  @keyframes head { from { transform: translateY(0); } to { transform: translateY(-5px); } }
  @keyframes r-msg { 0%, 28% { opacity: 0; transform: translateY(18px) scale(.5); } 34% { opacity: 1; transform: scale(1.08); } 38%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
  @keyframes r-reply { 0%, 52% { opacity: 0; transform: translateY(18px) scale(.5); } 58% { opacity: 1; transform: scale(1.08); } 62%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }

  /* 6. Groupes: the members arrive, each one votes, the bars fill, it's booked, confetti. */
  .js-anim .flag { animation-name: flag; animation-duration: 1.6s; animation-direction: alternate; animation-timing-function: ease-in-out; }
  .js-anim .fl1 { animation-delay: -.5s; }
  .js-anim .fl2 { animation-delay: -1s; }
  .js-anim .g-card { animation-name: g-card; }
  .js-anim .g-in { animation-name: g-in; }
  .js-anim .arm-vote { animation-name: vote-arm; }
  .js-anim .g-vote { animation-name: g-vote; }
  .js-anim .g-bar { animation-name: g-bar; }
  .js-anim .g-stamp { animation-name: g-stamp; }
  .js-anim .g-cf { animation-name: confetti-g; animation-timing-function: cubic-bezier(.2, .8, .4, 1); }

  @keyframes flag { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
  @keyframes g-card { 0% { opacity: 0; transform: translateY(-12px); } 8%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
  @keyframes g-in { 0%, 2% { opacity: 0; transform: translateY(30px); } 10% { opacity: 1; transform: translateY(-6px); } 14%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
  @keyframes vote-arm { 0%, 18% { transform: rotate(0); } 23% { transform: rotate(-158deg); } 26%, 46% { transform: rotate(-148deg); } 54%, 100% { transform: rotate(0); } }
  @keyframes g-vote { 0%, 20% { opacity: 0; transform: translateY(14px) scale(.4); } 25% { opacity: 1; transform: translateY(-4px) scale(1.1); } 28%, 50% { opacity: 1; transform: none; } 56%, 100% { opacity: 0; transform: translateY(-40px) scale(.6); } }
  @keyframes g-bar { 0%, 44% { transform: scaleX(0); } 58%, 94% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
  @keyframes g-stamp { 0%, 58% { opacity: 0; transform: scale(.3) rotate(-12deg); } 62% { opacity: 1; transform: scale(1.2) rotate(4deg); } 66%, 92% { opacity: 1; transform: rotate(-4deg); } 98%, 100% { opacity: 0; } }

  /* Stagger utilities (characters arriving one after the other). */
  .js-anim .d1 { animation-delay: .15s; }
  .js-anim .d2 { animation-delay: .3s; }
  .js-anim .d3 { animation-delay: .45s; }
  .js-anim .d4 { animation-delay: .6s; }
  .js-anim .d5 { animation-delay: 1.2s; }
  .js-anim .d6 { animation-delay: 2.4s; }
  .js-anim .d7 { animation-delay: 3.6s; }
}
