/* ==========================================================================
   Interface joueur (.is-player) — écrans J0–J13 (docs/design.md § 9).
   ========================================================================== */

.is-player .c-logo--head { height: var(--tap-min); width: auto; max-width: 100%; }
.is-player .c-splash__logo { width: var(--avatar-xl); }

/* Zones : B (contenu) centrée verticalement quand elle ne défile pas. */
.v-loading .l-player__body { justify-content: center; }
/* Annonce, lobby, choix (RV-31) : centrés par marges automatiques, qui ne débordent jamais
   vers le haut quand le contenu dépasse la zone utile (la zone défile alors depuis le début). */
.v-annonce .l-player__body > .c-stack,
.v-lobby .l-player__body > .c-stack,
.v-choose .l-player__body > .c-stack { margin-block: auto; }
.v-name .l-player__body { justify-content: center; }
.v-choose .c-stack, .v-name .c-stack { gap: var(--space-5); }
.v-join .c-team-list, .v-join .c-stack { display: grid; gap: var(--space-3); }
.v-join .c-team-card__name { font-size: var(--fs-md); white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.v-join .c-team-card { gap: var(--space-2); padding: var(--space-2) var(--space-3); }
/* Toute la carte est la cible (≥ --tap-comfort) : l'action n'est qu'un repère visuel compact. */
.v-join .c-team-card__action .c-btn { min-height: 0; min-width: 0; padding: var(--space-1) var(--space-3); font-size: var(--fs-sm); border-width: var(--bw-hair); box-shadow: var(--shadow-none); }
.v-create .c-stack { gap: var(--space-4); }
.v-lobby .c-team-card--tile { max-width: 100%; }
.v-lobby .c-team-card__members { white-space: normal; flex-wrap: wrap; justify-content: center; }
.v-annonce .c-rules { max-width: 100%; }
.v-results .c-wait--next, .v-final .c-stack { text-align: center; }
.v-final .c-stack { gap: var(--space-4); }
.c-podium-list { gap: var(--space-3); }
.c-podium-list .c-team-card { box-shadow: var(--shadow-sm); }
.c-podium-secret { display: flex; align-items: center; gap: var(--space-3); font: var(--fw-heavy) var(--fs-md)/var(--lh-snug) var(--font-text); }
.c-podium-secret .c-icon { font-size: var(--fs-xl); }

/* Jeu en cours : en-tête 56 px, puis la racine du jeu occupe tout le reste (pas de défilement). */
.l-player--game { gap: var(--space-2); }
.v-game__stage {
  position: relative;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  min-height: 0;
  height: 100%;
}
.v-game__stage > * { grid-area: 1 / 1; min-height: 0; min-width: 0; }
.v-game__wait { display: grid; align-content: center; }
.v-game__overlay { z-index: var(--z-raised); overflow-y: auto; }
.v-game__overlay .c-game-overlay { align-content: start; padding-bottom: var(--shadow-y-lg); }
.v-game__overlay[data-screen="waiting"] .c-game-overlay { align-content: center; }
.v-game.has-countdown .l-player__head { visibility: hidden; }

/* Toast au-dessus du bouton de zone C : il ne masque jamais « Changer d'équipe » (RV-10). */
.is-player .c-toast { bottom: calc(var(--safe-bottom) + var(--tap-comfort) + var(--space-6)); }
