/* Échiquier. Reprend les boutons, accueil et bilans de chkobba.css. */

.ec-joueur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 480px;
  margin: 8px auto;
  min-height: 28px;
  font-size: 15px;
}

.ec-prises {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ec-prise svg {
  display: block;
  width: 20px;
  height: 20px;
  margin-left: -5px;
}

/* 8 x 8 cases, carré quelle que soit la largeur (sans aspect-ratio pour les vieux Safari). */
.ec-plateau {
  direction: ltr;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  border: 2px solid var(--encre);
  border-radius: 6px;
  overflow: hidden;
}

.ec-case {
  position: relative;
  display: block;
  width: 100%;
  height: 0;
  padding: 0 0 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.ec-case.claire {
  background: #efe3c8;
}

.ec-case.foncee {
  background: #6f9a7e;
}

.ec-case svg {
  position: absolute;
  top: 4%;
  left: 4%;
  width: 92%;
  height: 92%;
  pointer-events: none;
}

.ec-case.dernier.claire {
  background: #f3d98a;
}

.ec-case.dernier.foncee {
  background: #b8b45b;
}

.ec-case.choisie {
  box-shadow: inset 0 0 0 4px var(--jasmin);
}

.ec-case.echec {
  background: radial-gradient(circle, #e8553a 0%, #e8553a 35%, transparent 75%), #efe3c8;
}

/* Cases où la pièce choisie peut aller : un point, ou un anneau s'il y a une prise. */
.ec-case.cible-vide::after {
  content: '';
  position: absolute;
  top: 37%;
  left: 37%;
  width: 26%;
  height: 26%;
  border-radius: 50%;
  background: rgba(23, 32, 27, 0.35);
}

.ec-case.cible-prise::after {
  content: '';
  position: absolute;
  top: 4%;
  left: 4%;
  right: 4%;
  bottom: 4%;
  border-radius: 50%;
  border: 4px solid rgba(23, 32, 27, 0.4);
}

.ec-rang,
.ec-col {
  position: absolute;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  color: rgba(23, 32, 27, 0.6);
  pointer-events: none;
}

.ec-rang {
  top: 3px;
  left: 3px;
}

.ec-col {
  bottom: 3px;
  right: 4px;
}

.ec-consigne {
  min-height: 26px;
  margin-top: 8px;
  text-align: center;
  font-weight: 600;
}

.ec-boutons {
  display: flex;
  justify-content: center;
  margin: 2px -5px 0;
}

.ec-boutons .ck-secondaire {
  width: auto;
  margin: 8px 5px 0;
  padding: 9px 16px;
  font-size: 14.5px;
}

.ec-coups {
  max-width: 480px;
  max-height: 96px;
  margin: 14px auto 0;
  padding: 8px 12px;
  overflow-y: auto;
  font-size: 13.5px;
  line-height: 1.7;
  border: 1px solid rgba(245, 239, 227, 0.3);
  border-radius: 10px;
}

.ec-coups li {
  display: inline-block;
  margin-right: 12px;
  white-space: nowrap;
}

.ec-coups li span {
  opacity: 0.6;
}

.ec-promo h2 {
  text-align: center;
}

.ec-promo-choix {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.ec-promo-choix button {
  width: 64px;
  height: 64px;
  margin: 0 5px;
  padding: 6px;
  background: #efe3c8;
  border: 1.5px solid var(--encre);
  border-radius: 10px;
  cursor: pointer;
}

.ec-promo-choix svg {
  width: 100%;
  height: 100%;
}

.ec-credits {
  margin-top: 18px;
  font-size: 13px;
  color: var(--encre-2);
}
