/* Cartes succès : la matière (cadre, papier, grain, fibre, lustre, holo, prisme, dorure) et le mouvement lus en variables
   CSS (--rx, --ry, --t, --bx, --by…) que le ressort de moteur.js écrit image par image. Portée bornée à .cs. */
.cs {
  --titre: var(--breeo-font-cal);
  --texte: var(--breeo-font-cal);
  --tartan: #b3472b;
  --fond: var(--breeo-page);
}
/* ---------- carte ---------- */
/* La lumière est fixe, en haut à gauche. Ce qui bouge, c'est la carte : chaque calque lit son inclinaison (--rx, --ry, --t) et déplace ses reflets en conséquence. */
.cs .slot {
  position: relative;
  width: calc(220px * var(--k, 1));
  height: calc(308px * var(--k, 1));
  flex: none;
}
.cs .slot > .carte {
  position: absolute;
  left: 0;
  top: 0;
  transform: scale(var(--k, 1));
  transform-origin: 0 0;
}
.cs .carte {
  --rx: 0;
  --ry: 0;
  --t: 0;
  --o: 0;
  --bx: 50%;
  --by: 50%;
  --hx: 50%;
  --hy: 50%;
  width: 220px;
  height: 308px;
  perspective: 900px;
  font-family: var(--titre);
  user-select: none;
  -webkit-user-select: none;
  color: #191918;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.cs .tilt {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  will-change: transform;
}
.cs .flip {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(0.2, 0.9, 0.25, 1.12);
}
.cs .carte.tournee .flip {
  transform: rotateY(180deg);
}
.cs .tranche {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: var(--bord, #9d9c96);
}
.cs .face {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow:
    0 1px 1.5px rgba(25, 25, 24, 0.22),
    0 3px 6px -2px rgba(25, 25, 24, 0.18),
    var(--sx, 0) var(--sy, 10px) calc(26px + var(--o, 0) * 14px) -18px
      var(--oc, rgba(25, 25, 24, 0.55)),
    calc(var(--sx, 0px) * -0.7) calc(var(--sy, 10px) * -0.35)
      calc(20px + var(--t, 0) * 16px) -14px
      rgba(var(--rb, 0, 0, 0), calc(var(--t, 0) * var(--rba, 0)));
}
.cs .face.b {
  transform: translateZ(-2px) rotateY(180deg);
}
.cs .calque {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cs .grain {
  background-image: var(--cs-grain);
  background-size: var(--gs, 150px) var(--gs, 150px);
  background-position: var(--gx, 0) var(--gy, 0);
  mix-blend-mode: overlay;
  opacity: 0.32;
}
.cs .metal {
  mix-blend-mode: overlay;
  background:
    linear-gradient(
        115deg,
        transparent 30%,
        rgba(255, 255, 255, 0.95) 46%,
        rgba(255, 255, 255, 0.2) 52%,
        transparent 64%
      )
      var(--bx) var(--by) / 320% 320% no-repeat,
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.1) 0 1px,
      transparent 1px 2px
    );
  opacity: calc(0.45 + var(--t) * 0.55);
}
.cs .r-epique .cadre > .metal {
  background:
    linear-gradient(
        115deg,
        transparent 34%,
        rgba(255, 214, 190, 0.9) 47%,
        rgba(255, 255, 255, 0.25) 51%,
        transparent 62%
      )
      var(--bx) var(--by) / 300% 300% no-repeat,
    repeating-linear-gradient(
      calc(135deg + var(--ry) * 0.4deg),
      rgba(255, 230, 210, 0.13) 0 1px,
      transparent 1px 3px,
      rgba(0, 0, 0, 0.06) 3px 4px
    );
}
.cs .r-legendaire .cadre > .metal {
  background:
    radial-gradient(
      60% 45% at var(--hx) var(--hy),
      rgba(255, 250, 230, 0.95),
      rgba(255, 236, 180, 0.35) 40%,
      transparent 70%
    ),
    linear-gradient(
        115deg,
        transparent 32%,
        rgba(255, 255, 255, 1) 47%,
        rgba(255, 240, 200, 0.3) 53%,
        transparent 64%
      )
      var(--bx) var(--by) / 280% 280% no-repeat;
  opacity: calc(0.5 + var(--t) * 0.5);
}
.cs .lustre {
  background: linear-gradient(
      115deg,
      transparent 34%,
      rgba(255, 255, 255, 0.55) 47%,
      rgba(255, 255, 255, 0.1) 53%,
      transparent 66%
    )
    var(--bx) var(--by) / 300% 300% no-repeat;
  mix-blend-mode: soft-light;
  opacity: calc(0.35 + var(--t) * 0.65);
}
.cs .lustre.l-brillante,
.cs .lustre.l-holo,
.cs .lustre.l-prisme {
  mix-blend-mode: screen;
  background:
    linear-gradient(
        115deg,
        transparent 38%,
        rgba(255, 255, 255, 0.34) 47%,
        rgba(255, 255, 255, 0.08) 51%,
        transparent 58%
      )
      var(--bx) var(--by) / 300% 300% no-repeat,
    linear-gradient(
        115deg,
        transparent 56%,
        rgba(255, 255, 255, 0.14) 60%,
        transparent 64%
      )
      var(--bx) var(--by) / 300% 300% no-repeat;
  opacity: calc(0.5 + var(--t) * 0.5);
}
.cs .holo {
  mix-blend-mode: color-dodge;
  background: repeating-linear-gradient(
      115deg,
      #ff8a8a 0%,
      #ffd88a 3.5%,
      #94f2bd 7%,
      #86ccff 10.5%,
      #c9a2ff 14%,
      #ff8a8a 17.5%
    )
    var(--hx) var(--hy) / 420% 420%;
  -webkit-mask-image: repeating-linear-gradient(
    45deg,
    #000 0 1px,
    rgba(0, 0, 0, 0.3) 1px 2.5px
  );
  mask-image: repeating-linear-gradient(
    45deg,
    #000 0 1px,
    rgba(0, 0, 0, 0.3) 1px 2.5px
  );
  opacity: calc(0.1 + var(--t) * 0.38);
}
.cs .carte.clair .holo {
  mix-blend-mode: multiply;
  background: repeating-linear-gradient(
      115deg,
      #ffc2c2 0%,
      #ffe7b8 3.5%,
      #c6f5d8 7%,
      #bfe2ff 10.5%,
      #e2cdff 14%,
      #ffc2c2 17.5%
    )
    var(--hx) var(--hy) / 420% 420%;
  opacity: calc(0.45 + var(--t) * 0.45);
}
.cs .holo.plein {
  -webkit-mask-image: linear-gradient(#000, #000);
  mask-image: linear-gradient(#000, #000);
  mix-blend-mode: soft-light;
  opacity: calc(0.16 + var(--t) * 0.42);
}
/* Paillettes imprimées : elles ne glissent pas, elles s'allument quand la bande de lumière passe dessus. */
.cs .paillette {
  background-image: var(--cs-paillette);
  background-size: 120px 120px;
  mix-blend-mode: screen;
  opacity: calc(0.08 + var(--t) * 0.7);
  -webkit-mask-image: linear-gradient(
    115deg,
    rgba(0, 0, 0, 0.25) 28%,
    #000 46%,
    #000 52%,
    rgba(0, 0, 0, 0.25) 70%
  );
  -webkit-mask-size: 300% 300%;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: var(--bx) var(--by);
  mask-image: linear-gradient(
    115deg,
    rgba(0, 0, 0, 0.25) 28%,
    #000 46%,
    #000 52%,
    rgba(0, 0, 0, 0.25) 70%
  );
  mask-size: 300% 300%;
  mask-repeat: no-repeat;
  mask-position: var(--bx) var(--by);
}
.cs .carte.clair .paillette {
  mix-blend-mode: multiply;
  filter: invert(1) sepia(1) saturate(2.5) hue-rotate(-15deg) brightness(0.9);
  opacity: calc(0.05 + var(--t) * 0.2);
}
/* Arête : la tranche de la carte accroche la lumière du côté qui se lève vers elle. */
.cs .reflet {
  background: radial-gradient(
    42% 30% at var(--bx) var(--by),
    rgba(255, 255, 255, 0.5),
    rgba(255, 255, 255, 0.12) 45%,
    transparent 72%
  );
  mix-blend-mode: soft-light;
  opacity: calc(var(--t) * 0.85);
}
.cs .cs-scene.monte .face {
  animation: monte 1s ease-out var(--dm, 0s);
}
@keyframes monte {
  35% {
    filter: brightness(1.1) saturate(1.2);
  }
}
.cs .fibre {
  background-image: var(--cs-fibre);
  background-size: var(--fs, 180px) calc(var(--fs, 180px) * 1.33);
  background-position: var(--fx, 0) var(--fy, 0);
  mix-blend-mode: multiply;
  opacity: var(--fo, 0.16);
}
/* Toucher : le grain du carton n'apparaît vraiment que là où la lumière accroche, comme sur une carte qu'on penche sous une lampe. */
.cs .toucher {
  background-image: var(--cs-grain);
  background-size: var(--gs, 150px) var(--gs, 150px);
  background-position: var(--gx, 0) var(--gy, 0);
  mix-blend-mode: overlay;
  opacity: calc(var(--t) * 0.9);
  -webkit-mask-image: linear-gradient(
    115deg,
    transparent 30%,
    #000 46%,
    #000 52%,
    transparent 68%
  );
  -webkit-mask-size: 300% 300%;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: var(--bx) var(--by);
  mask-image: linear-gradient(
    115deg,
    transparent 30%,
    #000 46%,
    #000 52%,
    transparent 68%
  );
  mask-size: 300% 300%;
  mask-repeat: no-repeat;
  mask-position: var(--bx) var(--by);
}
/* gaufrage : le nom et le numéro sont pressés dans le carton ; le liseré clair et l'ombre suivent l'angle de la lumière */
.cs .papier .nom:not(.dore),
.cs .papier .gauf {
  text-shadow:
    calc(var(--ry) * -0.05px) calc(1px + var(--rx) * 0.05px) 0
      rgba(255, 255, 255, calc(0.6 + var(--t) * 0.35)),
    calc(var(--ry) * 0.05px) calc(-0.6px + var(--rx) * -0.05px) 0.2px
      rgba(25, 25, 24, calc(0.12 + var(--t) * 0.16));
}
.cs .papier .nom.dore,
.cs .vitre .nom {
  filter: drop-shadow(
      calc(var(--ry) * 0.05px) calc(-0.6px + var(--rx) * -0.05px) 0
        rgba(0, 0, 0, calc(0.25 + var(--t) * 0.25))
    )
    drop-shadow(
      calc(var(--ry) * -0.05px) calc(0.8px + var(--rx) * 0.05px) 0
        rgba(255, 248, 220, calc(0.18 + var(--t) * 0.3))
    );
}
.cs .vitre .gauf {
  text-shadow:
    calc(var(--ry) * 0.05px) calc(-0.6px + var(--rx) * -0.05px) 0
      rgba(0, 0, 0, 0.5),
    calc(var(--ry) * -0.05px) calc(0.7px + var(--rx) * 0.05px) 0
      rgba(255, 240, 200, calc(0.12 + var(--t) * 0.3));
}
.cs .papier .cond {
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}
.cs .rim {
  border-radius: 14px;
  box-shadow:
    inset calc(1px + var(--ry) * -0.14px) calc(1px + var(--rx) * 0.14px)
      0 -0.2px rgba(255, 255, 255, calc(0.28 + var(--t) * 0.5)),
    inset calc(-1px + var(--ry) * -0.14px) calc(-1px + var(--rx) * 0.14px)
      0 -0.2px rgba(0, 0, 0, calc(0.12 + var(--t) * 0.12));
}
.cs .relief svg {
  filter: drop-shadow(
    calc(var(--ry) * -0.2px) calc(2px + var(--rx) * 0.2px) 0
      var(--rel, rgba(0, 0, 0, 0.2))
  );
}
.cs .cadre {
  position: absolute;
  inset: 0;
}
.cs .papier {
  position: absolute;
  inset: 6px;
  border-radius: 9px;
  background: #fbfaf7;
  box-shadow:
    0 0 0 1px rgba(25, 25, 24, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.cs .art {
  position: relative;
  margin: 7px 7px 0;
  height: 166px;
  flex: none;
  border-radius: 7px;
  overflow: hidden;
}
.cs .art::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 7px;
  pointer-events: none;
  box-shadow:
    inset calc(var(--ry) * -0.35px) calc(4px + var(--rx) * 0.35px) 9px -4px
      rgba(0, 0, 0, var(--ao, 0.4)),
    inset 0 0 0 1px rgba(0, 0, 0, var(--ab, 0.18));
}
.cs .trame {
  position: absolute;
  inset: 0;
  opacity: 0.9;
}
.cs .sym {
  position: absolute;
  left: 0;
  right: 0;
  top: 24px;
  display: flex;
  justify-content: center;
}
.cs .sol {
  position: absolute;
  left: 50%;
  bottom: 14px;
  width: 90px;
  height: 12px;
  margin-left: -45px;
  border-radius: 50%;
  filter: blur(5px);
}
.cs .puce {
  position: absolute;
  top: 8px;
  height: 17px;
  padding: 0 7px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--texte);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.15em;
}
.cs .puce.fam {
  left: 8px;
}
.cs .puce.hz {
  right: 8px;
  padding-left: 5px;
}
.cs .txt {
  padding: 10px 12px 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-height: 0;
}
.cs .nom {
  font-size: 19px;
  line-height: 22px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cs .nom.dore {
  background: linear-gradient(
      100deg,
      #6f5216 0%,
      #b88b32 30%,
      #f3dc98 45%,
      #9c7630 60%,
      #5e4512 100%
    )
    var(--bx) 0/300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cs .nom.dore:not(.vitre *) {
  background-image: linear-gradient(
    100deg,
    #4c370c 0%,
    #7d5c1a 32%,
    #b58d3c 47%,
    #6e5018 62%,
    #3f2e0a 100%
  );
}
.cs .pied > span {
  white-space: nowrap;
}
.cs .pied > .gauf {
  flex: none;
}
.cs .record {
  font-family: var(--texte);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 2px 0 3px;
}
.cs .cond {
  font-family: var(--texte);
  font-size: 11.5px;
  line-height: 15px;
  color: #4a4a45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cs .pied {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  padding: 0 12px 10px;
  font-family: var(--texte);
  font-size: 8.5px;
  font-weight: 700;
  /* Cal est plus large que la Bricolage de la page de test : l'interlettrage se resserre pour que « COMMUNE · BRILLANTE »
     et le numéro tiennent sans se toucher. */
  letter-spacing: 0.1em;
  color: #8f8f89;
}
.cs .gemmes {
  display: flex;
  gap: 3px;
}
.cs .gemmes i {
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
}
.cs .compte {
  position: absolute;
  right: -8px;
  top: -8px;
  z-index: 3;
  min-width: 30px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--tartan);
  color: #fff;
  font-family: var(--texte);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 3px var(--fond);
}
.cs .acheter {
  all: unset;
  box-sizing: border-box;
  position: absolute;
  left: 50%;
  top: 64%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  padding: 6px 11px;
  border-radius: 999px;
  background: #191918;
  color: #fff;
  font-family: var(--texte);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}
.cs .acheter:disabled {
  background: transparent;
  color: var(--encre3, #8a8a84);
  box-shadow: inset 0 0 0 1px rgba(25, 25, 24, 0.18);
  cursor: default;
}
.cs .acheter:focus-visible {
  outline: 2px solid #191918;
  outline-offset: 2px;
}
.cs .tapis .compte {
  box-shadow: 0 0 0 3px var(--tapis);
}
/* épreuve : défi pas encore gagné, dessin à l'encre sans couleur */
.cs .art.ep {
  background: #f2f0ea;
}
.cs .art.ep::after {
  box-shadow: inset 0 0 0 1.5px var(--epc);
  border-radius: 7px;
}
.cs .art.ep .trame {
  opacity: 0.5;
}
.cs .barre-prog {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: #e9e8e3;
  overflow: hidden;
  margin-right: 10px;
}
.cs .barre-prog i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--epc);
}
.cs .remplir {
  position: absolute;
  inset: 0;
  clip-path: circle(0% at 50% 33%);
  animation: remplir 0.8s 0.7s cubic-bezier(0.3, 0.55, 0.3, 1) forwards;
}
@keyframes remplir {
  to {
    clip-path: circle(140% at 50% 33%);
  }
}
/* légendaire : pleine image */
.cs .nuit {
  position: absolute;
  inset: 7px;
  border-radius: 8px;
  overflow: hidden;
  background: radial-gradient(
    120% 80% at 50% 22%,
    #2c2452,
    #16112a 52%,
    #0b0a10
  );
  box-shadow:
    inset 0 0 0 1px rgba(246, 230, 180, 0.55),
    inset 0 0 0 3px rgba(11, 10, 16, 0.9),
    inset 0 0 0 4px rgba(246, 230, 180, 0.25);
}
.cs .halo {
  position: absolute;
  left: 50%;
  top: 96px;
  width: 220px;
  height: 220px;
  margin: -110px 0 0 -110px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(240, 200, 110, 0.36),
    rgba(240, 200, 110, 0.08) 45%,
    transparent 68%
  );
}
@keyframes respire {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}
.cs .etoiles {
  background:
    radial-gradient(circle, rgba(255, 244, 214, 0.9) 0 0.8px, transparent 1.3px)
      0 0/23px 29px,
    radial-gradient(circle, rgba(255, 255, 255, 0.7) 0 0.6px, transparent 1.1px)
      9px 13px/31px 37px,
    radial-gradient(circle, rgba(246, 220, 160, 0.8) 0 0.7px, transparent 1.2px)
      17px 5px/41px 47px;
  opacity: 0.7;
}
@keyframes scintille {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 0.9;
  }
}
.cs .foil {
  mix-blend-mode: color-dodge;
  background:
    repeating-linear-gradient(
        115deg,
        rgba(246, 231, 180, 0) 0%,
        rgba(216, 181, 106, 0.55) 6%,
        rgba(255, 246, 216, 0) 12%,
        rgba(196, 154, 74, 0.45) 18%,
        rgba(246, 231, 180, 0) 24%
      )
      var(--hx) var(--hy) / 260% 260%,
    repeating-linear-gradient(
        65deg,
        rgba(255, 143, 143, 0) 0%,
        rgba(156, 242, 196, 0.18) 8%,
        rgba(140, 202, 247, 0) 16%
      )
      var(--bx) var(--hy) / 300% 300%;
  opacity: calc(0.3 + var(--t) * 0.55);
}
.cs .sym.grand {
  top: 22px;
}
/* Le dorure est imprimée : l'or ne vit que sur les étoiles, et l'ombre du symbole ne bouge pas avec l'inclinaison. */
.cs .nuit .relief svg {
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.4));
}
.cs .foil {
  -webkit-mask-image:
    radial-gradient(circle, #000 0 1.4px, transparent 2.4px),
    radial-gradient(circle, #000 0 1.1px, transparent 2px),
    radial-gradient(circle, #000 0 1.2px, transparent 2.2px);
  -webkit-mask-size:
    23px 29px,
    31px 37px,
    41px 47px;
  -webkit-mask-position:
    0 0,
    9px 13px,
    17px 5px;
  mask-image:
    radial-gradient(circle, #000 0 1.4px, transparent 2.4px),
    radial-gradient(circle, #000 0 1.1px, transparent 2px),
    radial-gradient(circle, #000 0 1.2px, transparent 2.2px);
  mask-size:
    23px 29px,
    31px 37px,
    41px 47px;
  mask-position:
    0 0,
    9px 13px,
    17px 5px;
  opacity: calc(0.5 + var(--t) * 0.5) !important;
}
.cs .vitre {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  height: 100px;
  border-radius: 8px;
  background: linear-gradient(180deg, #1a1630, #100d1c);
  box-shadow:
    inset 0 0 0 1px rgba(239, 220, 166, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  display: flex;
  flex-direction: column;
  padding: 9px 11px 8px;
}
.cs .vitre .nom {
  background: linear-gradient(
      100deg,
      #fff2c6 0%,
      #d9b25e 30%,
      #fff8e0 45%,
      #c39a48 70%,
      #fff2c6 100%
    )
    var(--bx) 0/300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 20px;
  line-height: 23px;
}
.cs .vitre .cond {
  color: #e3dcc6;
  margin-top: 4px;
  -webkit-line-clamp: 2;
}
.cs .vitre .pied {
  padding: 0;
  margin-top: auto;
  color: rgba(239, 220, 166, 0.7);
}

/* dos & vide */
.cs .dos {
  position: absolute;
  inset: 0;
  background: #191918;
}
.cs .dos .grille {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(179, 71, 43, 0.34) 0 1px,
      transparent 1px 9px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(179, 71, 43, 0.24) 0 1px,
      transparent 1px 9px
    );
}
.cs .dos .vign {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    70% 55% at 50% 50%,
    rgba(25, 25, 24, 0),
    rgba(25, 25, 24, 0.85)
  );
}
.cs .dos .filet {
  position: absolute;
  inset: 10px;
  border-radius: 9px;
  box-shadow: inset 0 0 0 1px rgba(244, 216, 205, 0.3);
}
.cs .dos .logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 88px;
  height: 88px;
  margin: -50px 0 0 -44px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #2e2b25, #121211);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.3),
    0 0 0 6px #191918,
    0 0 0 7px rgba(179, 71, 43, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f4d8cd;
  font-family: var(--titre);
  font-size: 50px;
  padding-bottom: 6px;
}
.cs .dos .sais {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  text-align: center;
  font-family: var(--texte);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.34em;
  color: rgba(244, 216, 205, 0.72);
}
.cs .fantome {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: repeating-linear-gradient(135deg, #f3f3f1 0 7px, #efefec 7px 8px);
  box-shadow: inset 0 0 0 1.5px rgba(25, 25, 24, 0.12);
}
.cs .carte.vide {
  cursor: default;
}
.cs .carte.vide .face {
  box-shadow: none;
}

/* Carte de joueur */
.cs .cj-portrait {
  position: relative;
  margin: 7px 7px 0;
  height: 150px;
  flex: none;
  border-radius: 7px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.cs .cj-initiales {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #fbfaf7;
  color: #191918;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--titre);
  font-size: 36px;
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.55),
    0 10px 18px -8px rgba(0, 0, 0, 0.45);
}
.cs .cj-xp {
  height: 7px;
  border-radius: 4px;
  background: rgba(25, 25, 24, 0.1);
  overflow: hidden;
  display: flex;
  margin-top: 6px;
}
.cs .cj-xp i {
  display: block;
  height: 100%;
  background: #191918;
}
.cs .cj-xp i.auj {
  background: repeating-linear-gradient(
    135deg,
    #191918 0 2px,
    rgba(25, 25, 24, 0.35) 2px 4px
  );
}
.cs .cj-xp-l {
  display: flex;
  justify-content: space-between;
  font-family: var(--texte);
  font-size: 10.5px;
  color: #56564f;
}
.cs .cj-xp-l .auj {
  color: #191918;
}
.cs .cj-verso {
  padding: 16px 14px;
  gap: 9px;
  font-family: var(--texte);
}
.cs .cj-eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #56564f;
}
.cs .cj-palier {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #8f8f89;
}
.cs .cj-palier span:first-child {
  font-family: var(--titre);
  font-size: 14px;
}
.cs .cj-palier.fait {
  color: #191918;
}
.cs .cj-palier.ici span:first-child {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cs .cj-suivant {
  margin-top: auto;
  font-size: 11px;
  line-height: 15px;
  color: #56564f;
}

/* La loupe : une carte de grille agrandie au centre, sur un voile sombre ; elle se retourne au clic, Échap ou un clic à
   côté la referme (même geste que la page de test). */
@keyframes cs-apparait {
  from {
    opacity: 0;
  }
}
.cs-loupe {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px;
  background: rgb(10 10 12 / 0.72);
  font-family: var(--breeo-font-text);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: cs-apparait 0.25s ease-out;
}
.cs-loupe .aide {
  font-size: 12px;
  color: rgb(247 245 239 / 0.6);
}
.cs-agrandir .carte {
  cursor: zoom-in;
}
@media (prefers-reduced-motion: reduce) {
  .cs .flip {
    transition: none;
  }
  .cs-loupe {
    animation: none;
  }
}
