/* Plus ou moins : tapis de jeu, vraies cartes, dos de foire, retournement 3D. */
.tapis {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  padding: 14px 10px;
  background: #2fb0c2;
  border: var(--trait) solid var(--encre);
  border-radius: 28px;
  box-shadow: inset 0 0 0 6px rgb(255 255 255 / .25), var(--ombre);
}
.score-ligne { display: flex; gap: var(--e2); }
.pastille { padding: 3px 14px; background: var(--papier); border: 2px solid var(--encre); border-radius: 999px; font-weight: 800; font-size: 15px; }
.pastille b { font: 400 20px/1 var(--titre); margin-left: 4px; }
.card-hand { display: flex; gap: clamp(14px, 6vw, 36px); justify-content: center; }
.subline { font-weight: 700; font-size: 14px; }

.carte { width: clamp(96px, 27vw, 150px); aspect-ratio: 5 / 7; perspective: 800px; }
.carte-faces {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .65s var(--rebond);
}
.carte.revele .carte-faces { transform: rotateY(180deg); }
#currentCard .carte-faces { transition: none; }
.face {
  position: absolute;
  inset: 0;
  border: var(--trait) solid var(--encre);
  border-radius: 12px;
  box-shadow: var(--ombre);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.dos {
  display: grid;
  place-items: center;
  background:
    conic-gradient(from 45deg, var(--pomme) 25%, var(--soleil) 0 50%, var(--pomme) 0 75%, var(--soleil) 0) 0 0 / 18px 18px;
  outline: 5px solid var(--papier);
  outline-offset: -9px;
}
.dos span {
  display: grid;
  place-items: center;
  width: 46%;
  aspect-ratio: 1;
  background: var(--papier);
  border: var(--trait) solid var(--encre);
  border-radius: 50%;
  font: 400 clamp(16px, 5vw, 24px)/1 var(--titre);
  transform: rotate(-10deg);
}
.recto {
  display: grid;
  place-items: center;
  align-content: center;
  background: var(--papier);
  color: var(--encre);
  transform: rotateY(180deg);
}
.recto.rouge { color: var(--rouge-tampon); }
.recto svg { fill: currentColor; }
.valeur { font: 400 clamp(38px, 12vw, 60px)/1 var(--titre); }
.symbole svg { width: clamp(26px, 8vw, 40px); height: auto; }
.coin { position: absolute; top: 6px; left: 7px; display: grid; justify-items: center; font: 400 16px/1 var(--titre); }
.coin svg { width: 13px; margin-top: 2px; }
.coin.bas { top: auto; left: auto; bottom: 6px; right: 7px; transform: rotate(180deg); }

.button-row.duo { flex-wrap: nowrap; }
.button-row.duo > button { flex: 1 1 0; min-width: 0; padding-inline: 12px; font-size: 21px; }
.fleche { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
#continueCards { width: min(100%, 420px); }
