/* Danseurs (dessin et pas dans dancers.js) : tuile, style néon, manga, rocker et enfant (danseurs), articulations.
   Commun à l'écran de battle (display.html) et à la fin de « J'apprends ! » (lecture.html). */
/* Nom au-dessus du danseur (jamais par-dessus) : le dessin occupe la place restante, en bas de la tuile. */
.tile { position: relative; margin: 0; height: 100%; aspect-ratio: 2 / 3; min-width: 0; max-width: calc(50% - .7vw);
  display: flex; flex-direction: column; align-items: center;
  transform-origin: 50% 100%; transform: scale(.8); transition: transform .6s ease; }
/* Pluie d'étoiles (récompense du gagnant) : prête dans la tuile, visible et animée quand le danseur a « stars ». */
.star-rain { position: absolute; inset: -4% -2% 0; z-index: 3; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .8s ease; }
.tile:has(.dancer.stars) .star-rain { opacity: 1; }
.star-rain i { position: absolute; top: -6%; left: var(--x); font-style: normal; line-height: 1; color: #ffd54a;
  font-size: calc(var(--s) * clamp(16px, 3.8vh, 48px)); text-shadow: 0 0 .3vh #fff, 0 0 1vh #ffe98a, 0 0 2.2vh var(--owner);
  animation: star-fall var(--t) linear var(--d) infinite paused; }
.tile:has(.dancer.stars) .star-rain i { animation-play-state: running; }
@keyframes star-fall {
  from { transform: translateY(0) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  80% { opacity: 1; }
  to { transform: translateY(var(--fall, 85vh)) rotate(300deg); opacity: 0; } }
/* Pluie plein écran (écran de battle) : tombe du haut de l'écran sur toute la largeur, aux couleurs du gagnant. */
.star-sky .star-rain { position: fixed; inset: 0; z-index: 4; --fall: 112vh; }
.star-sky.on .star-rain { opacity: 1; }
.star-sky.on .star-rain i { animation-play-state: running; }
@media (prefers-reduced-motion: reduce) { .star-rain i { animation: none; top: var(--y); } }
/* Danseur en retrait : un voile sombre (peu coûteux) plutôt qu'un filtre recalculé à chaque image. */
.tile::after { content: ''; position: absolute; inset: -4%; background: radial-gradient(closest-side, rgba(14,15,26,.55), rgba(14,15,26,.7)); opacity: 1; transition: opacity .6s ease; pointer-events: none; }
.tile:has(.dancer.lead) { transform: scale(1); z-index: 1; }
.tile:has(.dancer.lead)::after { opacity: 0; }
/* Thème « Rosey » : sur le décor, le voile dessinerait une boîte ; le danseur en retrait est simplement estompé. */
[data-theme="rosey"] .tile::after { display: none; }
[data-theme="rosey"] .tile .dancer { transition: opacity .6s ease; }
[data-theme="rosey"] .tile:not(:has(.dancer.lead)) .dancer { opacity: .45; }
.tile figcaption { order: -1; flex: none; position: relative; z-index: 2; max-width: 100%; margin-bottom: 1vh; padding: .3vh .8vw;
  background: #0b0816; color: #fff; border: .25vh solid var(--owner); border-radius: .6vh;
  font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: .04em;
  font-size: clamp(12px, min(1.3cqw, 2.4vh), 24px); line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  box-shadow: 0 0 1.4vh var(--owner); text-shadow: 0 0 .8vh var(--owner); }
.tile figcaption:empty { display: none; }
.dancer { display: block; flex: 1; min-height: 0; width: 100%; height: auto; overflow: visible; }
/* Aplats sombres ; le contour de chaque forme est un trait néon dessiné SOUS l'aplat (paint-order). */
.dancer .skin { fill: #160f24; }
.dancer .shirt { fill: #1c1432; }
.dancer .hood { fill: #251a40; }
.dancer :is(.hair, .belt) { fill: #0c0815; }
.dancer .cap { fill: #1c1432; }
.dancer .pants { fill: #19112a; }
.dancer .shoe { fill: #130c20; }
.dancer :is(.skin, .shirt, .hood, .hair, .cap, .pants, .belt, .shoe):not(.joint) {
  stroke: var(--rim); stroke-width: 1.7; stroke-linejoin: round; paint-order: stroke; }
.dancer .hi { fill: var(--rim); opacity: .9; }
.dancer .rim2, .dancer .trim, .dancer .tie { fill: var(--rim2); }
.dancer .shade { fill: #000; opacity: .35; }
.dancer .deep { fill: #000; opacity: .55; }
.dancer .pocket { fill: #000; opacity: .3; stroke: var(--rim2); stroke-width: .8; }
.dancer .ink { fill: none; stroke: var(--rim2); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.dancer .string { fill: none; stroke: var(--rim2); stroke-width: 1.3; stroke-linecap: round; }
.dancer .sole { fill: none; stroke: var(--rim2); stroke-width: 2.4; stroke-linecap: round; }
.dancer .gold { fill: #ffd54a; }
.dancer .line { fill: none; stroke-linecap: round; stroke-width: 1.6; }
.dancer .gold.line { stroke: #ffd54a; stroke-width: 1.8; }
.dancer .chain { stroke-dasharray: 1.6 .9; stroke-width: 2.2; }
.dancer .shadow { fill: #05020c; opacity: .75; }
/* Liseré blanc « autocollant » : copie de la silhouette, en blanc épais, derrière le personnage. */
.dancer .sticker :is(path, circle, ellipse, rect) { fill: #fff !important; stroke: #fff !important; stroke-width: 7 !important; stroke-linejoin: round; opacity: 1 !important; }
/* ---- Danseurs style manga (voir dancers.js) : encre, papier, trame ; spécificité plus forte que le néon ---- */
.dancer.manga { --m-ink: #141317; --m-skin: #ffe3cf; --m-spot: var(--a); }
.dancer.manga.owner-b { --m-spot: var(--b); }
.dancer.manga .skin { fill: var(--m-skin); }
.dancer.manga .paper { fill: #fff; }
.dancer.manga :is(.spot, .iris) { fill: var(--m-spot); }
.dancer.manga :is(.ink, .ink-pants) { fill: var(--m-ink); opacity: 1; }
.dancer.manga .tone-pants { fill: url(#mbDots); }
.dancer.manga .tone { fill: url(#mbDots); opacity: .8; }
.dancer.manga .cel { fill: var(--m-ink); opacity: .16; }
.dancer.manga.owner-b .cel { opacity: .28; }
.dancer.manga .gold { fill: #ffcf3a; }
.dancer.manga .gold.line { fill: none; stroke: #c99400; stroke-width: 1.8; }
.dancer.manga .chain { stroke-dasharray: 1.6 .9; stroke-width: 2.4; }
.dancer.manga :is(.skin, .paper, .spot, .ink, .tone-pants, .ink-pants, .gold, .mouth):not(.joint) {
  stroke: var(--m-ink); stroke-width: 1.1; stroke-linejoin: round; paint-order: normal; }
.dancer.manga .ln { fill: none; stroke: var(--m-ink); stroke-width: .9; stroke-linecap: round; stroke-linejoin: round; opacity: 1; }
.dancer.manga .ln.strong { stroke-width: 1.4; }
.dancer.manga .lnw { fill: none; stroke: #fff; stroke-width: .9; stroke-linecap: round; }
.dancer.manga .lnw.thick { stroke: var(--m-ink); stroke-width: 2.6; }
.dancer.manga .lash { fill: none; stroke: var(--m-ink); stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.dancer.manga .brow { fill: none; stroke: var(--m-ink); stroke-width: 2.4; stroke-linecap: round; }
.dancer.manga .brow.thin { stroke-width: 1.5; }
.dancer.manga .mouth { fill: #4a1420; }
.dancer.manga .tongue { fill: #ff7d8f; }
.dancer.manga .blush { fill: none; stroke: #ff6f86; stroke-width: .9; stroke-linecap: round; }
/* Contour épais en encre, et liseré blanc autour pour ressortir sur le fond sombre. */
.dancer.manga .contour :is(path, circle, ellipse, rect) { fill: var(--m-ink) !important; stroke: var(--m-ink) !important; stroke-width: 4.6 !important; stroke-linejoin: round; opacity: 1 !important; }
.dancer.manga .sticker :is(path, circle, ellipse, rect) { stroke-width: 9 !important; }
/* ---- Danseur rocker (voir dancers.js) : peau brune, perfecto noir, jean, crête et t-shirt à la couleur du joueur.
   Contours sombres (--rim) et clous argent (--rim2) ; reflets du cuir en blanc léger. ---- */
.dancer.rocker .skin { fill: #8b5a3c; }
.dancer.rocker .shirt { fill: #17141c; }
.dancer.rocker .pants { fill: #262b3a; }
.dancer.rocker .belt { fill: #0d0b10; }
.dancer.rocker .shoe { fill: #100e13; }
.dancer.rocker :is(.hair, .tee) { fill: var(--owner); }
.dancer.rocker .tee { stroke: var(--rim); stroke-width: 1.2; }
.dancer.rocker .hi { fill: #fff; opacity: .16; }
.dancer.rocker .head .hi { fill: #b98159; opacity: .9; }
.dancer.rocker .head .rim2 { fill: #6b3f26; }
.dancer.rocker .head .ink { stroke: #2b170d; }
.dancer.rocker .shades { fill: #08080b; stroke: #08080b; stroke-width: .8; stroke-linejoin: round; }
.dancer.rocker .lens { fill: #fff; opacity: .45; }
.dancer.rocker .goatee { fill: #1b0f09; }
.dancer.rocker .gold { fill: #d5d9e2; }
.dancer.rocker .gold.line { fill: none; stroke: #d5d9e2; }
.dancer.rocker .sole { stroke: #3a3540; }
/* ---- Danseur enfant (voir dancers.js) : grosse tête, grands yeux, t-shirt étoilé à la couleur du joueur, jean,
   baskets blanches ; contours néon du joueur conservés. ---- */
.dancer.kid.char-a .skin { fill: #f1c6a0; }
.dancer.kid.char-b .skin { fill: #a8704c; }
.dancer.kid.char-a .hair { fill: #6b3d1c; }
.dancer.kid.char-b .hair { fill: #1d120c; }
.dancer.kid .shirt { fill: var(--owner); }
.dancer.kid .pants { fill: #2c4777; }
.dancer.kid .belt { fill: #1e2f52; }
.dancer.kid .shoe { fill: #f4f2fb; }
.dancer.kid .hi { fill: #fff; opacity: .22; }
.dancer.kid .head .rim2 { fill: #000; opacity: .12; }
.dancer.kid .head .ink { stroke: #5a2a1a; }
.dancer.kid .eye { fill: #fff; }
.dancer.kid .pupil { fill: #1a1020; }
.dancer.kid .shine { fill: #fff; }
.dancer.kid .cheek { fill: #ff7d9a; opacity: .55; }
.dancer.kid .star { fill: #ffd54a; stroke: #fff; stroke-width: .6; }
/* Petite danseuse (style « afro », s'ajoute à .kid) : peau marron clair, afro bouclée, robe à pois, chaussettes. */
.dancer.kid.afro .skin { fill: #c68a5e; }
.dancer.kid.afro .hair { fill: #24140c; }
.dancer.kid.afro .head .ink { stroke: #4a2414; }
.dancer.kid.afro .curl { stroke: #6b4330; stroke-width: .8; opacity: 1; }
.dancer.kid.afro .dot { fill: #fff; opacity: .85; }
.dancer.kid.afro .sock { fill: #fff; }
.dancer .sock { fill: #f4f2fb; }   /* socquettes sous les robes (jambes nues) */
/* ---- RoboCop (voir dancers.js) : armure d'acier, gants et bottes sombres, visage sous la visière ; ligne de visée
   à la couleur du joueur. ---- */
.dancer.robocop :is(.skin, .shirt) { fill: #aab4c6; }
.dancer.robocop .head .skin { fill: #d9a083; }
.dancer.robocop .fore .skin { fill: #3a3f4b; }
.dancer.robocop .pants { fill: #98a2b5; }
.dancer.robocop :is(.shoe, .belt) { fill: #353a46; }
.dancer.robocop .hi { fill: #fff; opacity: .4; }
.dancer.robocop .head .rim2 { fill: #000; opacity: .15; }
.dancer.robocop .head .ink { stroke: #5a2f20; }
.dancer.robocop .plate { fill: #cbd3e0; stroke: #1b2030; stroke-width: 1; }
.dancer.robocop .helmet { fill: #b4bdcd; stroke: var(--rim); stroke-width: 1.7; stroke-linejoin: round; paint-order: stroke; }
.dancer.robocop .visor { fill: #0b0d12; }
.dancer.robocop .scan { fill: var(--owner); }
/* ---- Son Goku (voir dancers.js) : peau claire, kimono orange, bleu pour maillot, poignets, ceinture et bottes. ---- */
.dancer.goku .skin { fill: #f2c39c; }
.dancer.goku :is(.shirt, .pants) { fill: #ff8a1a; }
.dancer.goku :is(.tee, .band, .belt, .shoe) { fill: #2a4fd6; }
.dancer.goku :is(.tee, .band) { stroke: var(--rim); stroke-width: 1; }
.dancer.goku .hair { fill: #0d0d14; stroke: #4a4a66; stroke-width: 1.2; }
.dancer.goku .hi { fill: #fff; opacity: .3; }
.dancer.goku .hair ~ .hi, .dancer.goku .head .hi { fill: #fff; opacity: .35; }
.dancer.goku .head .rim2 { fill: #c98b63; }
.dancer.goku .head .ink { stroke: #5a2a14; }
.dancer.goku .brow { stroke: #0d0d14; stroke-width: 1.6; }
.dancer.goku .eye { fill: #fff; stroke: #0d0d14; stroke-width: .8; }
.dancer.goku .pupil { fill: #0d0d14; }
.dancer.goku .shine { fill: #fff; }
/* Super guerrier quand Goku gagne (récompense : classe winner, ou stars sur une vignette, ou danse de Carlton en fin de partie) :
   cheveux dorés dressés, pupilles turquoise, aura dorée qui pulse. */
.dancer.goku .hair { transform-origin: 100px 44px; transition: fill .4s ease, stroke .4s ease, transform .4s ease; }
.dancer.goku:is(.stars, .winner, .m-carlton) .hair { fill: #ffd83a; stroke: #e08a00; transform: scale(1.06, 1.14); }
.dancer.goku:is(.stars, .winner, .m-carlton) .pupil { fill: #12b5a5; }
.dancer.goku:is(.stars, .winner, .m-carlton) { animation: ssj-aura 1.2s ease-in-out infinite; }
@keyframes ssj-aura {
  from, to { filter: drop-shadow(0 0 .6vh #fff3a0) drop-shadow(0 0 1.6vh #ffc400); }
  50% { filter: drop-shadow(0 0 1.2vh #fff3a0) drop-shadow(0 0 3.2vh #ffae00); } }
@media (prefers-reduced-motion: reduce) { .dancer.goku:is(.stars, .winner, .m-carlton) { animation: none; filter: drop-shadow(0 0 1.6vh #ffc400); } }
.dancer.goku .emblem { fill: #fff; stroke: var(--rim); stroke-width: .8; }
.dancer.goku .pocket { display: none; }
.dancer.goku .sole { stroke: #f4f2fb; }
.dancer.goku .trim { fill: #f4f2fb; }
/* ---- C-3PO (voir dancers.js) : tout doré, câbles rouges et bleus au ventre, bas de la jambe droite argenté. ---- */
.dancer.c3po :is(.skin, .shirt, .pants, .shoe) { fill: #e0b23a; }
.dancer.c3po .shin.L > .pants { fill: #c3c9d4; }
.dancer.c3po .belt { fill: #b8891f; }
.dancer.c3po .hi { fill: #fff6c8; opacity: .55; }
.dancer.c3po .head .rim2 { fill: #000; opacity: .15; }
.dancer.c3po .pocket { display: none; }
.dancer.c3po .sole { stroke: #8a6414; }
.dancer.c3po .trim { fill: #fff6c8; }
.dancer.c3po .plate { fill: #efc44e; stroke: var(--rim); stroke-width: 1; }
.dancer.c3po .dome { fill: #e8bc44; stroke: var(--rim); stroke-width: 1.7; stroke-linejoin: round; paint-order: stroke; }
.dancer.c3po .disc { fill: #c9971f; stroke: var(--rim); stroke-width: .9; }
.dancer.c3po .lamp { fill: #ffe066; stroke: #7a4a00; stroke-width: .9; }
.dancer.c3po .pupil { fill: #6a3a00; }
.dancer.c3po .mouth { fill: #2a1c04; }
.dancer.c3po .wires { fill: #2b2f38; }
.dancer.c3po .wire { fill: none; stroke-width: 1.4; stroke-linecap: round; }
.dancer.c3po .wire.r { stroke: #e0412f; }
.dancer.c3po .wire.b { stroke: #3a7bd5; }
/* ---- Ninja (voir dancers.js) : tenue et cagoule noires, bandeau, ceinture et shuriken à la couleur du joueur. ---- */
.dancer.ninja :is(.skin, .shirt, .pants, .shoe, .hood) { fill: #1c1f2b; }
.dancer.ninja .hood { stroke: var(--rim); stroke-width: 1.7; stroke-linejoin: round; paint-order: stroke; }
.dancer.ninja .slit { fill: #e3b08c; }
.dancer.ninja :is(.band, .belt) { fill: var(--owner); stroke: var(--rim); stroke-width: .8; }
.dancer.ninja .star { fill: #c9cfdc; stroke: var(--rim); stroke-width: .7; }
.dancer.ninja .hi { fill: #fff; opacity: .16; }
.dancer.ninja .head .rim2 { display: none; }
.dancer.ninja .pocket { display: none; }
.dancer.ninja .sole { stroke: #4a5068; }
.dancer.ninja .trim { fill: #4a5068; }
.dancer.ninja .eye { fill: #fff; stroke: #0d0d14; stroke-width: .6; }
.dancer.ninja .pupil { fill: #0d0d14; }
.dancer.ninja .brow { fill: none; stroke: #0d0d14; stroke-width: 1.6; stroke-linecap: round; }
/* ---- Danseuse au hijab (voir dancers.js) : hijab et ceinture à la couleur du joueur, robe longue crème, pantalon sombre. ---- */
.dancer.hijab .skin { fill: #c98e66; }
.dancer.hijab .shirt { fill: #f1e6d2; }
.dancer.hijab .pants { fill: #2c3350; }
.dancer.hijab :is(.hijab, .tie) { fill: var(--owner); stroke: var(--rim); stroke-width: 1.4; stroke-linejoin: round; paint-order: stroke; }
.dancer.hijab .tie { stroke-width: .8; }
.dancer.hijab .button { fill: #b89a70; }
.dancer.hijab .pin { fill: #fff; stroke: var(--rim); stroke-width: .6; }
.dancer.hijab .hi { fill: #fff; opacity: .3; }
.dancer.hijab .head .rim2 { fill: #a06a48; }
.dancer.hijab .head .ink { stroke: #5a2a14; }
.dancer.hijab .head .hijab ~ .ink { stroke: var(--rim); opacity: .45; }
.dancer.hijab .brow { stroke: #2a1408; stroke-width: 1.3; }
.dancer.hijab .eye { fill: #fff; stroke: #2a1408; stroke-width: .7; }
.dancer.hijab .pupil { fill: #3a1c0c; }
.dancer.hijab .shine { fill: #fff; }
.dancer.hijab .cheek { fill: #e0705a; opacity: .45; }
.dancer.hijab .pocket { display: none; }
/* ---- Skater (voir dancers.js) : bonnet et chemise à carreaux à la couleur du joueur, t-shirt blanc, planche. ---- */
.dancer.skater .skin { fill: #f0c49c; }
.dancer.skater :is(.shirt, .beanie) { fill: var(--owner); }
.dancer.skater .beanie { stroke: var(--rim); stroke-width: 1.2; stroke-linejoin: round; paint-order: stroke; }
.dancer.skater .plaid { fill: none; stroke: #000; stroke-width: 2.4; opacity: .28; }
.dancer.skater .tee { fill: #f4f2fb; }
.dancer.skater .logo { fill: #ffd83a; stroke: var(--rim); stroke-width: .7; }
.dancer.skater .pants { fill: #8a8466; }
.dancer.skater .shoe { fill: #24262f; }
.dancer.skater .trim { fill: #f4f2fb; }
.dancer.skater .hair { fill: #6b4423; }
.dancer.skater .hi { fill: #fff; opacity: .3; }
.dancer.skater .head .rim2 { fill: #c4906a; }
.dancer.skater .head .ink { stroke: #5a2a14; }
.dancer.skater .head .beanie ~ .ink { stroke: #000; opacity: .3; }
.dancer.skater .brow { stroke: #3a2010; stroke-width: 1.3; }
.dancer.skater .eye { fill: #fff; stroke: #2a1408; stroke-width: .6; }
.dancer.skater .pupil { fill: #2a1408; }
.dancer.skater .shine { fill: #fff; }
.dancer.skater .deck { fill: #ffd83a; stroke: var(--rim); stroke-width: 1.2; }
.dancer.skater .grip { fill: #2b2f38; }
.dancer.skater .truck { fill: #b9c2d1; }
.dancer.skater .wheel { fill: #f4f2fb; stroke: var(--rim); stroke-width: .7; }
/* Planche sous les pieds : visible seulement pendant un trick (règles générées par dancers.js). */
.dancer .ride { visibility: hidden; transform-origin: 100px 289px; }
/* ---- Nonne (voir dancers.js) : habit et voile noirs, guimpe et col blancs, bandeau à la couleur du joueur. ---- */
.dancer.nonne .skin { fill: #f2c8a6; }
.dancer.nonne :is(.shirt, .pants, .shoe, .veil) { fill: #1d1e27; }
.dancer.nonne .veil { stroke: var(--rim); stroke-width: 1.4; stroke-linejoin: round; paint-order: stroke; }
.dancer.nonne .coif { fill: #f4f2fb; stroke: var(--rim); stroke-width: .9; stroke-linejoin: round; paint-order: stroke; }
.dancer.nonne .band { fill: var(--owner); stroke: var(--rim); stroke-width: .8; stroke-linejoin: round; paint-order: stroke; }
.dancer.nonne .tie { fill: var(--owner); stroke: var(--rim); stroke-width: .8; }
.dancer.nonne .hi { fill: #fff; opacity: .16; }
.dancer.nonne .sole { stroke: #4a4c5a; }
.dancer.nonne .trim { fill: #4a4c5a; }
.dancer.nonne .pocket { display: none; }
.dancer.nonne .head .rim2 { fill: #c4906a; }
.dancer.nonne .head .ink { stroke: #5a2a14; }
.dancer.nonne .head .coif ~ .ink { stroke: var(--rim); opacity: .45; }
.dancer.nonne .brow { stroke: #2a1408; stroke-width: 1.3; }
.dancer.nonne .eye { fill: #fff; stroke: #2a1408; stroke-width: .7; }
.dancer.nonne .pupil { fill: #3a1c0c; }
.dancer.nonne .shine { fill: #fff; }
.dancer.nonne .cheek { fill: #e0705a; opacity: .45; }
/* ---- Mouton rockeur (voir dancers.js) : laine crème, perfecto clouté, sabots noirs, guitare rouge, bandana à la couleur du joueur. ---- */
.dancer.mouton :is(.skin, .wool, .pants, .tee) { fill: #f3e6c4; }
.dancer.mouton .wool { stroke: #c4a878; stroke-width: .7; }
.dancer.mouton .wool.joint { stroke: none; }
.dancer.mouton .muzzle { fill: #fbf3df; }
.dancer.mouton .ear { fill: #e9a49a; }
.dancer.mouton .shirt { fill: #17141c; }
.dancer.mouton :is(.hoof, .belt) { fill: #141116; }
.dancer.mouton .hi { fill: #fff; opacity: .16; }
.dancer.mouton .head .hi { fill: #fffaf0; opacity: .7; }
.dancer.mouton .head .rim2 { fill: #dcc597; }
.dancer.mouton .head .ink { stroke: #4a2e1a; }
.dancer.mouton .curl { stroke: #b89a68; stroke-width: .8; opacity: 1; }
.dancer.mouton .shades { fill: #08080b; stroke: #08080b; stroke-width: .8; stroke-linejoin: round; }
.dancer.mouton .lens { fill: #fff; opacity: .45; }
.dancer.mouton .bandana { fill: var(--owner); stroke: var(--rim); stroke-width: .8; stroke-linejoin: round; paint-order: stroke; }
.dancer.mouton .head .bandana ~ .ink { stroke: #000; opacity: .35; }
.dancer.mouton .dot { fill: #fff; opacity: .85; }
.dancer.mouton .stud { fill: #d5d9e2; }
.dancer.mouton .strap { fill: #1a171f; stroke: #d5d9e2; stroke-width: .5; }
.dancer.mouton :is(.skull, .guard, .bolt) { fill: #f7f5ef; }
.dancer.mouton .guard { stroke: #9a9590; stroke-width: .4; }
.dancer.mouton .guitar { fill: #e3202c; stroke: var(--rim); stroke-width: 1; stroke-linejoin: round; }
.dancer.mouton :is(.metal, .knob) { fill: #c3cad6; }
.dancer.mouton .fretboard { fill: #6e4424; stroke: var(--rim); stroke-width: .6; }
.dancer.mouton .headstock { fill: #e6b867; stroke: var(--rim); stroke-width: .6; }
.dancer.mouton .frets { stroke: #e6d9b8; stroke-width: .5; }
.dancer.mouton .strings { stroke: #e8ecf2; stroke-width: .35; }
.dancer.mouton .sole { stroke: #3a3540; }
/* ---- R2-D2 (voir dancers.js) : blanc, argent et bleu, lampe à la couleur du joueur ; pivots propres au dessin. ---- */
.dancer.r2d2 .r-white { fill: #eef1f7; }
.dancer.r2d2 .r-silver { fill: #b9c2d1; }
.dancer.r2d2 .r-grey { fill: #7d8697; }
.dancer.r2d2 .r-blue { fill: #2f63d8; }
.dancer.r2d2 .r-dark { fill: #10131b; }
.dancer.r2d2 .r-red { fill: #ff3b3b; }
.dancer.r2d2 .eye { fill: #5b8cff; }
.dancer.r2d2 .lamp { fill: var(--owner); }
.dancer.r2d2 :is(.r-white, .r-silver, .r-grey) { stroke: #1d2433; stroke-width: 1.3; stroke-linejoin: round; paint-order: stroke; }
.dancer.r2d2 .hi { fill: #fff; opacity: .55; }
.dancer.r2d2 .upper { transform-origin: 100px 245px; }
.dancer.r2d2 .head  { transform-origin: 100px 140px; }
.dancer.r2d2 .thigh { transform-origin: 66px 152px; }
.dancer.r2d2 .shin  { transform-origin: 66px 258px; }
.dancer.r2d2 .foot  { transform-origin: 66px 270px; }
.dancer.r2d2 .arm   { transform-origin: 80px 198px; }
.dancer.r2d2 .fore  { transform-origin: 80px 215px; }
/* Articulations (pivots en coordonnées du dessin) ; les images clés sont générées par dancers.js. */
.dancer g, .dancer .shadow { transform-box: view-box; }
.dancer.on :is(.all, .shadow, .upper, .head, .thigh, .shin, .foot, .arm, .fore, .ride) {
  animation-duration: var(--cycle, 1.2s); animation-timing-function: ease-in-out; animation-iteration-count: infinite; }
.dancer .all { transform-origin: 100px 287px; }
.dancer .shadow { transform-origin: 100px 288px; }
.dancer .upper { transform-origin: 100px 160px; }
.dancer .head  { transform-origin: 100px 68px; }
.dancer .thigh { transform-origin: 91px 160px; }
.dancer .shin  { transform-origin: 88px 218px; }
.dancer .foot  { transform-origin: 86px 272px; }
.dancer .arm   { transform-origin: 78px 92px; }
.dancer .fore  { transform-origin: 72.5px 132px; }
@media (prefers-reduced-motion: reduce) { .dancer.on * { animation: none !important; } .tile, .tile::after { transition: none; } }
