/* Application installable et notifications (ui/appMenu.js) */

/* --- Bouton « Installer » de l'accueil, avec l'or offert en pastille --- */
.home-res {
  overflow: visible; /* la pastille dépasse du bouton */
}
button.home-install-btn {
  display: none;
  position: relative;
  overflow: visible;
  border-color: rgba(0, 255, 255, 0.55);
  color: #00ffff;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.25);
}
button.home-install-btn.shown {
  display: grid;
}
.install-badge {
  position: absolute;
  top: -7px;
  right: -9px;
  padding: 2px 5px;
  border-radius: 999px;
  background: #ffd700;
  color: #1a0b2e;
  font-family: "Press Start 2P", monospace;
  font-size: 7px;
  line-height: 1.2;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.7);
  pointer-events: none;
}
.install-badge:empty {
  display: none;
}
/* Téléphone en portrait : une icône de plus dans l'en-tête, la barre d'XP laisse la place (le niveau reste) */
@media (max-width: 760px) {
  .home-top:has(.home-install-btn.shown) .home-id {
    display: none;
  }
}

/* --- Écran d'installation --- */
.install-menu {
  border-color: #00ffff;
  max-width: 520px;
}
.install-perks {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 6px 0 16px;
  text-align: left;
}
.install-perks li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  line-height: 1.35;
}
.install-perks .ico {
  flex-shrink: 0;
  font-size: 22px;
  color: #00ffff;
}
.install-perks b {
  color: #ffd700;
}
#installPrompt button {
  width: 100%;
}
.install-steps {
  display: grid;
  gap: 8px;
  padding-left: 0;
  list-style-position: inside; /* base.css coupe ce qui déborde : les numéros restent dans la boîte */
  text-align: left;
  font-size: 13px;
  line-height: 1.5;
}
.install-steps li::marker {
  color: #00ffff;
  font-weight: bold;
}
.install-steps .ico {
  font-size: 18px;
  color: #00ffff;
  vertical-align: middle;
}
.install-note {
  font-size: 13px;
  color: #00ff88;
}
#installUnavailable {
  color: #aaa;
}

/* --- Options : notifications --- */
.option-push {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.option-push .option-row {
  border-bottom: none;
}
.option-push .option-hint {
  margin: 0 0 10px;
}
.push-topics {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.push-topics.shown {
  display: flex;
}
button.push-topic {
  width: auto;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #777;
  font-size: 11px;
  text-decoration: line-through;
}
button.push-topic.on {
  border-color: #00ff88;
  color: #00ff88;
  text-decoration: none;
}

/* --- Proposition « Être prévenu ? » --- */
.push-ask {
  display: none;
  position: fixed;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: min(420px, calc(100vw - 32px));
  padding: 14px 16px;
  border: 2px solid #ffd700;
  border-radius: 14px;
  background: rgba(15, 8, 30, 0.97);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.45);
  z-index: 200;
  text-align: center;
  pointer-events: auto;
}
.push-ask.visible {
  display: block;
}
.push-ask p {
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.4;
}
.push-ask .btn-grid button {
  padding: 10px;
  font-size: 13px;
}
/* Jamais par-dessus une partie en cours */
body[data-screen=""] .push-ask {
  display: none !important;
}
