/* ==========================================================================
   Plein écran (CONTRAT §2 « Plein écran ») : page en 100dvh × 100dvw (la barre d'adresse ne
   décale jamais la mise en page), marges des encoches, bouton plein écran de l'en-tête du
   volet et bandeau iPhone. Chargé après app.css.
   ========================================================================== */

.app {
  width: 100vw;
  width: 100dvw;
  height: 100vh;
  height: 100dvh;
}
:root.is-fullscreen,
:root.is-fullscreen body { background: var(--bg); }

/* Bouton plein écran (en-tête du volet) */
.fs-btn {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  transition: color 150ms var(--ease), border-color 150ms var(--ease), background-color 150ms var(--ease);
}
.fs-btn:hover { color: var(--text); border-color: var(--line); }
.fs-btn[aria-pressed="true"] { color: var(--text); background: var(--surface-2); border-color: var(--line); }
@media (max-width: 420px) {
  .bids-head { gap: 8px; }
  .bids-head .fs-btn { width: 32px; height: 32px; border-radius: 9px; }
}

/* Bandeau : discret, refermable, affiché une seule fois tout seul — et rappelable par le
   bouton de l'en-tête quand l'API plein écran manque (installation sur Android, marche à
   suivre sur iPhone). */
.fs-hint {
  position: fixed;
  z-index: 45; /* sous les fenêtres (50+), au-dessus du jeu et du volet */
  top: calc(env(safe-area-inset-top) + 64px);
  left: 50%;
  display: flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  max-width: calc(100vw - 24px - env(safe-area-inset-left) - env(safe-area-inset-right));
  padding: 6px 6px 6px 12px;
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--text);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  transform: translateX(-50%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.fs-hint-text { margin: 0; }
/* Action du bandeau (installation Android) : même langage visuel que .fs-btn. */
.fs-hint-action {
  padding: 4px 10px;
  font: inherit;
  font-weight: 700;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 150ms var(--ease), background-color 150ms var(--ease);
}
.fs-hint-action:hover { border-color: var(--text); }
.fs-hint-step { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; white-space: nowrap; }
.fs-hint-step svg { flex: none; color: var(--info); }
.fs-hint-close {
  display: grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 50%;
}
.fs-hint-close:hover { color: var(--text); background: var(--surface-2); }
