/* ===============================
   Football – styles spécifiques
   =============================== */

.foot-panel {
  max-width: 560px;
  margin: 10px auto 30px auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.1);
  padding: 18px 20px 22px 20px;
  box-sizing: border-box;
}

.foot-row {
  margin-bottom: 14px;
}

.foot-label {
  font-weight: bold;
  font-size: 0.95em;
  margin-bottom: 6px;
  color: #444;
}

.foot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.foot-chips button {
  border: 2px solid #cfd6dd;
  background: #f4f6f8;
  color: #333;
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 0.95em;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}

.foot-chips-num button {
  min-width: 42px;
  padding: 7px 0;
}

.foot-chips button:hover {
  border-color: #7fa7cf;
}

.foot-chips button.sel {
  background: #2e7d32;
  border-color: #2e7d32;
  color: #fff;
}

.foot-team {
  border: 2px solid #e3e8ed;
  border-radius: 12px;
  padding: 12px 14px 2px 14px;
  margin: 18px 0 14px 0;
}

.foot-team-title {
  font-family: "Madimi One", cursive;
  font-size: 1.25em;
  margin-bottom: 10px;
}

.foot-colors {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.foot-colors button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid rgba(0, 0, 0, 0.35);
  cursor: pointer;
  padding: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s;
}

.foot-colors button.sel {
  outline: 3px solid #2e7d32;
  outline-offset: 3px;
  transform: scale(1.08);
}

.foot-colors button:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}

.foot-forms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.foot-forms button {
  border: 2px solid #cfd6dd;
  background: #fff;
  border-radius: 10px;
  padding: 4px 4px 2px 4px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.78em;
  color: #444;
}

.foot-forms button.sel {
  border-color: #2e7d32;
  background: #e8f5e9;
}

.foot-forms canvas {
  display: block;
  width: 78px;
  height: 64px;
  border-radius: 6px;
}

.foot-big-btn {
  font-size: 1.2em;
  padding: 10px 40px;
}

/* ---------- Tableau de score ---------- */

/* Barre commune (css/games.css) aux couleurs du terrain ; score dedans */
.foot-jeu {
  --mg-jeu-largeur: 680px;
  --mgb-fond: radial-gradient(120% 160% at 0% 0%, rgba(255, 255, 255, 0.16), transparent 55%),
    linear-gradient(120deg, #173b1b, #2e7d32);
  --mgb-accent: #fdd835;
  --mgb-titre: linear-gradient(100deg, #ffffff, #c5f5a0);
  --mg-fs-fond: #1f4a23;
  --mg-bulle-fond: #173b1b;
}

.foot-jeu .foot-panel {
  width: 100%;
  margin-top: 0;
}

.foot-jeu.mg-fs {
  justify-content: center;
  overflow: hidden;
}

.foot-score {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 6px;
  min-width: 0;
}

.foot-sb-team {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
  padding: 3px 12px;
  border-radius: 10px;
  border-bottom: 3px solid transparent;
  transition: background 0.2s;
}

#sb-1 {
  justify-content: flex-start;
}

.foot-sb-team.turn {
  background: rgba(255, 255, 255, 0.12);
}

.foot-sb-name {
  font-size: 0.8em;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.foot-sb-goals {
  font-family: "Madimi One", cursive;
  font-size: 1.9em;
  line-height: 1.1;
}

.foot-sb-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2px 10px;
  border-radius: 10px;
  font-family: "Madimi One", cursive;
  font-size: 1.1em;
  background: rgba(0, 0, 0, 0.22);
}

#sb-target {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.5em;
  opacity: 0.75;
  letter-spacing: 1px;
}

.foot-sb-vs {
  line-height: 1;
}

.foot-status {
  text-align: center;
  font-weight: bold;
  color: #222;
  margin: 8px 0 6px 0;
  min-height: 1.3em;
}

.foot-pion {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 7px;
  border-radius: 50%;
  border: 2.5px solid rgba(20, 20, 20, 0.85);
  box-sizing: border-box;
  vertical-align: -2px;
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.25);
}

.foot-canvas-wrap {
  position: relative;
  width: fit-content;
  margin: 0 auto;
}

#foot-canvas {
  display: block;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.foot-end {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.foot-end-box {
  background: #fff;
  border-radius: 14px;
  padding: 22px 26px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.foot-end-title {
  font-family: "Madimi One", cursive;
  font-size: 1.8em;
  margin-bottom: 6px;
}

.foot-end-score {
  font-size: 1.2em;
  margin-bottom: 16px;
}

.foot-confirm-txt {
  max-width: 240px;
  margin: 0 auto 16px auto;
  font-size: 1.05em;
  line-height: 1.35;
}

.foot-end-box button {
  margin: 4px;
}

/* ---------- Plein écran ---------- */

.foot-jeu.mg-fs .foot-status {
  width: fit-content;
  margin: 6px auto;
  padding: 2px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
}

.foot-jeu.mg-fs .foot-status:empty {
  background: transparent;
}

