/* V215 — L'installation sur téléphone et tablette : la pastille « Installer le jeu »,
   la marche à suivre (iPhone, iPad) et la rubrique « Application » d'Options.
   Au-dessus des écrans d'accueil (.boot-layer, z-index 10000), dans les marges sûres. */
.app-pastille {
  position: fixed;
  top: calc(10px + env(safe-area-inset-top, 0px));
  right: calc(10px + env(safe-area-inset-right, 0px));
  z-index: 10050;
  display: flex;
  align-items: stretch;
  gap: 2px;
  font-family: "Barlow", "Segoe UI", system-ui, sans-serif;
}
.app-pastille[hidden] { display: none !important; }
.app-pastille-bouton, .app-pastille-fermer {
  min-height: 44px;
  border: 1px solid rgba(99, 230, 255, 0.55);
  background: rgba(7, 6, 12, 0.88);
  color: #eef1f6;
  cursor: pointer;
  touch-action: manipulation;
}
.app-pastille-bouton {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: 12px 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 0 18px rgba(99, 230, 255, 0.25);
}
.app-pastille-bouton img { border-radius: 6px; }
.app-pastille-fermer {
  min-width: 40px;
  border-radius: 0 12px 12px 0;
  font-size: 20px;
  line-height: 1;
  color: #b0b9c9;
}
/* V216 — Sur le menu du téléviseur, le bouton « Quêtes » tient déjà le coin haut droit
   (quetes.css : 12 px du bord, 44 px de haut) : la pastille passait par-dessus et le
   rendait intouchable. Elle se range dessous. */
body:has(#bootMenuScreen:not([hidden]) #quetesCrtBtn) .app-pastille { top: calc(64px + env(safe-area-inset-top, 0px)); }
.app-pastille-bouton:hover, .app-pastille-bouton:focus-visible { border-color: #63e6ff; }
.app-pastille-bouton:focus-visible, .app-pastille-fermer:focus-visible { outline: 2px solid #ffcf5c; outline-offset: 2px; }

.app-aide {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: grid;
  place-items: center;
  padding: calc(16px + env(safe-area-inset-top, 0px)) calc(16px + env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) calc(16px + env(safe-area-inset-left, 0px));
  background: rgba(3, 2, 8, 0.78);
  overflow-y: auto;
}
.app-aide[hidden] { display: none !important; }
.app-aide-carte {
  width: min(460px, 100%);
  background: #14101a;
  border: 1px solid #3b3046;
  border-radius: 16px;
  overflow: hidden;
  color: #eef1f6;
  font-family: "Barlow", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}
.app-aide-bandeau { display: block; width: 100%; max-height: 150px; object-fit: cover; }
.app-aide-corps { padding: 16px 18px 18px; display: grid; gap: 10px; }
.app-aide-icone { border-radius: 14px; margin-top: -48px; border: 2px solid #14101a; }
.app-aide h2 { margin: 0; font-family: "Press Start 2P", ui-monospace, monospace; font-size: 14px; line-height: 1.6; }
.app-aide ol { margin: 0; padding-left: 22px; color: #c9c2d6; }
.app-aide p { margin: 0; color: #c9c2d6; }
.app-aide-symbole { display: inline-block; padding: 0 4px; border: 1px solid #63e6ff; border-radius: 4px; color: #63e6ff; }
.app-aide-fermer {
  justify-self: end;
  min-height: 44px;
  padding: 6px 18px;
  border-radius: 10px;
  border: 1px solid #63e6ff;
  background: #0b0e14;
  color: #eef1f6;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.app-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.app-action {
  min-height: 40px;
  padding: 6px 14px;
  border-radius: 10px;
  border: 1px solid rgba(99, 230, 255, 0.55);
  background: rgba(7, 6, 12, 0.6);
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.app-action:disabled { opacity: 0.55; cursor: default; }
.app-lien { display: grid; gap: 4px; max-width: 100%; }
.app-lien input { min-width: 0; width: 100%; font: inherit; }
