/* Écran de fin : carte « screenable », tout tient sur un écran de téléphone sans scroll. */

.screen--end { height: 100vh; height: 100dvh; gap: 8px; padding: 10px 12px calc(8px + env(safe-area-inset-bottom)); }

.match-card {
  flex: 1 1 auto; min-height: 0;
  display: flex; flex-direction: column;
  overflow: hidden;
  color: var(--white); background: var(--ink);
  border: var(--border); border-radius: 22px; box-shadow: 0 6px 0 rgba(0, 0, 0, 0.35);
}
.match-card__head {
  display: flex; flex-direction: column; align-items: center; gap: 0;
  padding: clamp(6px, 1.3vh, 12px) 14px clamp(4px, 0.8vh, 8px);
  background: var(--cobalt); border-bottom: var(--border);
}
.match-card__logo { display: flex; justify-content: center; }
.match-card__date { font-weight: 700; font-size: 0.8rem; margin-top: 3px; }

/* Le contenu se répartit dans la hauteur disponible, l'en-tête reste en haut */
.match-card__body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; justify-content: space-evenly; }

/* Résultat : le score en points est l'élément principal */
.scoreboard { text-align: center; }
.scoreboard__score { display: flex; align-items: baseline; justify-content: center; gap: 0.15em; margin: 0; line-height: 0.95; }
.scoreboard__value {
  font-family: var(--font-display); font-weight: 900; color: var(--yellow); font-variant-numeric: tabular-nums;
  font-size: clamp(5rem, 17vh, 8.5rem); line-height: 0.95;
  animation: pop 0.7s cubic-bezier(0.2, 1.3, 0.5, 1);
}
.scoreboard__pts { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.4rem, 3.6vh, 2.1rem); color: var(--white); }
.scoreboard__sub { display: flex; justify-content: center; gap: 20px; margin-top: 4px; font-weight: 800; font-size: clamp(1rem, 2.4vh, 1.25rem); }

.punchline {
  margin: 0 12px; padding: 7px 10px;
  font-weight: 800; font-size: clamp(0.95rem, 2.3vh, 1.2rem); line-height: 1.2; text-align: center;
  color: var(--ink); background: var(--yellow); border-radius: 14px; transform: rotate(-1deg);
}

/* Récap : 5 tuiles (carré de couleur, indices, points), sans nom de joueur */
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 0 12px; }
.tile {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: clamp(5px, 1vh, 10px) 2px clamp(4px, 0.9vh, 9px); color: var(--ink); background: var(--white); border-radius: 12px; min-width: 0;
}
.tile__square { width: clamp(24px, 3.6vh, 34px); height: clamp(24px, 3.6vh, 34px); border-radius: 7px; border: 2px solid var(--ink); }
.tile__square--green { background: #1fc46a; }
.tile__square--yellow { background: var(--yellow); }
.tile__square--red { background: var(--red); }
.tile__hints { font-size: clamp(0.78rem, 1.9vh, 1rem); font-weight: 800; line-height: 1.1; }
.tile__points { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.05rem, 2.7vh, 1.5rem); line-height: 1; font-variant-numeric: tabular-nums; }

.stats { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 0 14px 10px; font-size: clamp(0.95rem, 2.2vh, 1.15rem); }
.stats b { font-family: var(--font-display); font-weight: 900; font-size: 1.2rem; }
.stats__small { font-size: 0.78rem; opacity: 0.85; }
.stats__pseudo { color: var(--yellow); }

.screen--end > .btn { font-size: 1.5rem; padding: 0.4em 1em; }

/* Rendez-vous */
.meeting { text-align: center; color: var(--white); text-shadow: 0 2px 0 var(--ink); }
.meeting__line { font-weight: 800; font-size: 0.95rem; line-height: 1.2; }
.meeting__count { font-size: 0.85rem; font-weight: 700; }
.meeting .btn { font-size: 1.3rem; padding: 0.35em 1em; text-shadow: none; }
.countdown__time { font-family: var(--font-display); font-weight: 900; font-size: 1.3rem; font-variant-numeric: tabular-nums; vertical-align: -1px; }

/* Score à 5 chiffres (10 000 et plus) : plus petit pour rester dans la largeur de l'écran */
.scoreboard--long .scoreboard__value { font-size: clamp(3.6rem, min(14vh, 21vw), 7rem); }
