/* CHIP THIEF — bord de mer, mouette voleuse.
   Tout est sous .skin-chips ; keyframes préfixées chips-. Coordonnées en px logiques (1600×900 / 900×1600). */
.skin-chips {
  --ink: #14213D; --red: #E5352B; --red-d: #B81F1B; --yel: #FFC72C; --cream: #FFF1D0; --sky: #6EC5FF; --teal: #1FA6A0;
  --chalk: #F7F3E8; --slate: #22352F; --mute: #5B6785;
  /* une seule famille de courbes : sortie douce (interface, retours), entrée (départs), aller-retour (va-et-vient),
     et le claquement d'un autocollant qu'on pose, réservé aux objets du monde (autocollants, Barry, tampons) */
  --e-out: cubic-bezier(.2, .75, .25, 1); --e-in: cubic-bezier(.55, 0, .9, .45); --e-io: cubic-bezier(.5, 0, .3, 1); --e-pop: cubic-bezier(.3, 1.4, .5, 1);
  --f-sign: 'Lilita One', 'Arial Rounded MT Bold', 'Arial Black', sans-serif;
  --f-ui: 'Barlow Condensed', 'DIN Condensed', 'Arial Narrow', sans-serif;
  --f-script: 'Yellowtail', 'Brush Script MT', cursive;
  --t: 13px; --cap: 28;            /* épaisseur d'un jeton de la pile, hauteur max en jetons */
  --tg-clip-y: -10px; --tg-sym-pad: 4%;
  font-family: var(--f-ui); color: var(--ink); background: var(--sky);

  .c-script { font-family: var(--f-script); font-style: normal; font-weight: 400; }

  /* ================= décor ================= */
  .c-sky, .c-sky i { position: absolute; inset: 0; }
  .c-sky-day { background: linear-gradient(#4FB3F8 0%, #8FD4FF 42%, #DDF4FF 62%); }
  .c-sky-gold { background: linear-gradient(#FF7E45 0%, #FFAE66 34%, #FFE3AE 62%); opacity: 0; transition: opacity .5s; }
  .c-sky-night { background: linear-gradient(#0A1230 0%, #1B2A5E 40%, #3A5596 66%); opacity: 0; transition: opacity .5s; }
  .c-stars { opacity: 0; transition: opacity .5s; background-image: radial-gradient(circle, #fff 0 1.5px, transparent 2.2px), radial-gradient(circle, #FFE9A0 0 1.1px, transparent 1.8px); background-size: 190px 130px, 127px 171px; background-position: 20px 30px, 70px 90px; animation: chips-twinkle 3s ease-in-out infinite alternate; }
  &[data-mode="fsA"] .c-sky-gold { opacity: 1; }
  &[data-mode="fsB"] .c-sky-night, &[data-mode="fsB"] .c-stars { opacity: 1; }

  .c-sun { position: absolute; left: 44px; top: 18px; width: 136px; height: 136px; border-radius: 50%; background: radial-gradient(circle, #FFFBD6 0 34%, #FFE27A 35% 44%, transparent 45%); transition: transform .7s, opacity .5s; }
  .c-sun::before { content: ''; position: absolute; inset: -34px; border-radius: 50%; background: repeating-conic-gradient(rgba(255, 226, 122, .55) 0 7deg, transparent 7deg 20deg); -webkit-mask: radial-gradient(circle, transparent 36%, #000 37% 60%, transparent 72%); mask: radial-gradient(circle, transparent 36%, #000 37% 60%, transparent 72%); animation: chips-turn 50s linear infinite; }
  &[data-mode="fsA"] .c-sun { transform: translate(190px, 330px) scale(1.7); background: radial-gradient(circle, #FFE9B0 0 34%, #FF9A4A 35% 44%, transparent 45%); }
  &[data-mode="fsB"] .c-sun { opacity: 0; }
  .c-moon { position: absolute; left: 70px; top: 30px; width: 96px; height: 96px; border-radius: 50%; background: #FFF6CC; box-shadow: inset -22px -8px 0 #D9D2A6, 0 0 0 10px rgba(255, 246, 204, .12), 0 0 0 26px rgba(255, 246, 204, .06); opacity: 0; transition: opacity .5s; }
  &[data-mode="fsB"] .c-moon { opacity: 1; }

  .c-cloud { position: absolute; width: 230px; height: 56px; border-radius: 40px; background: #fff; opacity: .95; animation: chips-drift 95s linear infinite; }
  .c-cloud::before, .c-cloud::after { content: ''; position: absolute; background: inherit; border-radius: 50%; }
  .c-cloud::before { width: 96px; height: 96px; left: 34px; top: -44px; }
  .c-cloud::after { width: 124px; height: 124px; left: 92px; top: -66px; }
  .c-cloud-1 { top: 96px; left: -260px; animation-delay: -18s; }
  .c-cloud-2 { top: 216px; left: -260px; transform-origin: 0 0; scale: .7; animation-duration: 130s; animation-delay: -84s; opacity: .8; }
  .c-cloud-3 { top: 40px; left: -260px; scale: .55; animation-duration: 150s; animation-delay: -120s; opacity: .75; }
  &[data-mode="fsA"] .c-cloud { background: #FFD6C2; }
  &[data-mode="fsB"] .c-cloud { background: #44598F; opacity: .55; }

  .c-birds { position: absolute; left: 0; top: 0; width: 100%; height: 300px; }
  .c-birds i { position: absolute; left: -40px; width: 26px; height: 8px; animation: chips-drift 34s linear infinite; }
  .c-birds i::before, .c-birds i::after { content: ''; position: absolute; top: 3px; width: 13px; height: 3.5px; border-radius: 3px; background: var(--ink); opacity: .55; }
  .c-birds i::before { left: 0; transform-origin: 100% 50%; animation: chips-vl .45s ease-in-out infinite alternate; }
  .c-birds i::after { left: 13px; transform-origin: 0 50%; animation: chips-vr .45s ease-in-out infinite alternate; }
  .c-birds i:nth-child(1) { top: 150px; animation-delay: -6s; }
  .c-birds i:nth-child(2) { top: 186px; animation-delay: -4.6s; scale: .8; }
  .c-birds i:nth-child(3) { top: 250px; animation-duration: 48s; animation-delay: -30s; scale: .7; }

  .c-wheel { position: absolute; left: 236px; top: 330px; width: 132px; height: 144px; color: #9AD3F5; transition: color .5s; }
  .c-wheel svg { width: 100%; height: 100%; overflow: visible; }
  .c-wheel-rot { transform-origin: 70px 70px; animation: chips-turn 70s linear infinite; }
  &[data-mode="fsA"] .c-wheel { color: #F0A66B; }
  &[data-mode="fsB"] .c-wheel { color: #5876C0; }
  &[data-mode="fsB"] .c-cabin { fill: #FFE27A; }

  .c-sea { position: absolute; left: 0; right: 0; top: 470px; height: 300px; overflow: hidden; background: linear-gradient(#2BBDB3, #168F8B 70%); box-shadow: inset 0 5px 0 rgba(255, 255, 255, .5); transition: filter .5s; }
  .c-sea i { position: absolute; left: -90px; right: -90px; height: 16px; background: radial-gradient(circle at 20px -7px, transparent 14px, rgba(255, 255, 255, .6) 15px 17.5px, transparent 18.5px) 0 0 / 40px 16px repeat-x; animation: chips-wave 6s linear infinite; }
  .c-sea i:nth-child(1) { top: 30px; opacity: .7; }
  .c-sea i:nth-child(2) { top: 96px; animation-duration: 4.4s; animation-direction: reverse; }
  .c-sea i:nth-child(3) { top: 178px; animation-duration: 3.4s; opacity: .85; }
  .c-sea b { position: absolute; width: 10px; height: 10px; background: #fff; transform: rotate(45deg) scale(0); animation: chips-glint 2.6s ease-in-out infinite; }
  .c-sea b:nth-of-type(1) { left: 6%; top: 56px; }
  .c-sea b:nth-of-type(2) { left: 17%; top: 132px; animation-delay: -.7s; }
  .c-sea b:nth-of-type(3) { left: 82%; top: 62px; animation-delay: -1.3s; }
  .c-sea b:nth-of-type(4) { left: 93%; top: 148px; animation-delay: -1.9s; }
  .c-sea b:nth-of-type(5) { left: 11%; top: 216px; animation-delay: -2.2s; }
  .c-sea b:nth-of-type(6) { left: 88%; top: 226px; animation-delay: -.4s; }
  &[data-mode="fsA"] .c-sea { background: linear-gradient(#FFC27A 0%, #E9A15C 9%, #3FA999 34%, #1B8A84 100%); }
  &[data-mode="fsB"] .c-sea { background: linear-gradient(#35508F, #152A5C 60%, #0F2148); box-shadow: inset 0 5px 0 rgba(255, 255, 255, .22); }
  &[data-mode="fsB"] .c-sea i { opacity: .35; }

  .c-bunting { position: absolute; top: 4px; width: 400px; }
  .c-bunting-l { left: 0; }
  .c-bunting-r { right: 0; }
  .c-bunting svg { display: block; overflow: visible; }
  .c-flag { transform-box: fill-box; transform-origin: 50% 0; animation: chips-flag 1.1s ease-in-out infinite alternate; animation-delay: calc(var(--k) * -.19s); }

  .c-boards { position: absolute; left: 0; right: 0; top: 760px; bottom: 0; border-top: 5px solid var(--ink); background:
    repeating-linear-gradient(90deg, transparent 0 197px, rgba(20, 33, 61, .32) 197px 200px),
    repeating-linear-gradient(0deg, transparent 0 43px, rgba(20, 33, 61, .28) 43px 46px),
    linear-gradient(#E6B279, #C68949); box-shadow: inset 0 7px 0 rgba(255, 255, 255, .28); transition: filter .5s; }
  &[data-mode="fsA"] .c-boards { filter: saturate(1.25) hue-rotate(-8deg); }
  &[data-mode="fsB"] .c-boards { filter: brightness(.5) saturate(.9) hue-rotate(-12deg); }

  /* ================= la friterie : cadre, grille, auvent ================= */
  .c-kiosk { position: absolute; left: 396px; top: 0; width: 808px; height: 780px; z-index: 10; }
  .c-frame { position: absolute; left: 23px; top: 140px; width: 762px; height: 633px; border-radius: 12px; background: var(--cream); border: 5px solid var(--ink); box-shadow: 0 9px 0 rgba(20, 33, 61, .28); }
  .c-grid { left: 41px; top: 154px; width: 726px; height: 605px; border-radius: 4px; box-shadow: 0 0 0 4px var(--ink); background:
    linear-gradient(rgba(20, 33, 61, .42), transparent 74px),
    repeating-linear-gradient(90deg, transparent 0 calc(100% / 6 - 2px), rgba(255, 255, 255, .09) calc(100% / 6 - 2px) calc(100% / 6)),
    linear-gradient(#1D9D95, #0E6E73); transition: background-color .5s; }
  &[data-mode="fsA"] .c-grid { background:
    linear-gradient(rgba(120, 40, 10, .4), transparent 74px),
    repeating-linear-gradient(90deg, transparent 0 calc(100% / 6 - 2px), rgba(255, 255, 255, .1) calc(100% / 6 - 2px) calc(100% / 6)),
    linear-gradient(#1F8E7C, #0F5F5A); box-shadow: 0 0 0 4px var(--ink), 0 0 0 9px #FFB24D; }
  &[data-mode="fsB"] .c-grid { background:
    linear-gradient(rgba(0, 0, 0, .45), transparent 74px),
    repeating-linear-gradient(90deg, transparent 0 calc(100% / 6 - 2px), rgba(255, 255, 255, .07) calc(100% / 6 - 2px) calc(100% / 6)),
    linear-gradient(#22367A, #121C44); box-shadow: 0 0 0 4px var(--ink), 0 0 0 9px #FFE27A; }

  .c-awning { position: absolute; left: 0; top: 74px; z-index: 3; filter: drop-shadow(0 7px 0 rgba(20, 33, 61, .24)); }
  .c-awning svg { display: block; overflow: visible; }
  .c-awning-p { display: none; }
  .c-rail { position: absolute; left: -10px; right: -10px; top: 66px; height: 13px; z-index: 4; border: 3.5px solid var(--ink); border-radius: 8px; background: #D5DDE8; box-shadow: inset 0 3px 0 #F4F7FB; }
  .c-bulbs { position: absolute; left: 16px; right: 16px; top: 123px; z-index: 4; display: flex; justify-content: space-between; }
  .c-bulbs i { width: 13px; height: 13px; border-radius: 50%; background: #F7EBC0; border: 2.5px solid var(--ink); }
  &[data-mode="fsB"] .c-bulbs i { background: #FFE27A; box-shadow: 0 0 0 4px rgba(255, 226, 122, .3); animation: chips-bulb .7s steps(1) infinite; animation-delay: calc(var(--k) * -.35s); }

  .c-flock { position: absolute; left: 0; right: 0; top: 0; height: 68px; z-index: 5; pointer-events: none; }
  .c-gull { position: absolute; bottom: 0; width: 78px; height: 67px; opacity: 0; transform: translateY(-110px) rotate(-14deg); transition: transform .34s var(--e-pop), opacity .12s; transform-origin: 50% 100%; }
  .c-gull svg { width: 100%; height: 100%; overflow: visible; display: block; }
  .c-gull:nth-child(1) { left: 44px; } .c-gull:nth-child(2) { left: 128px; } .c-gull:nth-child(3) { left: 604px; } .c-gull:nth-child(4) { left: 688px; }
  .c-flock[data-n="1"] .c-gull:nth-child(-n+1), .c-flock[data-n="2"] .c-gull:nth-child(-n+2), .c-flock[data-n="3"] .c-gull:nth-child(-n+3), .c-flock[data-n="4"] .c-gull { opacity: 1; transform: none; }
  .c-gull-head { transform-origin: 52px 30px; animation: chips-peer 1.7s ease-in-out infinite alternate; }
  &[data-antic="1"] .c-gull svg { transform-origin: 40% 100%; animation: chips-lean .5s ease-in-out infinite alternate; }
  &[data-antic="1"] .c-gull-head { animation: none; transform: rotate(26deg) translate(4px, 3px); }
  &[data-antic="2"] .c-gull svg { transform-origin: 40% 100%; animation: chips-hopgull .16s ease-in-out infinite alternate; }
  &[data-antic="2"] .c-gull-head { animation: none; transform: rotate(34deg) translate(6px, 4px); }
  .c-flock.is-flee .c-gull { transition: transform .5s var(--e-in), opacity .3s .2s; transform: translate(260px, -260px) rotate(-30deg); }
  .c-flock.is-flee .c-gull:nth-child(odd) { transform: translate(-220px, -280px) rotate(24deg); }

  .c-sign { position: absolute; left: 214px; top: 8px; width: 380px; height: 98px; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; background: var(--red); border: 5px solid var(--ink); border-radius: 16px; box-shadow: inset 0 0 0 4px var(--cream), 0 7px 0 rgba(20, 33, 61, .32); transform: rotate(-1.4deg); }
  .c-sign span { font: 700 14px/1 var(--f-ui); letter-spacing: .34em; text-transform: uppercase; color: #FFD9A0; }
  .c-sign h1 { margin: 0; font: 400 55px/1 var(--f-sign); letter-spacing: .02em; color: var(--cream); text-shadow: 0 4px 0 var(--ink); white-space: nowrap; display: flex; align-items: center; }
  .c-sign-chip { width: 30px; height: 30px; margin: 4px 9px 0; border-radius: 50%; border: 3px solid var(--ink); background: radial-gradient(circle, #fff 0 33%, #2E7BD6 34% 55%, transparent 56%), repeating-conic-gradient(#fff 0 22.5deg, #2E7BD6 22.5deg 45deg); }

  /* ombres de mouettes qui tournent sur les colonnes à venir */
  .c-shadows { position: absolute; left: 41px; top: 154px; width: 726px; height: 605px; z-index: 2; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .4s; }
  &[data-antic="1"] .c-shadows, &[data-antic="2"] .c-shadows { opacity: 1; }
  .c-shadows i { position: absolute; left: 68%; top: 50%; width: 180px; height: 104px; margin: -52px 0 0 -90px; opacity: .2; animation: chips-orbit 3.4s linear infinite; }
  .c-shadows i:nth-child(2) { animation-duration: 4.6s; animation-direction: reverse; left: 74%; top: 34%; scale: .8; }
  .c-shadows i:nth-child(3) { animation-duration: 2.8s; animation-delay: -1.2s; left: 62%; top: 68%; scale: .65; }
  .c-shadows svg { width: 100%; height: 100%; }
  .c-shadows svg * { fill: var(--ink); stroke: var(--ink); }
  &[data-antic="2"] .c-shadows i { opacity: .32; animation-duration: 1.7s; }

  .tg-colhl { opacity: 0; background: none; }
  .tg-colhl[data-on="1"] { opacity: 1; background: linear-gradient(to top, rgba(255, 199, 44, .6), rgba(255, 199, 44, .14) 72%, transparent); }
  .tg-colhl[data-on="2"] { opacity: 1; background: linear-gradient(to top, rgba(229, 53, 43, .68), rgba(255, 199, 44, .3) 72%, transparent); animation: chips-hot .42s ease-in-out infinite alternate; }
  .tg-colhl[data-active="1"] { box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 8px rgba(255, 199, 44, .8); }
  .tg-colhl::after { content: ''; position: absolute; inset: 0; opacity: .5; background: repeating-linear-gradient(-45deg, transparent 0 22px, rgba(255, 255, 255, .22) 22px 30px); background-size: 200% 200%; animation: chips-stripes 1.4s linear infinite; }

  /* ================= symboles ================= */
  .tg-sym-in { transform: rotate(var(--rest, 0deg)); }
  .tg-sym:nth-child(4n+1) .tg-sym-in { --rest: -4deg; }
  .tg-sym:nth-child(4n+2) .tg-sym-in { --rest: 3deg; }
  .tg-sym:nth-child(5n) .tg-sym-in { --rest: 5deg; }
  .tg-sym:nth-child(7n) .tg-sym-in { --rest: -2deg; }
  .tg-sym.is-landing .tg-sym-in { animation: chips-land .32s var(--e-pop); }
  /* ----- gains. Un autocollant gagnant se décolle du plateau (pose tenue, c'est aussi l'état des poses figées) ;
     les perdants reculent. La scène elle-même est lancée par onWins : data-w = palier d'intensité (0 : 8-9 symboles,
     1 : 10-11, 2 : 12+), --d = retard dans la vague, --amp = amplitude. D'abord l'annonce (chips-w-lift), puis
     l'objet agit selon ce qu'il est (--w-act, sur l'image du symbole), et il revient à la pose tenue. ----- */
  .tg-sym-in { transition: transform .2s var(--e-out); }
  .tg-sym.is-win { z-index: 3; }
  .tg-sym.is-win .tg-sym-in { transform: rotate(var(--rest, 0deg)) translateY(-5%) scale(1.09); }
  .tg-sym.is-dim { opacity: .46; transition: opacity .2s; }
  .tg-sym.is-dim .tg-sym-in { transform: rotate(var(--rest, 0deg)) scale(.9); }
  .tg-sym.is-win[data-w]:not(.is-pop) .tg-sym-in { animation: chips-w-lift calc(.22s * var(--tg-speed, 1)) var(--e-pop) var(--d, 0ms) both; }
  .tg-sym.is-win[data-w]:not(.is-pop) .tg-sym-in > :first-child { transform-origin: var(--w-o, 50% 70%); animation: var(--w-act, chips-w-hop) calc(.6s * var(--tg-speed, 1)) var(--e-io) calc(var(--d, 0ms) + .12s * var(--tg-speed, 1)) both; }
  .tg-sym[data-sym="h1"] { --w-act: chips-w-crab; --w-o: 50% 72%; }       /* le crabe marche de côté et pince */
  .tg-sym[data-sym="h2"] { --w-act: chips-w-fish; --w-o: 50% 60%; }       /* le poisson pané grésille */
  .tg-sym[data-sym="h3"] { --w-act: chips-w-anchor; --w-o: 50% 9%; }      /* l'ancre se balance, pendue à son anneau */
  .tg-sym[data-sym="h4"] { --w-act: chips-w-buoy; --w-o: 50% 50%; }       /* la bouée fait un tour */
  .tg-sym[data-sym="l5"] { --w-act: chips-w-vinegar; --w-o: 50% 62%; }    /* le vinaigre penche et verse */
  .tg-sym[data-sym="l4"] { --w-act: chips-w-salt; --w-o: 50% 60%; }       /* la salière se secoue */
  .tg-sym[data-sym="l3"] { --w-act: chips-w-lemon; --w-o: 50% 55%; }      /* le citron est pressé, puis relâché */
  .tg-sym[data-sym="l2"] { --w-act: chips-w-peas; --w-o: 50% 92%; }       /* la purée de pois tremble */
  .tg-sym[data-sym="l1"] { --w-act: chips-w-shell; --w-o: 50% 88%; }      /* la coquille tourne vers la lumière */
  /* pop : il se décolle pour de bon, et son double (.tg-ghost, voir onPop) s'envole vers THE TAKE */
  .tg-sym.is-pop .tg-sym-in { animation: chips-w-peel calc(.18s * var(--tg-speed, 1)) var(--e-out) forwards; }
  /* étiquette de gain : une étiquette de prix, mêmes chiffres que le reste de l'interface ; elle grossit avec le palier */
  .tg-pay { z-index: 5; padding: 0 12px; border-radius: 8px; background: var(--yel); border: 4px solid var(--ink); box-shadow: 0 4px 0 rgba(20, 33, 61, .35); font: 700 32px/1.25 var(--f-ui); font-variant-numeric: tabular-nums; color: var(--ink); text-shadow: none; rotate: -4deg; animation: chips-tag-in calc(.2s * var(--tg-speed, 1)) var(--e-out) calc(.2s * var(--tg-speed, 1)) both; }
  .tg-pay[data-lvl="1"] { font-size: 38px; }
  .tg-pay[data-lvl="2"] { font-size: 46px; }
  .tg-pay.is-out { animation: chips-tag-out calc(.24s * var(--tg-speed, 1)) var(--e-in) forwards; }

  .tg-sym[data-kind="scatter"], .tg-sym[data-kind="multi"] { z-index: 2; }
  .tg-sym[data-kind="scatter"] .tg-sym-in { --rest: 0deg; inset: -3%; }
  .k-burst { transform-origin: 50px 52px; }
  .k-cone { transform-origin: 50px 90px; }
  .k-steam path { animation: chips-steam 1.7s ease-in-out infinite; }
  .k-steam path:nth-child(2) { animation-delay: -.55s; }
  .k-steam path:nth-child(3) { animation-delay: -1.1s; }
  .tg-sym.is-landed .k-cone { animation: chips-conesway 1.5s ease-in-out infinite alternate; }
  .tg-sym.is-teasing .tg-sym-in { animation: chips-shiver .09s linear infinite alternate; }
  .tg-sym.is-teasing .k-burst { animation: chips-turn 2.2s linear infinite; }
  .tg-sym.is-teasing .k-steam path { animation-duration: .7s; }
  .tg-sym.is-missed .tg-sym-in { animation: chips-droop .5s ease-out forwards; }
  .tg-sym.is-missed .k-steam { display: none; }
  .tg-sym.is-missed .k-burst { animation-play-state: paused; }
  .tg-sym.is-trigger { z-index: 4; }
  .tg-sym.is-trigger .tg-sym-in { animation: chips-jump .36s ease-in-out infinite alternate; }
  .tg-sym.is-trigger .k-burst { animation: chips-turn .9s linear infinite; }

  .tg-sym[data-kind="multi"] .tg-sym-in { --rest: -7deg; }
  .tg-sym[data-tier="epic"] .tg-sym-in, .tg-sym[data-tier="legend"] .tg-sym-in { inset: -2%; }
  .k-chip { overflow: visible; }
  .k-coin { transform-origin: 50px 50px; }
  .tg-sym.is-landing .k-coin { animation: chips-coinland .32s var(--e-pop); }
  .k-rays { transform-origin: 50px 50px; animation: chips-turn 7s linear infinite; }
  .k-chip-legend .k-coin { animation: chips-legend .9s ease-in-out infinite alternate; }
  .tg-sym.is-landing .k-chip-legend .k-coin { animation: chips-coinland .32s var(--e-pop); }
  .k-sparks path { transform-box: fill-box; transform-origin: 50% 50%; animation: chips-spark 1.1s ease-in-out infinite; }
  .k-sparks path:nth-child(2) { animation-delay: -.4s; }
  .k-sparks path:nth-child(3) { animation-delay: -.75s; }
  .tg-sym.is-collect .tg-sym-in { animation: chips-lift .28s ease-out forwards; }
  .tg-sym.tg-ghost .k-coin, .tg-sym.tg-ghost .k-chip-legend .k-coin { animation: chips-coinflip .26s linear infinite; }
  .tg-sym.tg-ghost .tg-sym-in { animation: none; }
  .tg-sym.tg-ghost[data-kind="pay"] .tg-sym-in { animation: chips-w-fly calc(.43s * var(--tg-speed, 1)) var(--e-out) both; }
  .tg-sym.tg-ghost .tg-sym-in > * { animation: none; }
  .tg-sym.is-fizzle .tg-sym-in { animation: chips-fizzle .66s ease-in forwards; }

  /* ================= Barry ================= */
  .c-host { position: absolute; left: 24px; top: 150px; width: 380px; height: 614px; z-index: 12; pointer-events: none; --n: 2; --by: 236px; }
  .c-post { position: absolute; left: 148px; bottom: 0; width: 64px; height: 248px; border: 5px solid var(--ink); border-radius: 10px 10px 4px 4px; background: linear-gradient(90deg, #B97B41, #DCA468 38%, #B97B41 78%, #8E5A2B); }
  .c-post::before { content: ''; position: absolute; left: -11px; right: -11px; top: -10px; height: 22px; border: 5px solid var(--ink); border-radius: 8px; background: linear-gradient(#E9BC85, #C68949); }
  .c-post::after { content: ''; position: absolute; left: -9px; right: -9px; top: 40px; height: 30px; border: 4px solid var(--ink); border-radius: 6px; background: repeating-linear-gradient(-58deg, #F3E3BE 0 7px, #CDB98A 7px 10px); }
  .c-post-sign { position: absolute; left: -48px; top: 104px; width: 160px; padding: 8px 4px 9px; background: #fff; border: 4px solid var(--ink); border-radius: 8px; box-shadow: inset 0 0 0 3px var(--red), 0 5px 0 rgba(20, 33, 61, .3); font: 700 20px/1.05 var(--f-ui); letter-spacing: .06em; text-align: center; color: var(--red); transform: rotate(-4deg); }

  .c-barry { position: absolute; left: 10px; bottom: var(--by); width: 340px; height: 380px; transition: bottom .5s var(--e-pop); }
  .c-barry.is-hop { animation: chips-hop .42s var(--e-io); }
  .c-barry-svg { width: 100%; height: 100%; overflow: visible; display: block; }
  .b-all { transform-origin: 167px 372px; animation: chips-b-breathe 3s ease-in-out infinite; }
  .b-head { transform-origin: 226px 186px; animation: chips-b-bob 3.6s ease-in-out infinite; transition: transform .25s; }
  .b-jaw { transform-origin: 286px 120px; transition: transform .14s; }
  .b-mouth { opacity: 0; }
  .b-wing { transform-origin: 200px 184px; transition: transform .2s, opacity .12s; }
  .b-tail { transform-origin: 92px 282px; animation: chips-b-tail 4.2s ease-in-out infinite; }
  .b-lid { transform-origin: 262px 82.5px; animation: chips-b-blink 4.8s infinite; }
  .b-pupil { animation: chips-b-eye 7.5s ease-in-out infinite; }
  .b-brow { transform-origin: 262px 83px; transition: transform .2s; }
  .b-spread { opacity: 0; transition: opacity .12s; }
  .b-spread-l, .b-spread-r { transform-origin: 134px 218px; transform: scale(.4); transition: transform .2s; }
  .b-lines, .b-zzz { opacity: 0; }

  /* s'ennuie : tape au carreau après 3 spins perdants, puis s'endort debout */
  &[data-host="idle"][data-dead="3"] .b-all { animation: chips-b-peck 1.1s ease-in-out infinite; }
  &[data-host="idle"][data-dead="3"] .b-lid { animation: none; transform: scaleY(.9); }
  &[data-host="idle"]:is([data-dead="4"], [data-dead="5"], [data-dead="6"], [data-dead="7"], [data-dead="8"], [data-dead="9"]) {
    .b-all { animation: chips-b-snore 3.4s ease-in-out infinite; }
    .b-head { animation: none; transform: rotate(17deg) translate(2px, 6px); }
    .b-lid { animation: none; transform: scaleY(2); }
    .b-brow { transform: rotate(-12deg) translateY(6px); }
    .b-zzz { opacity: 1; }
    .b-zzz text { animation: chips-b-zzz 2.4s ease-in-out infinite; }
    .b-zzz text:nth-child(2) { animation-delay: -.8s; }
    .b-zzz text:nth-child(3) { animation-delay: -1.6s; }
  }
  /* bait niveau 1 : penché, yeux écarquillés, fixe la grille */
  &[data-host="antic"] {
    .b-all { animation: chips-b-lean .5s ease-in-out infinite alternate; }
    .b-head { animation: chips-b-tremble .11s linear infinite alternate; }
    .b-lid { animation: none; transform: scaleY(.42); }
    .b-pupil { animation: none; transform: translate(4px, 1px); }
    .b-brow { transform: translateY(-9px) rotate(-6deg); }
  }
  /* bait niveau 2 : ailes écartées, plumes gonflées, bec entrouvert */
  &[data-host="antic2"] {
    .b-all { animation: chips-b-puff .14s linear infinite alternate; }
    .b-head { animation: none; transform: rotate(9deg) translate(8px, -2px); }
    .b-lid { animation: none; transform: scaleY(.3); }
    .b-pupil { animation: none; transform: translate(5px, 1px) scale(.8); transform-box: fill-box; transform-origin: center; }
    .b-brow { transform: translateY(-4px) rotate(10deg); }
    .b-jaw { transform: rotate(13deg); }
    .b-mouth { opacity: 1; }
    .b-wing { opacity: 0; }
    .b-spread { opacity: 1; }
    .b-spread-l, .b-spread-r { transform: scale(.9) rotate(-24deg); animation: chips-b-quiver .12s linear infinite alternate; }
    .b-lines { opacity: 1; animation: chips-b-lines .3s steps(2) infinite; }
  }
  &[data-host="cast"] {
    .b-wing { animation: chips-b-flick .5s var(--e-pop); }
    .b-head { animation: chips-b-nod .5s ease-out; }
    .b-lid { animation: none; transform: scaleY(.7); }
  }
  &[data-host="win"] {
    .b-all { animation: chips-b-hopy .3s ease-in-out infinite alternate; }
    .b-head { animation: none; transform: rotate(-11deg); }
    .b-jaw { transform: rotate(22deg); }
    .b-mouth { opacity: 1; }
    .b-wing { animation: chips-b-pump .24s ease-in-out infinite alternate; }
    .b-lid { animation: none; transform: scaleY(.55); }
    .b-brow { transform: translateY(-7px) rotate(-10deg); }
  }
  &[data-host="bigwin"], &[data-host="bonus"] {
    .b-all { animation: chips-b-jump .26s ease-in-out infinite alternate; }
    .b-head { animation: none; transform: rotate(-30deg) translate(-4px, 2px); }
    .b-jaw { transform: rotate(36deg); }
    .b-mouth { opacity: 1; }
    .b-wing { opacity: 0; }
    .b-spread { opacity: 1; }
    .b-spread-l, .b-spread-r { transform: scale(1); animation: chips-b-flap .2s ease-in-out infinite alternate; }
    .b-lid { animation: none; transform: scaleY(.28); }
    .b-pupil { animation: none; transform: scale(.7); transform-box: fill-box; transform-origin: center; }
    .b-brow { transform: translateY(-12px) rotate(-14deg); }
    .b-lines { opacity: 1; animation: chips-b-lines .24s steps(2) infinite; }
  }
  &[data-host="bonus"] .b-head { transform: rotate(-16deg); }
  &[data-host="bonus"] .b-jaw { transform: rotate(20deg); }
  &[data-host="sad"] {
    .b-all { animation: none; }
    .b-head { animation: chips-b-no 1.5s ease-in-out; transform: rotate(9deg) translateY(5px); }
    .b-wing { animation: chips-b-shrug 1.2s ease-in-out; }
    .b-lid { animation: none; transform: scaleY(1.35); }
    .b-brow { transform: translateY(4px) rotate(-16deg); }
  }

  .c-say { position: absolute; left: 4px; bottom: calc(var(--by) + 268px); width: max-content; max-width: 200px; padding: 5px 14px 7px; border-radius: 16px; background: #fff; border: 4px solid var(--ink); box-shadow: 0 5px 0 rgba(20, 33, 61, .3); font: 400 23px/1.1 var(--f-sign); color: var(--ink); text-align: center; transform-origin: 100% 100%; transform: scale(0) rotate(-12deg); transition: transform .22s var(--e-pop), bottom .5s var(--e-pop); }
  .c-say::after { content: ''; position: absolute; right: 16px; bottom: -13px; width: 18px; height: 18px; background: #fff; border-right: 4px solid var(--ink); border-bottom: 4px solid var(--ink); transform: rotate(45deg) skew(14deg, 14deg); }
  .c-say[data-on="1"] { transform: scale(1) rotate(-5deg); }

  /* la pile du bonus B (cumulé) */
  .c-stack, .c-stack-sign { display: none; }
  &[data-mode="fsB"] {
    .c-post { display: none; }
    .c-stack { display: block; }
    .c-stack-sign { display: flex; }
    .c-host { --by: calc(min(var(--n), var(--cap)) * var(--t) + 4px); }
  }
  .c-stack { position: absolute; left: 105px; bottom: 0; width: 150px; height: 0; }
  .c-stack::before { content: ''; position: absolute; left: -22px; right: -22px; bottom: -8px; height: 26px; border-radius: 50%; background: rgba(0, 0, 0, .35); }
  .c-disc { position: absolute; left: var(--j, 0px); bottom: calc(var(--i) * var(--t)); width: 100%; height: calc(var(--t) + 3px); border: 3px solid var(--ink); border-radius: 7px; background: repeating-linear-gradient(90deg, var(--c1) 0 20px, var(--c2) 20px 33px); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .22); }
  .c-disc:nth-child(n+29) { display: none; }
  .c-disc.is-new { animation: chips-disc .36s var(--e-pop); }
  .c-disc-common { --c1: #2E7BD6; --c2: #fff; }
  .c-disc-rare { --c1: #E5352B; --c2: #fff; }
  .c-disc-epic { --c1: #1B1B26; --c2: #F2C14E; }
  .c-disc-legend { --c1: #7B3FE4; --c2: #FFD75A; }
  .c-stack-top { position: absolute; left: -3px; width: calc(100% + 6px); height: 28px; bottom: calc(min(var(--n), var(--cap)) * var(--t) - 12px); border-radius: 50%; border: 3px solid var(--ink); background: radial-gradient(ellipse, #fff 0 34%, #2E7BD6 35% 62%, #fff 63% 74%, #2E7BD6 75%); transition: bottom .4s var(--e-pop); }
  .c-stack-sign { position: absolute; left: 262px; bottom: max(40px, calc(min(var(--n), var(--cap)) * var(--t) - 46px)); min-width: 112px; padding: 5px 12px 6px; flex-direction: column; align-items: center; border-radius: 12px; background: var(--red); border: 4px solid var(--ink); box-shadow: inset 0 0 0 3px #FFE27A, 0 5px 0 rgba(0, 0, 0, .35); transition: bottom .4s var(--e-pop); z-index: 2; }
  .c-stack-sign span { font: 700 14px/1.2 var(--f-ui); letter-spacing: .08em; color: #FFE27A; }
  .c-stack-sign b { font: 400 42px/1 var(--f-sign); color: #fff; text-shadow: 0 3px 0 var(--ink); white-space: nowrap; }
  .c-stack-sign.is-hit { animation: chips-hit .34s var(--e-out); }
  &[data-gm-tier="3"] .c-stack-sign, &[data-gm-tier="4"] .c-stack-sign, &[data-gm-tier="5"] .c-stack-sign { background: #7B3FE4; }

  /* ================= compteur du spin : THE TAKE ================= */
  .c-tally { position: absolute; left: 1212px; top: 148px; width: 364px; height: 148px; z-index: 20; padding: 20px 24px 0; border-radius: 16px; background: var(--cream); border: 5px solid var(--ink); box-shadow: inset 0 0 0 4px var(--red), inset 0 0 0 8px var(--cream), 0 8px 0 rgba(20, 33, 61, .3); }
  &[data-haswin="0"] .c-tally-amt { color: #A9B2C6; }
  .c-tally-lab { display: block; font: 700 20px/1 var(--f-ui); letter-spacing: .08em; color: var(--mute); }
  .c-tally-amt { display: block; margin-top: 8px; font: 700 60px/1 var(--f-ui); font-variant-numeric: tabular-nums; white-space: nowrap; transform-origin: 0 60%; }
  .c-tally-amt.is-hit { animation: chips-hit .3s var(--e-out); }
  &[data-phase="win"] .c-tally-amt.is-hit { animation: none; }   /* pendant un gain, il ne bouge qu'à l'arrivée des autocollants */
  .c-tally-amt.is-in { animation: chips-hit .32s var(--e-out); }
  .c-tally-amt.is-multiplied { animation: chips-multiplied .7s var(--e-out); }
  .c-tally-chip { position: absolute; right: -16px; top: -34px; width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; border: 4px solid var(--ink); background: radial-gradient(circle, #fff 0 58%, transparent 59%), repeating-conic-gradient(#fff 0 22.5deg, var(--red) 22.5deg 45deg); box-shadow: 0 0 0 4px #fff, 0 7px 0 4px rgba(20, 33, 61, .3); transform: scale(0) rotate(-40deg); transition: transform .3s var(--e-pop); }
  .c-tally-chip i { font: 400 30px/1 var(--f-sign); font-style: normal; color: var(--ink); white-space: nowrap; }
  &[data-msum="1"] .c-tally-chip { transform: scale(1) rotate(9deg); }
  .c-tally-chip.is-hit { animation: chips-chiphit .34s var(--e-pop); }
  .c-tally-note { position: absolute; right: -14px; top: 0; padding: 0 10px 2px; border: 4px solid var(--red); border-radius: 8px; background: rgba(255, 255, 255, .92); font: 400 26px/1.2 var(--f-sign); font-style: normal; color: var(--red); transform: rotate(-14deg) scale(0); }
  &[data-eaten="1"] .c-tally-chip { transform: scale(0) rotate(60deg); transition: transform .22s ease-in; }
  &[data-eaten="1"] .c-tally-note { animation: chips-stamp .34s var(--e-pop) forwards; }

  .c-swoop { position: absolute; left: 1470px; top: 96px; width: 168px; height: 96px; z-index: 30; pointer-events: none; opacity: 0; }
  .c-swoop svg { width: 100%; height: 100%; overflow: visible; transform: scaleX(-1); }
  .c-swoop.is-go { animation: chips-swoop .8s var(--e-io); }
  .c-swoop.is-go .c-fly-wings { transform-origin: 70px 52px; animation: chips-flapy .12s ease-in-out infinite alternate; }

  /* ================= colonne de droite : bonus, features, HUD de free spins ================= */
  .c-side { position: absolute; left: 1212px; top: 324px; width: 364px; z-index: 20; display: flex; flex-direction: column; gap: 12px; }
  &[data-mode="fsA"] .c-side, &[data-mode="fsB"] .c-side { display: none; }
  .c-bonus { position: relative; height: 112px; border-radius: 12px; border: 5px solid var(--ink); background: var(--slate); box-shadow: inset 0 0 0 7px #B97B41, inset 0 0 0 10px var(--ink), 0 8px 0 rgba(20, 33, 61, .3); color: var(--chalk); display: flex; align-items: center; justify-content: center; gap: 12px; transition: transform .1s; }
  .c-bonus .c-script { position: absolute; left: 28px; top: 12px; font-size: 27px; color: #FFE27A; transform: rotate(-7deg); }
  .c-bonus b { font: 400 50px/1 var(--f-sign); letter-spacing: .05em; margin-top: 12px; }
  .c-bonus small { font: 700 17px/1 var(--f-ui); letter-spacing: .08em; color: rgba(247, 243, 232, .7); margin-top: 20px; }
  .c-bonus:active { transform: translateY(4px); }
  .c-bonus:hover b { color: #FFE27A; }
  .c-feat { position: relative; height: 84px; padding: 0 12px 0 8px; display: flex; align-items: center; gap: 8px; text-align: left; border-radius: 16px; background: #fff; border: 5px solid var(--ink); box-shadow: inset 0 0 0 3px #D7DEEA, 0 7px 0 rgba(20, 33, 61, .3); transition: transform .1s, background .2s; }
  .c-feat:active { transform: translateY(4px); }
  .c-feat-ico { flex: none; width: 64px; height: 64px; }
  .c-feat-ico svg { width: 100%; height: 100%; overflow: visible; }
  .c-feat-ico .k-rays, .c-feat-ico .k-sparks { display: none; }
  .c-feat-txt { display: flex; flex-direction: column; min-width: 0; }
  .c-feat-txt b { font: 400 25px/1.05 var(--f-sign); white-space: nowrap; }
  .c-feat-txt small { font: 700 17px/1.3 var(--f-ui); letter-spacing: .04em; color: var(--mute); text-transform: uppercase; }
  .c-feat-txt i { font-style: normal; color: var(--ink); }
  .c-feat em { position: absolute; right: -8px; top: -12px; padding: 1px 8px 4px; border-radius: 8px; background: var(--red); border: 4px solid var(--ink); font: 400 20px/1.1 var(--f-sign); font-style: normal; color: #fff; transform: rotate(8deg) scale(0); transition: transform .25s var(--e-pop); }
  &[data-feature="f1"] .c-feat[data-item="f1"], &[data-feature="f2"] .c-feat[data-item="f2"] { background: var(--yel); box-shadow: inset 0 0 0 3px #fff, 0 7px 0 rgba(20, 33, 61, .3); }
  &[data-feature="f1"] .c-feat[data-item="f1"] em, &[data-feature="f2"] .c-feat[data-item="f2"] em { transform: rotate(8deg) scale(1); }

  .c-fs { position: absolute; left: 1212px; top: 324px; width: 364px; z-index: 20; display: none; flex-direction: column; gap: 12px; }
  &[data-mode="fsA"] .c-fs, &[data-mode="fsB"] .c-fs { display: flex; }
  .c-fs-title { position: relative; height: 88px; border-radius: 16px; background: var(--red); border: 5px solid var(--ink); box-shadow: inset 0 0 0 4px var(--cream), 0 7px 0 rgba(20, 33, 61, .32); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; }
  .c-fs-title .c-script { position: absolute; left: 20px; top: 2px; font-size: 26px; color: #FFE27A; transform: rotate(-5deg); }
  .c-fs-title b { font: 400 37px/1 var(--f-sign); color: var(--cream); text-shadow: 0 3px 0 var(--ink); white-space: nowrap; }
  &[data-mode="fsB"] .c-fs-title { background: #2B3A8C; }
  .c-fs-cell { position: relative; height: 92px; padding: 8px 20px 0; border-radius: 12px; background: var(--ink); border: 5px solid var(--ink); box-shadow: inset 0 0 0 3px #32437A, 0 7px 0 rgba(20, 33, 61, .3); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .c-fs-cell::after { content: ''; position: absolute; left: 4px; right: 4px; top: 55%; height: 4px; background: rgba(0, 0, 0, .5); }
  .c-fs-cell span { font: 700 19px/1 var(--f-ui); letter-spacing: .08em; color: #9AA8CC; white-space: nowrap; }
  .c-fs-cell b { font: 700 52px/1 var(--f-ui); color: var(--cream); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .c-fs-left b { font: 400 58px/1 var(--f-sign); }
  .c-fs-left b.is-hit { animation: chips-flip .4s var(--e-out); }
  .c-fs-total b { font-size: 44px; }
  .c-fs-rule { display: none; height: 60px; padding: 0 16px 0 8px; align-items: center; gap: 8px; border-radius: 12px; background: var(--cream); border: 4px solid var(--ink); font: 700 20px/1.1 var(--f-ui); letter-spacing: .03em; }
  .c-fs-rule i { flex: none; width: 44px; height: 44px; }
  .c-fs-rule svg { width: 100%; height: 100%; }
  &[data-mode="fsA"] .c-fs-rule-a, &[data-mode="fsB"] .c-fs-rule-b { display: flex; }
  .c-fs-rule-a i { position: relative; }
  .c-fs-rule-a i::after { content: ''; position: absolute; right: -6px; top: -6px; width: 26px; height: 26px; border-radius: 50%; background: var(--cream); border: 3px solid var(--ink); border-right-color: transparent; border-top-color: transparent; }

  /* ================= barre du bas, sur les planches ================= */
  .c-plate, .c-flap, .c-tag, .c-minis, .c-cost, .c-spin { position: absolute; z-index: 20; }
  .c-plate { left: 24px; top: 780px; width: 248px; height: 100px; padding: 12px 20px 0; border-radius: 12px; border: 5px solid var(--ink); background: radial-gradient(circle at 12px 12px, var(--ink) 0 3px, transparent 4px), radial-gradient(circle at calc(100% - 12px) 12px, var(--ink) 0 3px, transparent 4px), var(--cream); box-shadow: 0 7px 0 rgba(20, 33, 61, .3); }
  .c-plate span, .c-flap span, .c-tag span { display: block; font: 700 18px/1 var(--f-ui); letter-spacing: .08em; }
  .c-plate span { color: var(--mute); padding-left: 12px; }
  .c-plate b { display: block; margin-top: 4px; font: 700 44px/1 var(--f-ui); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .c-flap { left: 288px; top: 780px; width: 332px; height: 100px; padding: 12px 20px 0; border-radius: 12px; background: var(--ink); border: 5px solid var(--ink); box-shadow: inset 0 0 0 3px #32437A, 0 7px 0 rgba(20, 33, 61, .3); overflow: hidden; }
  .c-flap::after { content: ''; position: absolute; left: 4px; right: 4px; top: 62%; height: 4px; background: rgba(0, 0, 0, .55); }
  .c-flap span { color: #9AA8CC; }
  .c-flap b { display: block; margin-top: 4px; font: 700 54px/1 var(--f-ui); color: var(--cream); font-variant-numeric: tabular-nums; white-space: nowrap; transform-origin: 50% 60%; }
  .c-flap b.is-hit { animation: chips-flip .42s var(--e-out); color: var(--yel); }
  .c-tag { left: 644px; top: 784px; width: 296px; height: 92px; padding: 0 12px 0 36px; display: flex; align-items: center; justify-content: space-between; border-radius: 12px; background: #fff; border: 5px solid var(--ink); box-shadow: inset 0 0 0 3px var(--red), 0 7px 0 rgba(20, 33, 61, .3); transform: rotate(-1.6deg); }
  .c-tag::before { content: ''; position: absolute; left: 11px; top: 50%; width: 15px; height: 15px; margin-top: -10px; border-radius: 50%; background: #C68949; border: 4px solid var(--ink); }
  .c-tag::after { content: ''; position: absolute; left: -26px; top: 6px; width: 40px; height: 34px; border: 3.5px solid var(--ink); border-right: 0; border-bottom: 0; border-radius: 26px 0 0 0; }
  .c-tag > div { text-align: center; min-width: 0; }
  .c-tag span { color: var(--mute); }
  .c-tag b { display: block; margin-top: 4px; font: 700 40px/1 var(--f-ui); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .c-tag b.is-hit { animation: chips-hit .26s var(--e-out); }
  .c-tag button { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--yel); border: 4px solid var(--ink); box-shadow: 0 5px 0 var(--ink); font: 400 36px/1 var(--f-sign); color: var(--ink); padding-bottom: 4px; transition: transform .08s, box-shadow .08s; }
  .c-tag button:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
  .c-minis { left: 964px; top: 804px; display: flex; gap: 8px; }
  .c-minis button { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 4px solid var(--ink); box-shadow: 0 5px 0 var(--ink); color: var(--ink); transition: transform .08s, box-shadow .08s, background .2s; }
  .c-minis button:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
  .c-minis svg { width: 28px; height: 28px; }
  .c-ico-on { display: none; }
  &[data-sound="1"] .c-ico-on { display: inline; }
  &[data-sound="1"] .c-ico-off { display: none; }
  &[data-sound="1"] .c-minis [data-action="sound"] { background: #9CE3DC; }
  &[data-turbo="1"] .c-minis [data-action="turbo"] { background: var(--yel); }
  &[data-auto="1"] .c-minis [data-action="auto"] { background: var(--red); color: #fff; }
  &[data-auto="1"] .c-minis [data-action="auto"] svg { animation: chips-turn 1.6s linear infinite; }
  .c-cost { left: 1240px; top: 668px; width: 148px; height: 148px; display: grid; place-content: center; text-align: center; background: var(--ink); clip-path: var(--chips-star); transform: scale(0) rotate(-30deg); transition: transform .3s var(--e-pop); pointer-events: none; }
  .c-cost::before { content: ''; position: absolute; inset: 4px; background: var(--yel); clip-path: var(--chips-star); z-index: -1; }
  .c-cost span { font: 700 15px/1 var(--f-ui); letter-spacing: .06em; color: var(--ink); }
  .c-cost b { font: 700 31px/1.05 var(--f-ui); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .c-cost b.is-hit { animation: chips-hit .3s var(--e-out); }
  &[data-feature="f1"] .c-cost, &[data-feature="f2"] .c-cost { transform: scale(1) rotate(9deg); }
  &[data-mode="fsA"] .c-cost, &[data-mode="fsB"] .c-cost { transform: scale(0); }

  .c-spin { left: 1408px; top: 720px; width: 152px; height: 152px; border-radius: 50%; color: #fff; display: grid; place-content: center; text-align: center; background: var(--red); border: 5px solid var(--ink); box-shadow: 0 0 0 7px var(--yel), 0 0 0 12px var(--ink), 0 11px 0 12px rgba(20, 33, 61, .34); transition: transform .08s, box-shadow .08s; }
  .c-spin::before { content: ''; position: absolute; left: 22%; right: 22%; top: 9%; height: 26%; border-radius: 50%; background: rgba(255, 255, 255, .26); }
  .c-spin b { position: relative; font: 400 43px/1 var(--f-sign); letter-spacing: .03em; text-shadow: 0 4px 0 var(--red-d); }
  .c-spin small { display: none; position: relative; font: 700 22px/1 var(--f-ui); letter-spacing: .08em; color: #FFE27A; }
  .c-spin:active { transform: translateY(7px); box-shadow: 0 0 0 7px var(--yel), 0 0 0 12px var(--ink), 0 4px 0 12px rgba(20, 33, 61, .34); }
  .c-spin-ring { position: absolute; inset: -8px; border-radius: 50%; border: 5px dashed transparent; pointer-events: none; }
  &[data-busy="1"] .c-spin { background: #B8322A; }
  &[data-busy="1"] .c-spin-ring { border-color: var(--red); animation: chips-turn 1.3s linear infinite; }
  &[data-auto="1"] .c-spin small { display: block; }
  &[data-auto="1"] .c-spin b { font-size: 34px; }
  &[data-feature="f1"] .c-spin { box-shadow: 0 0 0 7px #2E7BD6, 0 0 0 12px var(--ink), 0 11px 0 12px rgba(20, 33, 61, .34); }
  &[data-feature="f2"] .c-spin { box-shadow: 0 0 0 7px #7B3FE4, 0 0 0 12px var(--ink), 0 11px 0 12px rgba(20, 33, 61, .34); }

  /* ================= retrigger, volet ================= */
  .c-toast { position: absolute; left: 50%; top: 46%; width: 380px; height: 380px; margin: -190px 0 0 -190px; z-index: 55; display: grid; place-content: center; text-align: center; background: var(--ink); clip-path: var(--chips-star); transform: scale(0) rotate(-40deg); transition: transform .3s var(--e-pop); pointer-events: none; }
  .c-toast::before { content: ''; position: absolute; inset: 9px; background: var(--red); clip-path: var(--chips-star); z-index: -1; }
  .c-toast b { font: 400 128px/.95 var(--f-sign); color: var(--yel); text-shadow: 0 6px 0 var(--ink); }
  .c-toast span { font: 400 38px/1 var(--f-sign); color: #fff; letter-spacing: .03em; }
  &[data-retrigger="1"] .c-toast { transform: scale(1) rotate(-7deg); }

  .c-wipe { position: absolute; inset: 0; z-index: 58; overflow: hidden; pointer-events: none; visibility: hidden; }
  &[data-transition] .c-wipe { visibility: visible; }
  .c-wipe-in { position: absolute; left: 0; top: -4%; width: 100%; height: 108%; background: #FFFDF6; transform: translateX(-140%); }
  .c-wipe-in::before, .c-wipe-in::after { content: ''; position: absolute; top: 0; bottom: 0; width: 60px; }
  .c-wipe-in::before { right: 100%; background: radial-gradient(circle at 60px 35px, #FFFDF6 34px, transparent 35px) 0 0 / 60px 70px; }
  .c-wipe-in::after { left: 100%; background: radial-gradient(circle at 0 35px, #FFFDF6 34px, transparent 35px) 0 0 / 60px 70px; }
  &[data-transition] .c-wipe-in { animation: chips-wipe 1.3s var(--e-io) both; }
  &[data-turbo="1"][data-transition] .c-wipe-in { animation-duration: .715s; }
  .c-wipe-gull { position: absolute; width: 170px; height: 98px; transform: scale(var(--s)) rotate(var(--r)); }
  .c-wipe-gull svg { width: 100%; height: 100%; overflow: visible; }
  &[data-transition] .c-wipe .c-fly-wings { transform-origin: 70px 52px; animation: chips-flapy .14s ease-in-out infinite alternate; animation-delay: calc(var(--k) * -.05s); }

  /* ================= pop-ins ================= */
  [data-popup] { background: rgba(20, 33, 61, .62); }
  .c-btn { min-width: 176px; height: 64px; padding: 0 28px 4px; border-radius: 16px; border: 5px solid var(--ink); box-shadow: 0 7px 0 var(--ink); font: 400 29px/1 var(--f-sign); letter-spacing: .04em; transition: transform .08s, box-shadow .08s; }
  .c-btn:active { transform: translateY(5px); box-shadow: 0 2px 0 var(--ink); }
  .c-btn-red { background: var(--red); color: #fff; text-shadow: 0 3px 0 var(--red-d); }
  .c-btn-ghost { background: #fff; color: var(--ink); }

  /* menu bonus : l'ardoise de la friterie */
  .c-board { position: relative; width: 1100px; padding: 16px; border-radius: 16px; background: #B97B41; border: 5px solid var(--ink); box-shadow: 0 16px 0 rgba(10, 16, 32, .5); transform-origin: 50% -110px; }
  .c-board-rope { position: absolute; left: 50%; top: -112px; width: 300px; height: 112px; margin-left: -150px; border: 6px solid var(--ink); border-bottom: 0; border-radius: 150px 150px 0 0 / 112px 112px 0 0; }
  [data-popup="buy"][data-open="true"] .c-board { animation: chips-board .7s var(--e-out); }
  [data-popup="buy"][data-open="closing"] .c-board { transform: translateY(-130%) rotate(4deg); transition: transform .28s ease-in; }
  .c-board-in { border-radius: 8px; border: 4px solid var(--ink); padding: 16px 28px 24px; display: flex; flex-direction: column; gap: 12px; color: var(--chalk); background: var(--slate); }
  .c-board-head { display: flex; align-items: baseline; justify-content: center; gap: 16px; }
  .c-board-head .c-script { font-size: 52px; line-height: 1; color: #FFE27A; transform: rotate(-7deg) translateY(-8px); }
  .c-board-head h2 { margin: 0; font: 400 70px/1 var(--f-sign); letter-spacing: .07em; text-decoration: underline wavy rgba(247, 243, 232, .5) 3px; text-underline-offset: 11px; }
  .c-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .c-dish { position: relative; display: grid; grid-template-columns: 138px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 168px; padding: 12px 16px 12px 12px; text-align: left; color: var(--chalk); border-radius: 12px; border: 3px dashed rgba(247, 243, 232, .55); transition: background .15s, border-color .15s, transform .1s; }
  .c-dish:hover { background: rgba(255, 255, 255, .07); border-color: #FFE27A; }
  .c-dish:active { transform: scale(.985); }
  .c-dish-art { display: flex; justify-content: center; }
  .c-dish-art i { flex: none; width: 64px; height: 64px; margin: 0 -19px; }
  .c-dish-art i:nth-child(even) { transform: translateY(-12px) rotate(8deg); }
  .c-dish-art i:nth-child(odd) { transform: rotate(-7deg); }
  .c-dish-art svg { width: 100%; height: 100%; overflow: visible; }
  .c-dish-art .k-burst, .c-dish-art .k-rays { animation: none; }
  .c-dish-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
  .c-dish-txt b { font: 400 35px/1 var(--f-sign); letter-spacing: .01em; white-space: nowrap; }
  .c-dish-txt > span { font: 500 21px/1.18 var(--f-ui); color: rgba(247, 243, 232, .72); }
  .c-dish-fs { font: 700 19px/1 var(--f-ui); font-style: normal; letter-spacing: .06em; color: rgba(247, 243, 232, .7); }
  .c-dish-fs i { font-style: normal; }
  .c-dish-price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
  .c-dish-price i { font: 400 46px/1 var(--f-sign); font-style: normal; color: #FFE27A; }
  .c-dish-price small { font: 600 22px/1 var(--f-ui); font-variant-numeric: tabular-nums; color: var(--chalk); opacity: .86; white-space: nowrap; }
  .c-dish-on { display: none; position: absolute; right: 12px; top: -16px; padding: 2px 12px 4px; border-radius: 8px; background: #FFE27A; color: var(--ink); font: 700 17px/1.1 var(--f-ui); font-style: normal; letter-spacing: .08em; text-transform: uppercase; transform: rotate(2deg); }
  .c-board-sub { display: flex; align-items: center; gap: 12px; margin-top: 2px; }
  .c-board-sub b { font: 400 32px/1 var(--f-sign); letter-spacing: .1em; color: var(--chalk); }
  .c-board-sub i { flex: 1; height: 0; border-top: 3px dotted rgba(247, 243, 232, .5); }
  .c-board-sub small { font: 500 20px/1 var(--f-ui); color: rgba(247, 243, 232, .72); }
  .c-menu-sides .c-dish { min-height: 116px; grid-template-columns: 84px minmax(0, 1fr) auto; }
  .c-menu-sides .c-dish-art i { width: 76px; height: 76px; margin: 0; transform: rotate(-8deg); }
  .c-menu-sides .c-dish-txt b { font-size: 30px; }
  .c-menu-sides .c-dish-txt > span { font-size: 19px; }
  .c-menu-sides .c-dish-price i { font-size: 38px; }
  &[data-feature="f1"] .c-dish[data-item="f1"], &[data-feature="f2"] .c-dish[data-item="f2"] { border-style: solid; border-color: #FFE27A; background: rgba(255, 226, 122, .12); }
  &[data-feature="f1"] .c-dish[data-item="f1"] .c-dish-on, &[data-feature="f2"] .c-dish[data-item="f2"] .c-dish-on { display: block; }
  .c-board-x { position: absolute; right: -20px; top: -24px; padding: 4px 20px 8px; border-radius: 12px; background: var(--cream); border: 5px solid var(--ink); box-shadow: 0 6px 0 var(--ink); font: 400 25px/1 var(--f-sign); color: var(--ink); transform: rotate(7deg); transition: transform .08s, box-shadow .08s; }
  .c-board-x:active { transform: rotate(7deg) translateY(4px); box-shadow: 0 2px 0 var(--ink); }

  /* confirmation : ticket de commande */
  [data-popup="confirm"] { z-index: 62; background: rgba(20, 33, 61, .5); }
  .c-ticket { position: relative; width: 540px; padding: 28px 40px 36px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; background: #FFFDF4; color: var(--ink); transform: rotate(-2deg); filter: drop-shadow(0 14px 0 rgba(10, 16, 32, .45)); }
  .c-ticket::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 18px; background: linear-gradient(135deg, #FFFDF4 25%, transparent 25%) -18px 0 / 36px 36px repeat-x, linear-gradient(225deg, #FFFDF4 25%, transparent 25%) -18px 0 / 36px 36px repeat-x; }
  .c-ticket::before { content: ''; position: absolute; right: 44px; bottom: 124px; width: 96px; height: 96px; border-radius: 46% 54% 50% 50% / 52% 46% 54% 48%; background: rgba(214, 160, 70, .13); pointer-events: none; }
  [data-popup="confirm"][data-open="true"] .c-ticket { animation: chips-print .5s var(--e-out); }
  [data-popup="confirm"][data-open="closing"] .c-ticket { transform: translateY(120%) rotate(8deg); transition: transform .26s ease-in; }
  .c-ticket-head { width: 100%; display: flex; align-items: baseline; justify-content: space-between; }
  .c-ticket-head b { font: 400 34px/1 var(--f-sign); letter-spacing: .06em; }
  .c-ticket-head span { font: 700 24px/1 var(--f-ui); letter-spacing: .08em; color: #5B6785; }
  .c-ticket-line { width: 100%; height: 0; border-top: 4px dashed #B5BED0; }
  .c-ticket p { margin: 0; }
  .c-ticket-item { font: 400 50px/1.05 var(--f-sign); color: var(--red); padding-top: 8px; }
  .c-ticket-sub { font: 600 22px/1 var(--f-ui); letter-spacing: .04em; color: var(--mute); }
  .c-ticket-cost { display: flex; align-items: center; gap: 12px; }
  .c-ticket-cost b { font: 700 70px/1 var(--f-ui); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .c-ticket-cost span { padding: 4px 12px 4px; border-radius: 12px; background: var(--yel); border: 4px solid var(--ink); font: 400 27px/1 var(--f-sign); transform: rotate(6deg); }
  .c-ticket-note { display: none; font: 500 20px/1.2 var(--f-ui); color: #5B6785; padding-bottom: 4px; }
  [data-popup="confirm"]:is([data-item="f1"], [data-item="f2"]) .c-ticket-note { display: block; }
  .c-ticket-btns { display: flex; gap: 16px; padding-top: 12px; }

  /* entrée et sortie de bonus : cartes postales */
  .c-card { position: relative; width: 920px; height: 568px; padding: 0 68px 32px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; text-align: center; background: #FFFDF4; border: 5px solid var(--ink); border-radius: 12px; box-shadow: 0 18px 0 rgba(10, 16, 32, .5); transform: rotate(-2.5deg); overflow: hidden; }
  [data-popup][data-open="true"] .c-card { animation: chips-card .62s var(--e-out); }
  [data-popup][data-open="closing"] .c-card { transform: translate(-130%, -20%) rotate(-18deg); transition: transform .28s ease-in; }
  .c-card > * { position: relative; }
  .c-card-pic { position: absolute; inset: 14px; border-radius: 4px; border: 4px solid var(--ink); overflow: hidden; background: linear-gradient(#FF8145 0%, #FFB36B 34%, #FFE3AE 57%, #E8824A 57.5%, #BF5630 100%); }
  .c-card-sun { position: absolute; left: 50%; top: 57%; width: 420px; height: 420px; margin: -210px 0 0 -210px; border-radius: 50%; background: radial-gradient(circle, #FFF3C4 0 26%, transparent 27%), repeating-conic-gradient(rgba(255, 243, 196, .6) 0 8deg, transparent 8deg 20deg); -webkit-mask: linear-gradient(#000 50%, transparent 50%); mask: linear-gradient(#000 50%, transparent 50%); animation: chips-turn 40s linear infinite; }
  .c-card-bulbs { position: absolute; left: 20px; right: 20px; top: 16px; display: none; justify-content: space-between; }
  .c-card-bulbs i { width: 14px; height: 14px; border-radius: 50%; background: #FFE27A; box-shadow: 0 0 0 4px rgba(255, 226, 122, .3); }
  [data-popup][data-mode="fsB"] .c-card-pic { background: linear-gradient(#0A1230 0%, #1B2A5E 34%, #3A5596 57%, #16346A 57.5%, #0B1C40 100%); }
  [data-popup][data-mode="fsB"] .c-card-sun { background: radial-gradient(circle, #FFF6CC 0 15%, rgba(255, 246, 204, .16) 16% 24%, transparent 25%); -webkit-mask: none; mask: none; top: 30%; left: 16%; animation: none; }
  [data-popup][data-mode="fsB"] .c-card-bulbs { display: flex; }
  .c-card-stamp { position: absolute; right: 36px; top: 32px; width: 92px; transform: rotate(6deg); }
  .c-card-mark { position: absolute; right: 104px; top: 46px; width: 236px; transform: rotate(-8deg); }
  .c-card-stamp svg, .c-card-mark svg { display: block; width: 100%; height: auto; }
  [data-popup][data-mode="fsB"] .c-card-mark { filter: invert(1) brightness(1.6); }
  .c-card-hi { font-size: 58px; line-height: 1; color: #fff; text-shadow: 0 3px 0 var(--ink), 3px 0 0 var(--ink), -3px 0 0 var(--ink), 0 -3px 0 var(--ink); transform: rotate(-4deg); align-self: flex-start; margin-left: 30px; }
  .c-card-name { margin: 0; font: 400 108px/1 var(--f-sign); letter-spacing: .02em; color: var(--yel); -webkit-text-stroke: 9px var(--ink); paint-order: stroke fill; text-shadow: 0 7px 0 var(--red), 0 13px 0 var(--ink); white-space: nowrap; }
  .c-card p { margin: 0; }
  .c-card-count { margin-top: 12px !important; padding: 4px 28px 8px; border-radius: 12px; background: var(--red); border: 5px solid var(--ink); box-shadow: 0 5px 0 var(--ink); font: 400 38px/1 var(--f-sign); color: #fff; transform: rotate(1.5deg); }
  .c-card-count b { font-weight: 400; color: #FFE27A; }
  .c-card-desc { max-width: 640px; padding: 4px 16px 8px; border-radius: 12px; background: rgba(255, 253, 244, .94); border: 3px solid var(--ink); font: 600 24px/1.2 var(--f-ui); }
  .c-card .c-btn { margin-top: 4px; }
  .c-card-out .c-card-name { font-size: 70px; -webkit-text-stroke-width: 7px; text-shadow: 0 5px 0 var(--red), 0 10px 0 var(--ink); }
  .c-card-lab { margin-top: 8px !important; font: 700 26px/1 var(--f-ui); letter-spacing: .12em; color: #fff; text-shadow: 0 2px 0 var(--ink), 2px 0 0 var(--ink), -2px 0 0 var(--ink), 0 -2px 0 var(--ink); }
  .c-card-total { position: relative; padding: 2px 32px 4px; border-radius: 12px; background: var(--ink); border: 5px solid var(--ink); box-shadow: inset 0 0 0 3px #32437A, 0 6px 0 rgba(0, 0, 0, .4); }
  .c-card-total::after { content: ''; position: absolute; left: 4px; right: 4px; top: 60%; height: 4px; background: rgba(0, 0, 0, .55); }
  .c-card-total b { font: 700 92px/1.1 var(--f-ui); color: var(--cream); font-variant-numeric: tabular-nums; white-space: nowrap; }

  /* gros gain */
  [data-popup="bigwin"] { background: rgba(20, 33, 61, .5); }
  .c-big { position: relative; display: flex; flex-direction: column; align-items: center; gap: 20px; }
  .c-big-rays { position: absolute; left: 50%; top: 50%; width: 1700px; height: 1700px; margin: -850px 0 0 -850px; border-radius: 50%; background: repeating-conic-gradient(rgba(255, 199, 44, .46) 0 9deg, rgba(255, 241, 208, .12) 9deg 18deg); -webkit-mask: radial-gradient(circle, #000 12%, transparent 56%); mask: radial-gradient(circle, #000 12%, transparent 56%); animation: chips-turn 30s linear infinite; }
  .c-big-ribbon { position: relative; padding: 8px 64px 20px; border-radius: 16px; background: var(--red); border: 6px solid var(--ink); box-shadow: inset 0 0 0 5px var(--cream), 0 12px 0 var(--ink); transform: rotate(-3deg); }
  .c-big-ribbon h2 { margin: 0; font: 400 118px/1 var(--f-sign); letter-spacing: .02em; color: var(--yel); -webkit-text-stroke: 9px var(--ink); paint-order: stroke fill; text-shadow: 0 8px 0 var(--ink); white-space: nowrap; }
  [data-popup="bigwin"][data-open="true"] .c-big-ribbon { animation: chips-slam .55s var(--e-pop); }
  .c-big-amt { position: relative; padding: 2px 44px 8px; border-radius: 16px; background: var(--ink); border: 6px solid var(--ink); box-shadow: inset 0 0 0 4px #32437A, 0 10px 0 rgba(10, 16, 32, .5); transform: rotate(1deg); }
  .c-big-amt::after { content: ''; position: absolute; left: 8px; right: 8px; top: 60%; height: 4px; background: rgba(0, 0, 0, .55); }
  .c-big-amt b { font: 700 112px/1.1 var(--f-ui); color: var(--cream); font-variant-numeric: tabular-nums; white-space: nowrap; }
  [data-popup="bigwin"][data-tier="mega"] .c-big-ribbon { background: var(--teal); }
  [data-popup="bigwin"][data-tier="mega"] .c-big-ribbon h2 { font-size: 126px; }
  [data-popup="bigwin"][data-tier="epic"] .c-big-ribbon { background: #7B3FE4; box-shadow: inset 0 0 0 5px #FFD75A, 0 12px 0 var(--ink); }
  [data-popup="bigwin"][data-tier="epic"] .c-big-ribbon h2 { font-size: 136px; color: #FFD75A; }

  /* règles : plaque émaillée */
  .c-rules { width: 1128px; padding: 24px 44px 28px; display: flex; flex-direction: column; align-items: center; gap: 12px; border-radius: 24px; background: var(--cream); border: 6px solid var(--ink); box-shadow: inset 0 0 0 5px var(--red), inset 0 0 0 10px var(--cream), 0 16px 0 rgba(10, 16, 32, .5); }
  [data-popup="info"][data-open="true"] .c-rules, [data-popup="auto"][data-open="true"] .c-auto { animation: chips-slam .45s var(--e-out); }
  .c-rules h2, .c-auto h2 { margin: 0; font: 400 56px/1 var(--f-sign); letter-spacing: .05em; color: var(--red); text-shadow: 0 4px 0 var(--ink); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; }
  .c-pays { width: 100%; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 8px; }
  .c-pays > div { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 4px 2px 8px; border-radius: 12px; background: #fff; border: 3px solid var(--ink); }
  .c-pays span { width: 76px; height: 76px; }
  .c-pays span svg { width: 100%; height: 100%; }
  .c-pays small { font: 600 16px/1.25 var(--f-ui); color: #5B6785; white-space: nowrap; }
  .c-pays b { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
  .c-rules-list { width: 100%; margin: 4px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 28px; }
  .c-rules-list li { display: flex; align-items: center; gap: 12px; font: 500 21px/1.22 var(--f-ui); }
  .c-rules-list i { flex: none; width: 52px; height: 52px; }
  .c-rules-list i svg { width: 100%; height: 100%; overflow: visible; }
  .c-rules-list .k-rays, .c-rules-list .k-steam { display: none; }
  .c-rules-n { display: grid; place-items: center; border-radius: 50%; background: var(--yel); border: 4px solid var(--ink); font: 400 21px/1 var(--f-sign); font-style: normal; }
  .c-rules-foot { margin: 0; font: 500 17px/1.2 var(--f-ui); color: #5B6785; }

  /* autoplay : carnet de tickets */
  .c-auto { width: 660px; padding: 24px 40px 28px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; border-radius: 24px; background: var(--cream); border: 6px solid var(--ink); box-shadow: inset 0 0 0 5px var(--red), inset 0 0 0 10px var(--cream), 0 16px 0 rgba(10, 16, 32, .5); }
  .c-auto p { margin: 0; font: 500 22px/1.2 var(--f-ui); }
  .c-auto-row { display: flex; gap: 0; filter: drop-shadow(0 7px 0 var(--ink)); }
  .c-stub { width: 160px; height: 116px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--yel); border: 5px solid var(--ink); border-left-style: dashed; border-right-style: dashed; transition: transform .1s, background .15s; }
  .c-stub:first-child { border-left-style: solid; border-radius: 12px 0 0 12px; }
  .c-stub:last-child { border-right-style: solid; border-radius: 0 12px 12px 0; }
  .c-stub + .c-stub { margin-left: -4px; }
  .c-stub:nth-child(2) { background: #fff; }
  .c-stub:hover { background: #FFE27A; }
  .c-stub:active { transform: translateY(5px); }
  .c-stub b { font: 400 56px/1 var(--f-sign); }
  .c-stub span { font: 700 18px/1 var(--f-ui); letter-spacing: .08em; color: var(--red-d); }

  /* ================= VFX GPU : le shader remplace le décor CSS, qui reste le repli sans WebGL2 ================= */
  .c-skyfx { position: absolute; left: 0; right: 0; top: 0; height: 480px; pointer-events: none; }
  /* le décor CSS ne s'efface que si son shader tourne vraiment (l'hôte porte data-vfx-scene) */
  .c-sea[data-vfx-scene="1"] { box-shadow: none; }
  .c-sea[data-vfx-scene="1"] i, .c-sea[data-vfx-scene="1"] b { display: none; }
  &:has(.c-skyfx[data-vfx-scene="1"]) { .c-cloud, .c-stars, .c-sun::before { display: none; } }
  &[data-vfx="1"] {
    /* colonnes en attente : faisceau et traits de vitesse en GPU sous les symboles, il ne reste que le cadre de la colonne active */
    .tg-colhl[data-on="1"], .tg-colhl[data-on="2"] { background: none; animation: none; }
    .tg-colhl::after { display: none; }
    /* cornet : la vapeur, la couronne et les rayons sont des effets GPU */
    .k-steam, .k-rays, .k-sparks { display: none; }
    .tg-sym.is-teasing .tg-sym-in { animation: chips-tease .42s ease-in-out infinite alternate; }
    &[data-antic="2"] .tg-sym.is-teasing .tg-sym-in { animation-duration: .17s; }
    .tg-sym.is-fizzle .tg-sym-in { animation: chips-fizzle2 .66s ease-in forwards; }
    &[data-mode="fsB"] .c-bulbs i { box-shadow: none; animation: none; }
    /* big win : le soleil de BD est dessiné par un calque GPU logé dans .c-big-rays */
    .c-big-rays { width: 1300px; height: 1300px; margin: -650px 0 0 -650px; border-radius: 0; background: none; -webkit-mask: none; mask: none; animation: none; }
  }

  /* ================= portrait 900×1600 ================= */
  &[data-orient="portrait"] {
    --t: 5px; --cap: 8;
    .c-skyfx { height: 262px; }
    .c-sun { left: 24px; top: 8px; width: 100px; height: 100px; }
    .c-moon { left: 30px; top: 14px; width: 76px; height: 76px; }
    .c-wheel { left: 412px; top: 138px; width: 110px; height: 120px; }
    .c-sea { top: 250px; height: 220px; }
    .c-bunting { display: none; }
    .c-boards { top: 1252px; }

    .c-kiosk { left: 0; width: 900px; height: 1150px; }
    .c-frame { left: 10px; top: 410px; width: 880px; height: 738px; }
    .c-grid { left: 24px; top: 424px; width: 852px; height: 710px; }
    .c-shadows { left: 24px; top: 424px; width: 852px; height: 710px; }
    .c-awning-l { display: none; }
    .c-awning-p { display: block; left: 8px; top: 338px; }
    .c-rail { left: 0; right: 0; top: 330px; }
    .c-bulbs { left: 22px; right: 22px; top: 385px; }
    .c-flock { top: 264px; }
    .c-gull:nth-child(1) { left: 330px; } .c-gull:nth-child(2) { left: 428px; } .c-gull:nth-child(3) { left: 526px; } .c-gull:nth-child(4) { left: 624px; }
    .c-sign { left: 250px; top: 12px; width: 400px; }

    .c-host { left: 8px; top: 60px; width: 250px; height: 270px; --by: -5px; }
    .c-post { display: none; }
    .c-barry { left: 6px; width: 236px; height: 264px; }
    .c-say { left: 262px; bottom: auto; top: 50px; max-width: 280px; font-size: 30px; padding: 6px 18px 9px; transform-origin: 0 100%; transition: transform .22s var(--e-pop); }
    .c-say::after { right: auto; left: 20px; }
    .c-stack { left: 62px; width: 120px; }
    .c-disc { border-width: 2px; border-radius: 4px; background: repeating-linear-gradient(90deg, var(--c1) 0 14px, var(--c2) 14px 23px); box-shadow: none; }
    .c-disc:nth-child(n+9) { display: none; }
    .c-stack-top { height: 20px; bottom: calc(min(var(--n), var(--cap)) * var(--t) - 9px); border-width: 2px; }
    .c-stack-sign { left: 200px; bottom: max(8px, calc(min(var(--n), var(--cap)) * var(--t) - 30px)); }
    .c-stack-sign b { font-size: 46px; }

    .c-tally { left: 548px; top: 116px; width: 336px; height: 132px; padding: 16px 24px 0; }
    .c-tally-amt { font-size: 54px; }
    .c-tally-chip { right: -6px; top: -40px; }
    .c-tally-note { right: -4px; }
    .c-swoop { left: 760px; top: 60px; }

    .c-side { left: 24px; top: 1156px; width: 852px; flex-direction: row; gap: 12px; }
    .c-bonus { flex: 0 0 256px; height: 84px; }
    .c-bonus .c-script { left: 12px; top: 4px; font-size: 22px; }
    .c-bonus b { font-size: 42px; margin-top: 8px; }
    .c-bonus small { display: none; }
    .c-feat { flex: 1; height: 84px; min-width: 0; padding: 0 8px 0 4px; gap: 4px; }
    .c-feat-ico { width: 56px; height: 56px; }
    .c-feat-txt b { font-size: 21px; }
    .c-feat-txt small { font-size: 16px; }

    .c-fs { left: 24px; top: 1156px; width: 852px; flex-direction: row; gap: 12px; }
    .c-fs-title { flex: 0 0 300px; height: 84px; }
    .c-fs-title b { font-size: 33px; }
    .c-fs-cell { flex: 1; height: 84px; padding: 8px 12px 0; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 4px; }
    .c-fs-cell span { font-size: 16px; }
    .c-fs-cell b, .c-fs-left b, .c-fs-total b { font-size: 44px; }
    .c-fs-rule { display: none !important; }

    .c-plate { left: 24px; top: 1272px; width: 300px; height: 96px; }
    .c-flap { left: 340px; top: 1272px; width: 536px; height: 96px; }
    .c-flap b { font-size: 52px; }
    .c-tag { left: 28px; top: 1396px; width: 300px; height: 96px; }
    .c-tag button { width: 60px; height: 60px; }
    .c-cost { left: 84px; top: 1464px; width: 136px; height: 136px; z-index: 22; }
    .c-spin { left: 348px; top: 1384px; width: 204px; height: 204px; }
    .c-spin b { font-size: 58px; }
    .c-spin small { font-size: 28px; }
    &[data-auto="1"] .c-spin b { font-size: 46px; }
    .c-minis { left: 616px; top: 1392px; width: 188px; flex-wrap: wrap; gap: 16px 20px; }
    .c-minis button { width: 84px; height: 84px; }
    .c-minis svg { width: 40px; height: 40px; }
    .c-toast { top: 48%; }
    &[data-mode="fsB"] .c-host { --by: calc(min(var(--n), var(--cap)) * var(--t) + 1px); }

    .c-board { width: 848px; }
    .c-board-head h2 { font-size: 64px; }
    .c-menu { grid-template-columns: minmax(0, 1fr); }
    .c-dish { min-height: 168px; }
    .c-board-sub small { display: none; }
    .c-board-x { right: -4px; }
    .c-card { width: 836px; height: 600px; padding: 0 44px 32px; }
    .c-card-name { font-size: 86px; }
    .c-card-out .c-card-name { font-size: 62px; }
    .c-card-hi { font-size: 50px; margin-left: 10px; }
    .c-card-mark { right: 96px; width: 200px; }
    .c-card-total b { font-size: 78px; }
    .c-big-ribbon { padding: 8px 32px 16px; }
    .c-big-ribbon h2, [data-popup="bigwin"][data-tier] .c-big-ribbon h2 { font-size: 78px; -webkit-text-stroke-width: 7px; }
    .c-big-amt b { font-size: 92px; }
    .c-rules { width: 852px; padding: 24px 28px 28px; }
    .c-pays { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .c-pays > div { flex-direction: row; flex-wrap: wrap; justify-content: center; column-gap: 8px; padding: 4px; }
    .c-pays span { width: 84px; height: 84px; flex: 0 0 84px; }
    .c-pays small { font-size: 19px; flex: 0 0 auto; }
    .c-rules-list { grid-template-columns: minmax(0, 1fr); }
    .c-rules-list li { font-size: 24px; }
    .c-auto { width: 700px; }
  }
}

/* ================= art généré (racine data-painted="1") =================
   Décor peint, Barry et symboles en autocollants générés (skins/chips/art). Tout est préfixé :
   avec ?art=0, ou si les images manquent, rien de ce bloc ne s'applique. */
.skin-chips[data-painted="1"] {
  --tg-sym-pad: 1.5%; --t: 11px; --c-fond: var(--art-fond);
  background: #B97A40;

  /* le décor : la même peinture en trois étalonnages (jour, heure dorée, nuit), fondus par l'opacité */
  .c-sky-day, .c-sky-gold, .c-sky-night { background: var(--c-fond) 0 0 / 100% 100% no-repeat; }
  .c-sky-gold { background-image: radial-gradient(95% 125% at 5% 0%, rgba(255, 190, 84, .66), rgba(255, 156, 78, .34) 38%, rgba(255, 150, 80, 0) 70%), linear-gradient(rgba(255, 150, 90, 0) 20%, rgba(255, 172, 104, .62) 47%, rgba(255, 168, 98, .26) 60%, rgba(255, 150, 90, 0) 82%), var(--c-fond); filter: sepia(.3) saturate(1.5) contrast(1.05); }
  .c-sky-night { background-image: linear-gradient(rgba(14, 26, 92, .46), rgba(10, 20, 70, .4)), var(--c-fond); filter: brightness(.55) saturate(.85) contrast(1.1); }
  .c-stars, .c-sun, .c-cloud, .c-wheel, .c-bunting, .c-boards { display: none; }
  /* la lune recouvre le soleil peint */
  .c-moon { left: 10px; top: -56px; width: 156px; height: 156px; box-shadow: inset -34px -12px 0 #D9D2A6, 0 0 0 12px rgba(255, 246, 204, .12), 0 0 0 30px rgba(255, 246, 204, .06); }
  /* la mer : il ne reste que l'hôte du shader, calé sur la mer peinte */
  .c-sea { top: 430px; height: 282px; background: none; box-shadow: none; }
  .c-sea i, .c-sea b { display: none; }
  &[data-mode="fsA"] .c-sea, &[data-mode="fsB"] .c-sea { background: none; box-shadow: none; }

  /* autocollants : ombre portée franche, comme posés sur l'ardoise de la grille */
  .tg-sym-in > img.tg-art { filter: drop-shadow(0 4px 0 rgba(10, 26, 50, .38)); }
  /* symboles payants : l'ombre est portée par le conteneur, pour que l'image puisse tourner sans l'emmener.
     Décollé (gain), l'autocollant a une ombre plus longue ; hors gain il reste opaque, recule et s'assombrit
     (en transparence, le fond de la grille le verdirait). */
  .tg-sym[data-kind="pay"] .tg-sym-in > img.tg-art { filter: none; }
  .tg-sym[data-kind="pay"] .tg-sym-in { filter: drop-shadow(0 4px 0 rgba(10, 26, 50, .38)); transition: transform .2s var(--e-out), filter .2s; }
  .tg-sym[data-kind="pay"].is-win .tg-sym-in { filter: drop-shadow(0 11px 0 rgba(10, 26, 50, .3)); }
  .tg-sym.is-dim { opacity: 1; }
  .tg-sym[data-kind="pay"].is-dim .tg-sym-in { filter: brightness(.62) saturate(.66) drop-shadow(0 3px 0 rgba(10, 26, 50, .38)); }
  .tg-sym.tg-ghost[data-kind="pay"] .tg-sym-in { filter: drop-shadow(0 16px 0 rgba(10, 26, 50, .24)); }
  /* crabe : ses pinces sont deux copies de l'image découpées à l'épaule (ajoutées par onWins) ; le corps perd les
     siennes, et le pas de côté passe sur le conteneur pour que corps et pinces bougent ensemble */
  .tg-sym-in > img.c-claw { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; visibility: hidden; }
  .tg-sym-in[data-claws="1"] > img.c-claw { visibility: visible; }
  .tg-sym-in[data-claws="1"] > img.tg-art { clip-path: polygon(0 48%, 24% 48.3%, 29.5% 47.6%, 33.5% 45.2%, 36.5% 42%, 38.2% 39.2%, 40.3% 36.3%, 42.5% 34.8%, 44.5% 29%, 47% 21%, 47% 0, 53% 0, 53% 21%, 56% 24%, 56.5% 31.5%, 64.5% 33.8%, 67% 38%, 70% 42.5%, 75% 46%, 79.5% 47.5%, 100% 47.5%, 100% 100%, 0 100%); }
  .c-claw-l { clip-path: polygon(0 0, 47% 0, 47% 21%, 44.5% 29%, 42.5% 34.8%, 40.3% 36.3%, 38.2% 39.2%, 36.5% 42%, 33.5% 45.2%, 29.5% 47.6%, 24% 48.3%, 24% 50.5%, 0 50.5%); transform-origin: 17% 48.5%; }
  .c-claw-r { clip-path: polygon(53% 0, 100% 0, 100% 50%, 79.5% 50%, 79.5% 47.5%, 75% 46%, 70% 42.5%, 67% 38%, 64.5% 33.8%, 56.5% 31.5%, 56% 24%, 53% 21%); transform-origin: 85% 47.5%; }
  .tg-sym[data-sym="h1"].is-win[data-w]:not(.is-pop) .tg-sym-in { animation: chips-w-lift calc(.22s * var(--tg-speed, 1)) var(--e-pop) var(--d, 0ms) both, chips-w-crab calc(.6s * var(--tg-speed, 1)) var(--e-io) calc(var(--d, 0ms) + .12s * var(--tg-speed, 1)) both; animation-composition: replace, add; }
  .tg-sym[data-sym="h1"].is-win[data-w]:not(.is-pop) .tg-sym-in > img.tg-art { animation: none; }
  .tg-sym[data-sym="h1"].is-win[data-w]:not(.is-pop) .c-claw-l { animation: chips-w-clawl calc(.6s * var(--tg-speed, 1)) var(--e-io) calc(var(--d, 0ms) + .12s * var(--tg-speed, 1)) both; }
  .tg-sym[data-sym="h1"].is-win[data-w]:not(.is-pop) .c-claw-r { animation: chips-w-clawr calc(.6s * var(--tg-speed, 1)) var(--e-io) calc(var(--d, 0ms) + .12s * var(--tg-speed, 1)) both; }
  /* points d'attache relevés sur la peinture */
  .tg-sym[data-sym="h3"] { --w-o: 60% 13%; }
  .tg-sym[data-sym="l5"] { --w-o: 50% 62%; }
  /* mouettes secondaires : le liseré blanc des autocollants */
  .c-gull svg, .c-swoop svg { filter: drop-shadow(2.5px 0 0 #fff) drop-shadow(-2.5px 0 0 #fff) drop-shadow(0 2.5px 0 #fff) drop-shadow(0 -2.5px 0 #fff); }

  /* cornet peint : il se balance une fois posé, plus vite quand il en manque un */
  .tg-sym[data-kind="scatter"] .tg-sym-in > img.tg-art { transform-origin: 50% 88%; }
  .tg-sym[data-kind="scatter"].is-landed .tg-sym-in > img.tg-art { animation: chips-conesway 1.5s ease-in-out infinite alternate; }
  .tg-sym[data-kind="scatter"].is-teasing .tg-sym-in > img.tg-art { animation-duration: .45s; }
  .tg-sym[data-kind="scatter"].is-missed .tg-sym-in > img.tg-art { animation: none; filter: grayscale(.8) brightness(.82) drop-shadow(0 4px 0 rgba(10, 26, 50, .38)); }

  /* jeton peint : le nombre est posé sur son centre vierge et bouge avec lui ; le palier se lit à la teinte */
  .tg-sym[data-kind="multi"] .tg-sym-in { container-type: size; }
  .tg-sym[data-kind="multi"] .tg-art-val { inset: 0 0 5% 0; left: 0; top: 0; display: grid; place-items: center; transform: none; font: 400 30cqw/1 var(--f-sign); color: var(--ink); letter-spacing: -.01em; z-index: 2; }
  .tg-sym[data-kind="multi"].is-landing .tg-sym-in > * { animation: chips-coinland .32s var(--e-pop); }
  .tg-sym[data-kind="multi"][data-tier="legend"] .tg-sym-in > * { animation: chips-legend .9s ease-in-out infinite alternate; }
  .tg-sym[data-kind="multi"].tg-ghost .tg-sym-in > * { animation: chips-coinflip .26s linear infinite; }
  .tg-sym[data-tier="rare"] img.tg-art, [data-art="multi"][data-tier="rare"] img.tg-art { filter: hue-rotate(142deg) saturate(1.3) drop-shadow(0 4px 0 rgba(10, 26, 50, .38)); }
  .tg-sym[data-tier="rare"] .tg-art-val { font-size: 27cqw; }
  .tg-sym[data-tier="epic"] img.tg-art { filter: brightness(.36) contrast(1.35) saturate(.7) drop-shadow(0 0 0 #F2C14E) drop-shadow(0 4px 0 rgba(10, 26, 50, .38)); }
  .tg-sym[data-tier="epic"] .tg-art-val { font-size: 25cqw; color: #F2C14E; text-shadow: 0 2px 0 #000; }
  .tg-sym[data-tier="legend"] img.tg-art { filter: hue-rotate(52deg) saturate(1.5) brightness(1.04) drop-shadow(0 4px 0 rgba(10, 26, 50, .38)); }
  .tg-sym[data-tier="legend"] .tg-sym-in::before { content: ''; position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse 27% 26% at 50% 47.5%, rgba(255, 196, 40, .95) 0 94%, transparent 100%); mix-blend-mode: multiply; animation: chips-legend .9s ease-in-out infinite alternate; }
  .tg-sym[data-tier="legend"] .tg-art-val { font-size: 21cqw; color: #3A1380; }

  /* jetons hors grille (menus, règles, compteur) : même pose du nombre, palier d'après la valeur */
  [data-art="multi"] { position: relative; container-type: size; }
  [data-art="multi"] .tg-art-val { inset: 0 0 5% 0; left: 0; top: 0; display: grid; place-items: center; transform: none; font: 400 30cqw/1 var(--f-sign); color: var(--ink); letter-spacing: -.01em; z-index: 2; }
  [data-art="multi"]:is([data-value="10"], [data-value="25"]) img.tg-art { filter: hue-rotate(142deg) saturate(1.3); }
  [data-art="multi"]:is([data-value="10"], [data-value="25"]) .tg-art-val { font-size: 27cqw; }
  [data-art="multi"][data-value="250"] img.tg-art { filter: hue-rotate(52deg) saturate(1.5) brightness(1.04); }
  [data-art="multi"][data-value="250"]::before { content: ''; position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse 27% 26% at 50% 47.5%, rgba(255, 196, 40, .95) 0 94%, transparent 100%); mix-blend-mode: multiply; }
  [data-art="multi"][data-value="250"] .tg-art-val { font-size: 21cqw; color: #3A1380; }

  /* Barry : un pantin de pièces détachées du portrait (pieces.json). Le poteau est une image à part, complète sous
     les pattes ; l'oiseau a son corps, ses pattes, son aile et sa tête, animés comme les pièces vectorielles. */
  .c-post { left: 0; bottom: 0; width: 0; height: 0; border: 0; background: none; z-index: 2; }
  .c-post::before, .c-post::after { display: none; }
  .c-post-sign { left: 100px; top: auto; bottom: 56px; }
  .c-barry { left: 6px; bottom: 0; width: 330px; height: 590px; }
  .c-barry img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; user-select: none; -webkit-user-drag: none; }
  /* le poteau : planté au premier plan. L'image (452 × 383) s'arrête dans le bois nu, sous le cordage (rang 337) ; à
     gauche elle descend jusqu'au bas du liseré du nœud (rang 347). En dessous, deux rangs du fût (335 à 337, les seuls
     où contour et bois sont nets) sont étirés jusque sous le bas de la scène ; le liseré blanc de gauche, que le nœud
     élargit à ces rangs, est refait par un trait droit. La base ne se voit plus, le HUD passe devant.
     Soleil en haut à gauche : ombre du fût sur les planches, à sa droite, et ombre des pattes sur le haut du poteau. */
  .c-a-post { position: absolute; left: 14.16%; top: 64.59%; width: 73.45%; height: 34.84%; --c-long: 96%; }
  .c-a-post::before { content: ''; position: absolute; left: 13.5%; width: 3.3%; top: 87%; height: var(--c-long); background: #FCFCFC; }
  .c-a-post > i { position: absolute; display: block; }
  .c-a-posttop { inset: 0; clip-path: polygon(0 0, 100% 0, 100% 88%, 16.6% 88%, 16.6% 90.76%, 0 90.76%); }
  .c-a-postlong { left: 0; top: 87%; width: 100%; height: var(--c-long); overflow: hidden; clip-path: inset(0 0 0 16.4%); }
  .c-barry .c-a-postlong img { top: -16750%; height: 19150%; }
  .c-a-postshade { left: 90.4%; top: 90%; width: 50.9%; height: 96%; background: rgba(62, 26, 20, .4); clip-path: polygon(0 0, 100% 11%, 100% 100%, 0 100%); }
  .c-a-footshade { inset: 0; clip-path: polygon(16.6% 14.4%, 22.1% 9.4%, 35.4% 7%, 53.1% 6.3%, 70.8% 6.8%, 84.1% 8.6%, 88.5% 11.5%, 88.5% 31%, 16.6% 31%); }
  .c-a-footshade::before { content: ''; position: absolute; left: 26.36%; top: -29.18%; width: 64.56%; height: 51.5%; background: var(--art-perso-pattes) 0 0 / 100% 100% no-repeat; filter: brightness(0) drop-shadow(4px 0 0 #000) drop-shadow(-4px 0 0 #000) drop-shadow(0 4px 0 #000) drop-shadow(0 -4px 0 #000); opacity: .3; transform: translate(4.5%, 7%); }
  .c-barry.is-hop { animation: none; }
  .c-barry.is-hop .c-a-bird { animation: chips-hop .42s var(--e-io); }
  .c-barry.is-hop .c-a-footshade::before { animation: chips-a-shadehop .42s var(--e-io); }
  .c-a-bird { position: absolute; inset: 0; transform-origin: 49.7% 69%; animation: chips-b-breathe 3s ease-in-out infinite; }
  /* les pattes : détachées du poteau, avec leur propre liseré blanc d'autocollant (image fixe : le filtre n'est calculé qu'une fois) */
  .c-a-legs { position: absolute; left: 33.5%; top: 54.42%; width: 47.41%; height: 17.95%; filter: drop-shadow(4px 0 0 #fff) drop-shadow(-4px 0 0 #fff) drop-shadow(0 4px 0 #fff) drop-shadow(0 -4px 0 #fff) drop-shadow(3px 3px 0 #fff) drop-shadow(-3px 3px 0 #fff); }
  .c-barry img.c-a-legedge { left: -1.86%; top: 67.69%; width: 99.47%; height: 35.43%; }
  .c-a-head { position: absolute; left: 30.47%; top: .57%; width: 68.52%; height: 35.41%; transform-origin: 31.7% 83.3%; animation: chips-b-bob 3.6s ease-in-out infinite; transition: transform .25s; }
  .c-a-wing, .c-a-wingfar, .c-a-wingfar i { position: absolute; left: 10.24%; top: 27.84%; width: 52.72%; height: 21.55%; transform-origin: 91.5% 17%; }
  .c-a-wing { animation: chips-a-settle 4.2s ease-in-out infinite; transition: transform .2s; }
  .c-a-wingfar { transform: translate(9%, -7%) scaleX(-1); opacity: 0; transition: opacity .12s; filter: brightness(.8); }
  .c-a-wingfar i { left: 0; top: 0; width: 100%; height: 100%; transform: rotate(30deg); }
  /* le bec s'ouvre : une mâchoire dessinée dans le style autocollant bascule sous le bec peint (repère : pixels du portrait source) */
  .c-a-face { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
  .c-a-jaw { transform-origin: 603px 380px; opacity: 0; transition: transform .14s, opacity .08s; }
  &[data-host="antic2"] .c-a-jaw { opacity: 1; transform: rotate(9deg); }
  &[data-host="win"] .c-a-jaw { opacity: 1; transform: rotate(13deg); }
  &[data-host="bigwin"] .c-a-jaw { opacity: 1; transform: rotate(20deg); }
  &[data-host="bonus"] .c-a-jaw { opacity: 1; transform: rotate(16deg); }
  /* paupières : la couleur des plumes, cernées comme le reste ; elles tombent pour le clignement et le sommeil */
  .c-a-lid { position: absolute; background: #F4E6D8; border-bottom: 3px solid var(--ink); border-radius: 46% 46% 50% 50%; transform-origin: 50% 0; transform: scaleY(0); opacity: 0; animation: chips-a-blink 4.8s infinite; }
  .c-a-lid1 { left: 43%; top: 40.4%; width: 15%; height: 11.5%; rotate: 19deg; }
  .c-a-lid2 { left: 67.6%; top: 42.4%; width: 9.5%; height: 9%; rotate: -24deg; }
  .c-a-lines { position: absolute; left: 14%; top: -14%; width: 78%; height: 70%; overflow: visible; fill: none; stroke: var(--ink); stroke-width: 3.4; stroke-linecap: round; opacity: 0; filter: drop-shadow(1.6px 0 0 #fff) drop-shadow(-1.6px 0 0 #fff) drop-shadow(0 1.6px 0 #fff) drop-shadow(0 -1.6px 0 #fff); }

  /* s'ennuie : tape du bec après 3 spins perdants, puis s'endort debout */
  &[data-host="idle"][data-dead="3"] .c-a-bird { animation: chips-b-peck 1.1s ease-in-out infinite; }
  &[data-host="idle"][data-dead="3"] .c-a-head { animation: chips-a-peckhead 1.1s ease-in-out infinite; }
  &[data-host="idle"]:is([data-dead="4"], [data-dead="5"], [data-dead="6"], [data-dead="7"], [data-dead="8"], [data-dead="9"]) {
    .c-a-bird { animation: chips-b-snore 3.4s ease-in-out infinite; }
    .c-a-head { animation: none; transform: rotate(12deg) translate(2px, 6px); }
    .c-a-lid { animation: none; transform: scaleY(1); opacity: 1; }
    .c-a-wing { animation: none; transform: rotate(-2deg); }
  }
  /* bait niveau 1 : penché vers la grille, la tête tremble, l'aile se crispe */
  &[data-host="antic"] {
    .c-a-bird { animation: chips-b-lean .5s ease-in-out infinite alternate; }
    .c-a-head { animation: chips-b-tremble .11s linear infinite alternate; }
    .c-a-lid { animation: none; transform: scaleY(0); opacity: 0; }
    .c-a-wing { animation: chips-a-tense .5s ease-in-out infinite alternate; }
  }
  /* bait niveau 2 : plumes gonflées, les deux ailes écartées qui frémissent */
  &[data-host="antic2"] {
    .c-a-bird { animation: chips-b-puff .14s linear infinite alternate; }
    .c-a-head { animation: none; transform: rotate(7deg) translate(8px, -2px); }
    .c-a-lid { animation: none; transform: scaleY(0); opacity: 0; }
    .c-a-wing { animation: chips-a-quiver .12s linear infinite alternate; }
    .c-a-wingfar { opacity: 1; }
    .c-a-wingfar i { animation: chips-a-quiver .12s linear infinite alternate-reverse; }
    .c-a-lines { opacity: 1; animation: chips-b-lines .3s steps(2) infinite; }
  }
  &[data-host="cast"] {
    .c-a-wing { animation: chips-a-flick .5s var(--e-pop); }
    .c-a-head { animation: chips-b-nod .5s ease-out; }
    .c-a-lid { animation: none; transform: scaleY(.4); opacity: 1; }
  }
  &[data-host="win"] {
    .c-a-bird { animation: chips-b-hopy .3s ease-in-out infinite alternate; }
    .c-a-footshade::before { animation: chips-a-shadehopy .3s ease-in-out infinite alternate; }
    .c-a-head { animation: none; transform: rotate(-9deg); }
    .c-a-wing { animation: chips-a-pump .24s ease-in-out infinite alternate; }
    .c-a-lid { animation: none; transform: scaleY(0); opacity: 0; }
  }
  /* gros gain et bonus : il saute sur place, tête en arrière, et bat des deux ailes */
  &[data-host="bigwin"], &[data-host="bonus"] {
    .c-a-bird { animation: chips-b-jump .26s ease-in-out infinite alternate; }
    .c-a-footshade::before { animation: chips-a-shadejump .26s ease-in-out infinite alternate; }
    .c-a-head { animation: chips-a-headbang .26s ease-in-out infinite alternate; }
    .c-a-wing { animation: chips-a-flap .2s ease-in-out infinite alternate; }
    .c-a-wingfar { opacity: 1; }
    .c-a-wingfar i { animation: chips-a-flap .2s ease-in-out infinite alternate-reverse; }
    .c-a-lid { animation: none; transform: scaleY(0); opacity: 0; }
    .c-a-lines { opacity: 1; animation: chips-b-lines .24s steps(2) infinite; }
  }
  &[data-host="sad"] {
    .c-a-bird { animation: none; }
    .c-a-head { animation: chips-b-no 1.5s ease-in-out; transform: rotate(8deg) translateY(5px); }
    .c-a-wing { animation: chips-a-shrug 1.2s ease-in-out; }
    .c-a-lid { animation: none; transform: scaleY(.62); opacity: 1; }
  }
  .c-say { left: 0; bottom: 588px; }
  &[data-mode="fsA"] .c-a-bird img, &[data-mode="fsA"] .c-a-post { filter: sepia(.2) saturate(1.2); }
  &[data-mode="fsB"] .c-barry img { filter: brightness(.88) saturate(.82) hue-rotate(-8deg); }
  /* les oiseaux du large repassent dans le ciel peint */
  .c-birds { display: block; }

  /* bonus cumulé : la pile remplace le poteau, Barry s'y pose avec ses seules pattes */
  &[data-mode="fsB"] {
    .c-a-post { display: none; }
    .c-barry { bottom: calc(var(--by) - 161px); }
    .c-stack { left: 95px; width: 170px; }
    .c-say { bottom: min(calc(var(--by) + 428px), 690px); }
  }

  /* cartes postales d'entrée et de sortie de bonus : la peinture, étalonnée comme le bonus */
  .c-card-pic { background: none; }
  .c-card-pic::before { content: ''; position: absolute; inset: 0; background: radial-gradient(95% 125% at 5% 0%, rgba(255, 190, 84, .66), rgba(255, 156, 78, .34) 38%, rgba(255, 150, 80, 0) 70%), linear-gradient(rgba(255, 150, 90, 0) 20%, rgba(255, 172, 104, .62) 47%, rgba(255, 168, 98, .26) 60%, rgba(255, 150, 90, 0) 82%), var(--art-fond) 50% 58% / cover no-repeat; filter: sepia(.3) saturate(1.5) contrast(1.05); }
  .c-card-sun { display: none; }
  [data-popup][data-mode="fsB"] .c-card-pic { background: none; }
  [data-popup][data-mode="fsB"] .c-card-pic::before { background-image: linear-gradient(rgba(14, 26, 92, .46), rgba(10, 20, 70, .4)), var(--art-fond); filter: brightness(.55) saturate(.85) contrast(1.1); }

  /* portrait : le décor peint au format portrait (900 × 1600), à l'échelle 1, en deux calques raccordés derrière la
     tringle de l'auvent. En haut, la peinture est remontée de 300 px (les shaders de skin.js en tiennent compte) : l'horizon passe à
     y = 200, la mer, la falaise et la grande roue sont derrière Barry. À partir de la tringle (y = 340), .c-boards
     montre la peinture à sa place : mâts de bois le long du kiosque, planches nettes sous le HUD. */
  &[data-orient="portrait"] {
    --t: 5px; --c-fond: var(--art-fond-portrait);
    .c-sky-day { background-size: 900px 1600px; background-position: 0 -300px; }
    .c-sky-gold { background-size: 900px 426px, 900px 426px, 900px 1600px; background-position: 0 0, 0 0, 0 -300px; }
    .c-sky-night { background-size: 100% 100%, 900px 1600px; background-position: 0 0, 0 -300px; }
    .c-moon { left: 6px; top: -32px; width: 88px; height: 88px; box-shadow: inset -19px -7px 0 #D9D2A6, 0 0 0 8px rgba(255, 246, 204, .12), 0 0 0 18px rgba(255, 246, 204, .06); }
    .c-sea { top: 200px; height: 140px; }
    .c-boards { display: block; top: 340px; border-top: 0; background: var(--art-fond-portrait) 0 100% / 900px 1600px no-repeat; box-shadow: none; }
    &[data-mode="fsA"] .c-boards { filter: sepia(.3) saturate(1.5) contrast(1.05); }
    &[data-mode="fsB"] .c-boards { background-image: linear-gradient(rgba(10, 20, 70, .4), rgba(10, 20, 70, .4)), var(--art-fond-portrait); background-size: 100% 100%, 900px 1600px; background-position: 0 0, 0 100%; filter: brightness(.55) saturate(.85) contrast(1.1); }
    .c-barry { left: 28px; bottom: 0; width: 179px; height: 320px; }
    .c-a-post { --c-long: 16%; }
    .c-a-postshade { display: none; }
    .c-a-footshade::before { filter: brightness(0) drop-shadow(2px 0 0 #000) drop-shadow(-2px 0 0 #000) drop-shadow(0 2px 0 #000) drop-shadow(0 -2px 0 #000); }
    .c-say { left: 262px; bottom: auto; }
    &[data-mode="fsB"] .c-barry { bottom: calc(var(--by) - 87px); }
    .c-a-legs { filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff) drop-shadow(2px 2px 0 #fff) drop-shadow(-2px 2px 0 #fff); }
    .c-a-lid { border-bottom-width: 2px; }
    &[data-mode="fsB"] .c-stack { left: 62px; width: 120px; }
    &[data-mode="fsB"] .c-say { bottom: auto; }
  }
}

/* ================= keyframes ================= */
@keyframes chips-turn { to { transform: rotate(360deg); } }
@keyframes chips-twinkle { from { opacity: .55; } to { opacity: 1; } }
@keyframes chips-drift { to { transform: translateX(2100px); } }
@keyframes chips-vl { from { transform: rotate(26deg); } to { transform: rotate(-18deg); } }
@keyframes chips-vr { from { transform: rotate(-26deg); } to { transform: rotate(18deg); } }
@keyframes chips-wave { to { transform: translateX(80px); } }
@keyframes chips-glint { 0%, 70%, 100% { transform: rotate(45deg) scale(0); } 82% { transform: rotate(45deg) scale(1); } }
@keyframes chips-flag { from { transform: rotate(-5deg) skewX(3deg); } to { transform: rotate(6deg) skewX(-4deg); } }
@keyframes chips-bulb { 0%, 49% { opacity: 1; } 50%, 100% { opacity: .45; } }
@keyframes chips-peer { from { transform: rotate(-5deg); } to { transform: rotate(8deg); } }
@keyframes chips-lean { from { transform: rotate(8deg); } to { transform: rotate(15deg) translateY(1px); } }
@keyframes chips-hopgull { from { transform: rotate(12deg) translateY(0); } to { transform: rotate(18deg) translateY(-7px); } }
@keyframes chips-orbit { from { transform: rotate(0deg) translateX(150px) rotate(90deg); } to { transform: rotate(360deg) translateX(150px) rotate(90deg); } }
@keyframes chips-hot { from { opacity: .7; } to { opacity: 1; } }
@keyframes chips-stripes { to { background-position: 0 -60px; } }

/* scène de gain : annonce (le conteneur se décolle), puis l'action de chaque objet (sur l'image), pop et envol */
@keyframes chips-w-lift { 0% { transform: rotate(var(--rest, 0deg)) scale(1); } 55% { transform: rotate(calc(var(--rest, 0deg) * -1)) translateY(-10%) scale(1.17); } 100% { transform: rotate(var(--rest, 0deg)) translateY(-5%) scale(1.09); } }
@keyframes chips-w-hop { 0%, 100% { transform: none; } 20% { transform: scale(1.08, .9); } 50% { transform: translateY(-12%) scale(.96, 1.06); } 80% { transform: scale(1.04, .97); } }
@keyframes chips-w-crab { 0%, 100% { transform: none; } 12% { transform: scale(1.1, .88); } 30% { transform: translateX(calc(-7% * var(--amp, 1))) rotate(-5deg); } 44% { transform: scale(1.04, .95); } 58% { transform: translateX(calc(7% * var(--amp, 1))) rotate(5deg); } 78% { transform: scale(.97, 1.05); } }
@keyframes chips-w-clawl { 0%, 100% { transform: rotate(0deg); } 12% { transform: rotate(-14deg); } 30% { transform: rotate(16deg) scale(1.08); } 42% { transform: rotate(-10deg); } 58% { transform: rotate(16deg) scale(1.08); } 76% { transform: rotate(-4deg); } }
@keyframes chips-w-clawr { 0%, 100% { transform: rotate(0deg); } 12% { transform: rotate(14deg); } 30% { transform: rotate(-16deg) scale(1.08); } 42% { transform: rotate(10deg); } 58% { transform: rotate(-16deg) scale(1.08); } 76% { transform: rotate(4deg); } }
@keyframes chips-w-fish { 0%, 100% { transform: none; } 10% { transform: scale(1.1, .9); } 20% { transform: rotate(-3deg) scale(1.05); } 28% { transform: rotate(3deg) scale(1.05) translateY(-2%); } 36% { transform: rotate(-3deg) scale(1.06); } 44% { transform: rotate(3deg) scale(1.06) translateY(-2%); } 52% { transform: rotate(-2.5deg) scale(1.05); } 60% { transform: rotate(2.5deg) scale(1.05) translateY(-1%); } 68% { transform: rotate(-2deg) scale(1.03); } 84% { transform: scale(.97, 1.04); } }
@keyframes chips-w-anchor { 0%, 100% { transform: rotate(0deg); } 14% { transform: rotate(8deg); } 40% { transform: rotate(calc(-24deg * var(--amp, 1))); } 64% { transform: rotate(calc(16deg * var(--amp, 1))); } 84% { transform: rotate(-6deg); } }
@keyframes chips-w-buoy { 0% { transform: rotate(0deg); } 14% { transform: rotate(-28deg) scale(.96); } 72% { transform: rotate(384deg) scale(1.06); } 88% { transform: rotate(354deg); } 100% { transform: rotate(360deg); } }
@keyframes chips-w-vinegar { 0%, 100% { transform: rotate(0deg); } 12% { transform: rotate(-9deg); } 36% { transform: rotate(calc(32deg * var(--amp, 1))); } 46% { transform: rotate(calc(26deg * var(--amp, 1))) translateY(2%); } 56% { transform: rotate(calc(34deg * var(--amp, 1))); } 84% { transform: rotate(-5deg); } }
@keyframes chips-w-salt { 0%, 100% { transform: none; } 12% { transform: translateY(5%) scale(1.07, .93); } 24% { transform: translateY(-15%) rotate(13deg); } 36% { transform: translateY(3%) rotate(17deg) scale(1.04, .96); } 48% { transform: translateY(-13%) rotate(-11deg); } 60% { transform: translateY(3%) rotate(-15deg) scale(1.04, .96); } 72% { transform: translateY(-8%) rotate(7deg); } 88% { transform: translateY(1%) scale(1.03, .97); } }
@keyframes chips-w-lemon { 0%, 100% { transform: none; } 16% { transform: scale(.86, 1.12); } 30% { transform: scale(.78, 1.2) rotate(-4deg); } 44% { transform: scale(1.22, .84) rotate(3deg); } 62% { transform: scale(.95, 1.06); } 80% { transform: scale(1.03, .98); } }
@keyframes chips-w-peas { 0%, 100% { transform: none; } 12% { transform: scale(1.09, .9); } 26% { transform: skewX(-9deg) scale(.95, 1.09); } 40% { transform: skewX(8deg) scale(1.04, .96); } 54% { transform: skewX(-6deg) scale(.98, 1.04); } 68% { transform: skewX(4deg); } 84% { transform: skewX(-2deg); } }
@keyframes chips-w-shell { 0%, 100% { transform: none; filter: none; } 14% { transform: rotate(-8deg) scale(1.02); filter: none; } 40% { transform: rotate(9deg) scale(1.08); filter: brightness(1.2) saturate(1.1); } 64% { transform: rotate(-5deg) scale(1.05); filter: none; } }
@keyframes chips-w-peel { from { transform: rotate(var(--rest, 0deg)) translateY(-5%) scale(1.09); } to { transform: rotate(-7deg) translateY(-12%) scale(1.2); } }
@keyframes chips-w-fly { 0% { transform: perspective(420px) rotateX(34deg) rotate(-7deg) translateY(-12%) scale(1.2); } 100% { transform: perspective(420px) rotateX(0deg) rotate(0deg) scale(1); } }
@keyframes chips-tag-in { from { transform: translate(-50%, -30%) scale(.6); opacity: 0; } }
@keyframes chips-tag-out { to { transform: translate(-50%, -120%) scale(.8); opacity: 0; } }
@keyframes chips-land { 0% { transform: rotate(var(--rest, 0deg)) scale(1.2, .76); } 48% { transform: rotate(calc(var(--rest, 0deg) * -1)) scale(.93, 1.1); } 76% { transform: rotate(var(--rest, 0deg)) scale(1.03, .98); } 100% { transform: rotate(var(--rest, 0deg)) scale(1); } }
@keyframes chips-steam { 0% { transform: translateY(5px); opacity: 0; } 35% { opacity: .95; } 100% { transform: translateY(-9px); opacity: 0; } }
@keyframes chips-conesway { from { transform: rotate(-3.5deg); } to { transform: rotate(3.5deg); } }
@keyframes chips-shiver { from { transform: translate(-2.4%, 0) rotate(-2.5deg) scale(1.06); } to { transform: translate(2.4%, -1.5%) rotate(2.5deg) scale(1.06); } }
@keyframes chips-droop { to { transform: rotate(13deg) translateY(5%) scale(.94); opacity: .7; } }
@keyframes chips-jump { from { transform: translateY(4%) scale(1.08, .94); } to { transform: translateY(-16%) scale(.98, 1.14) rotate(6deg); } }
@keyframes chips-coinland { 0% { transform: scaleX(1) translateY(-10px); } 22% { transform: scaleX(.08); } 44% { transform: scaleX(-1); } 66% { transform: scaleX(.08); } 100% { transform: scaleX(1); } }
@keyframes chips-legend { from { transform: scale(1) rotate(-3deg); } to { transform: scale(1.1) rotate(3deg); } }
@keyframes chips-spark { 0%, 100% { transform: scale(.2) rotate(0deg); opacity: 0; } 50% { transform: scale(1.1) rotate(45deg); opacity: 1; } }
@keyframes chips-lift { to { transform: translateY(-14%) scale(1.18) rotate(0deg); } }
@keyframes chips-coinflip { 0%, 100% { transform: scaleX(1); } 25% { transform: scaleX(.06); } 50% { transform: scaleX(-1); } 75% { transform: scaleX(.06); } }
@keyframes chips-tease { from { transform: scale(1.03) rotate(-2deg); } to { transform: scale(1.1) rotate(2deg) translateY(-2%); } }
@keyframes chips-fizzle2 { 0% { transform: rotate(-7deg); } 18% { transform: rotate(8deg) translateX(4%); } 36% { transform: rotate(-10deg) translateX(-4%); } 100% { transform: rotate(10deg) translateY(8%) scale(.92); } }
@keyframes chips-fizzle { 0% { transform: rotate(-7deg); } 18% { transform: rotate(8deg) translateX(4%); } 36% { transform: rotate(-10deg) translateX(-4%); } 60% { transform: rotate(4deg) translateY(4%) scale(.96); opacity: 1; } 100% { transform: rotate(24deg) translateY(16%) scale(.74); opacity: .3; } }

@keyframes chips-b-breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.012, .985); } }
@keyframes chips-b-bob { 0%, 100% { transform: rotate(-2deg); } 28% { transform: rotate(3deg) translateY(-2px); } 52% { transform: rotate(1deg); } 76% { transform: rotate(-4deg) translateY(1px); } }
@keyframes chips-b-tail { 0%, 88%, 100% { transform: rotate(0deg); } 92% { transform: rotate(-7deg); } 96% { transform: rotate(5deg); } }
@keyframes chips-b-blink { 0%, 44%, 49%, 91%, 96%, 100% { transform: scaleY(1); } 46.5%, 93.5% { transform: scaleY(2); } }
@keyframes chips-b-eye { 0%, 30%, 100% { transform: translate(0, 0); } 38%, 62% { transform: translate(-5px, 1px); } 70%, 88% { transform: translate(3px, 2px); } }
@keyframes chips-b-peck { 0%, 46%, 100% { transform: rotate(0deg); } 56% { transform: rotate(-6deg); } 64% { transform: rotate(13deg) translate(8px, 0); } 72% { transform: rotate(4deg); } 80% { transform: rotate(13deg) translate(8px, 0); } 90% { transform: rotate(2deg); } }
@keyframes chips-b-snore { 0%, 100% { transform: rotate(2deg) scale(1, 1); } 50% { transform: rotate(5deg) scale(1.02, .975); } }
@keyframes chips-b-zzz { 0% { transform: translate(0, 8px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translate(8px, -16px); opacity: 0; } }
@keyframes chips-b-lean { from { transform: rotate(5deg); } to { transform: rotate(8deg) translateX(3px); } }
@keyframes chips-b-tremble { from { transform: rotate(4deg) translate(6px, -4px); } to { transform: rotate(5deg) translate(8px, -3px); } }
@keyframes chips-b-puff { from { transform: scale(1.05) rotate(7deg) translateX(-2px); } to { transform: scale(1.07) rotate(8deg) translateX(2px); } }
@keyframes chips-b-quiver { from { transform: scale(.9) rotate(-26deg); } to { transform: scale(.93) rotate(-19deg); } }
@keyframes chips-b-lines { 0% { transform: scale(1); } 50% { transform: scale(1.04) translate(-4px, -2px); } }
@keyframes chips-b-flick { 0% { transform: rotate(0deg); } 30% { transform: rotate(-46deg) translate(6px, -8px); } 100% { transform: rotate(0deg); } }
@keyframes chips-b-nod { 0% { transform: rotate(0deg); } 35% { transform: rotate(10deg); } 100% { transform: rotate(-1deg); } }
@keyframes chips-b-hopy { from { transform: translateY(0) scale(1.02, .97); } to { transform: translateY(-14px) scale(.98, 1.03); } }
@keyframes chips-b-pump { from { transform: rotate(0deg); } to { transform: rotate(-30deg) translate(4px, -6px); } }
@keyframes chips-b-jump { from { transform: translateY(4px) scale(1.04, .95); } to { transform: translateY(-26px) scale(.97, 1.05); } }
@keyframes chips-b-flap { from { transform: scale(1) rotate(-14deg); } to { transform: scale(1.04) rotate(16deg); } }
@keyframes chips-b-no { 0% { transform: rotate(0deg); } 20% { transform: rotate(9deg) translate(-6px, 5px); } 40% { transform: rotate(9deg) translate(5px, 5px); } 60% { transform: rotate(9deg) translate(-5px, 5px); } 100% { transform: rotate(9deg) translateY(5px); } }
@keyframes chips-b-shrug { 0%, 100% { transform: rotate(0deg); } 25%, 55% { transform: rotate(-17deg) translate(2px, -12px); } }
@keyframes chips-hop { 0% { transform: translateY(0) scale(1); } 30% { transform: translateY(-34px) scale(.96, 1.05); } 70% { transform: translateY(0) scale(1.05, .94); } 100% { transform: none; } }
@keyframes chips-disc { from { transform: translateY(-90px) rotate(-9deg); opacity: 0; } }

@keyframes chips-hit { 0% { transform: scale(1.26); } 100% { transform: scale(1); } }
@keyframes chips-multiplied { 0% { transform: scale(1); } 30% { transform: scale(1.34) rotate(-3deg); } 100% { transform: scale(1); } }
@keyframes chips-chiphit { 0% { transform: scale(1.4) rotate(-12deg); } 100% { transform: scale(1) rotate(9deg); } }
@keyframes chips-stamp { 0% { transform: rotate(-14deg) scale(2.6); opacity: 0; } 100% { transform: rotate(-14deg) scale(1); opacity: 1; } }
@keyframes chips-swoop { 0% { transform: translate(300px, -210px) rotate(24deg); opacity: 1; } 46% { transform: translate(0, 0) rotate(0deg); opacity: 1; } 100% { transform: translate(-460px, -280px) rotate(-22deg); opacity: 1; } }
@keyframes chips-flapy { from { transform: scaleY(1); } to { transform: scaleY(-.55); } }
@keyframes chips-flip { 0% { transform: scaleY(.05); } 60% { transform: scaleY(1.16); } 100% { transform: scaleY(1); } }
@keyframes chips-wipe { 0% { transform: translateX(-140%); } 40%, 60% { transform: translateX(0); } 100% { transform: translateX(140%); } }

@keyframes chips-board { 0% { transform: translateY(-130%) rotate(-7deg); } 55% { transform: translateY(0) rotate(3deg); } 78% { transform: rotate(-1.5deg); } 100% { transform: none; } }
@keyframes chips-print { 0% { transform: translateY(-150%) rotate(-2deg); } 100% { transform: translateY(0) rotate(-2deg); } }
@keyframes chips-card { 0% { transform: translate(130%, 30%) rotate(20deg); } 100% { transform: rotate(-2.5deg); } }
@keyframes chips-slam { 0% { transform: scale(2.4) rotate(-12deg); opacity: 0; } 100% { opacity: 1; } }
@keyframes chips-a-shadehop { 0%, 70%, 100% { transform: translate(4.5%, 7%); opacity: .3; } 30% { transform: translate(12%, 16%); opacity: .12; } }
@keyframes chips-a-shadehopy { from { transform: translate(4.5%, 7%); opacity: .3; } to { transform: translate(7.5%, 11%); opacity: .2; } }
@keyframes chips-a-shadejump { from { transform: translate(4%, 6%); opacity: .32; } to { transform: translate(10.5%, 15%); opacity: .13; } }
@keyframes chips-a-settle { 0%, 86%, 100% { transform: rotate(0deg); } 90% { transform: rotate(6deg); } 95% { transform: rotate(-2deg); } }
@keyframes chips-a-tense { from { transform: rotate(4deg); } to { transform: rotate(8deg); } }
@keyframes chips-a-quiver { from { transform: rotate(30deg) scale(1.03); } to { transform: rotate(38deg) scale(1.06); } }
@keyframes chips-a-flick { 0% { transform: rotate(0deg); } 30% { transform: rotate(32deg) translate(-3px, -6px); } 100% { transform: rotate(0deg); } }
@keyframes chips-a-pump { from { transform: rotate(0deg); } to { transform: rotate(22deg) translate(-2px, -5px); } }
@keyframes chips-a-flap { from { transform: rotate(12deg); } to { transform: rotate(58deg) scale(1.06); } }
@keyframes chips-a-shrug { 0%, 100% { transform: rotate(0deg); } 25%, 55% { transform: rotate(12deg) translate(-2px, -9px); } }
@keyframes chips-a-blink { 0%, 43.9%, 49.1%, 90.9%, 96.1%, 100% { transform: scaleY(0); opacity: 0; } 44%, 49%, 91%, 96% { transform: scaleY(.15); opacity: 1; } 46.5%, 93.5% { transform: scaleY(1); opacity: 1; } }
@keyframes chips-a-headbang { from { transform: rotate(-15deg) translate(-3px, 2px); } to { transform: rotate(-7deg); } }
@keyframes chips-a-peckhead { 0%, 46%, 100% { transform: rotate(0deg); } 64%, 80% { transform: rotate(9deg) translate(5px, 4px); } 56%, 72%, 90% { transform: rotate(-2deg); } }
@keyframes chips-a-dance { from { transform: rotate(-4.5deg) scale(1.04, .95); } to { transform: rotate(4.5deg) scale(.97, 1.05); } }
@keyframes chips-a-rave { from { transform: rotate(-6.5deg) scale(1.08, .92); } to { transform: rotate(6.5deg) scale(.95, 1.09); } }
@keyframes chips-a-no { 0% { transform: rotate(0deg); } 20% { transform: rotate(-4deg); } 40% { transform: rotate(1.5deg); } 60% { transform: rotate(-4deg); } 100% { transform: rotate(-3deg) scale(1, .985); } }
