html, body {
  margin: 0;
  width: 1920px; height: 1080px;
  overflow: hidden;
  background: transparent;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.root { position: absolute; inset: 0; background: transparent; }
.hidden { display: none !important; }

/* ── Scoreboard — collé tout en haut, centré ── */
.scoreboard {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  align-items: stretch;

  background: #12121b;
  /* Arrondi uniquement en bas — collé en haut du canvas */
  border-radius: 0 0 14px 14px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,.45);
}

/* ── Équipe
   teamA : logo  | tag  | side | score
   teamB : score | side | tag  | logo
── */
.team {
  display: flex;
  align-items: center;
  gap: 0;
}

/* ── Logo — transparent, sans fond, sans cadre ── */
.teamLogo {
  width: 64px; height: 64px;
  object-fit: contain;
  flex: 0 0 64px;
  padding: 10px;
}
/* Masquer l'icône "image cassée" quand pas de logo — l'espace est conservé */
.teamLogo:not([src]), .teamLogo[src=""] { opacity: 0; }

/* ── TAG ── */
.teamTag {
  font-size: 22px; font-weight: 1000;
  color: #eef0ff;
  text-transform: uppercase; letter-spacing: .5px;
  line-height: 1;
  padding: 0 16px;
  white-space: nowrap;
}

/* ── Side — barre verticale colorée ── */
.teamSide {
  width: 4px;
  height: 44px;
  border-radius: 999px;
  flex: 0 0 4px;
  /* background injecté par JS : blue ou red */
}

/* Espacement side ↔ score */
.teamA .teamSide { margin-right: 14px; }
.teamB .teamSide { margin-left:  14px; }

/* ── Score ── */
.teamScore {
  font-size: 52px; font-weight: 1000;
  font-variant-numeric: tabular-nums;
  color: #eef0ff;
  line-height: 1;
  min-width: 44px;
  text-align: center;
  padding: 12px 18px;
}

/* ── Séparateur central ── */
.scoreSep {
  font-size: 32px; font-weight: 1000;
  color: rgba(238,240,255,.18);
  padding: 0 2px;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
