/* Ligue+ (Benchmark 10× AccessLeague) — styles dédiés, thème Obsidienne & Or */
.lp-modal-stack { display: grid; gap: 12px; text-align: left; }
.lp-modal-stack h2 { margin: 0; padding-right: 52px; font-family: var(--al-font-display); color: var(--al-gold-strong); font-size: clamp(1.1rem, 3.6vw, 1.45rem); }
.lp-modal-stack h3 { margin: 0; font-size: 1rem; }
.lp-modal-stack p { margin: 0; line-height: 1.5; }
.lp-modal-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.lp-modal-actions .al-btn, .lp-modal-stack > .al-btn { min-height: 44px; }
.lp-install-icon { border-radius: 16px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55); }

/* Carte « Installer l'application » (Profil) */
.lp-install-card {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  margin: 0 0 18px; padding: 14px 16px; border-radius: var(--al-radius);
  background: radial-gradient(circle at 0% 50%, rgba(56, 96, 200, 0.22), transparent 60%), var(--al-surface);
  border: 1px solid var(--al-border);
  box-shadow: var(--al-inner-sheen);
}
.lp-install-card img { border-radius: 14px; }
.lp-install-card p { margin: 4px 0 0; color: var(--al-muted); font-size: 0.88rem; line-height: 1.4; }
.lp-install-card .al-btn { min-height: 44px; white-space: nowrap; }
.lp-install-card.is-done { grid-template-columns: auto 1fr; }
.lp-install-card.is-done p { margin: 0; color: var(--al-success); font-weight: 700; }

/* Bandeau discret Accueil (cellulaire seulement, jamais par-dessus le jeu) */
.lp-install-strip {
  display: flex; align-items: center; gap: 10px; margin: 8px 12px; padding: 8px 8px 8px 10px;
  border-radius: 14px; background: var(--al-surface-2); border: 1px solid var(--al-border);
  font-size: 0.86rem; font-weight: 700;
}
.lp-install-strip img { border-radius: 10px; flex: 0 0 auto; }
.lp-install-strip span { flex: 1 1 auto; min-width: 0; line-height: 1.25; }
.lp-install-strip .al-btn { min-height: 44px; flex: 0 0 auto; }
.lp-strip-close {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--al-border-soft);
  background: transparent; color: var(--al-ivory); font-size: 1.3rem; cursor: pointer;
}
@media (max-width: 365px) {
  .lp-install-strip { flex-wrap: wrap; gap: 8px; }
  .lp-install-strip span { flex: 1 1 140px; }
  .lp-strip-close { order: 2; }
  .lp-install-strip .al-btn { order: 3; width: 100%; }
}

/* 3 Équipes sauvegardées */
.lp-presets { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--al-border-soft); }
.lp-presets:empty { display: none; }
.lp-presets-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.lp-presets-head strong { font-family: var(--al-font-display); color: var(--al-gold-strong); letter-spacing: 0.02em; }
.lp-presets-head .al-btn { min-height: 44px; }
.lp-presets-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.lp-preset {
  display: grid; gap: 8px; padding: 12px; border-radius: 14px; min-width: 0;
  background: rgba(8, 13, 24, 0.75); border: 1px solid var(--al-border);
}
.lp-preset.is-empty { border-style: dashed; opacity: 0.88; }
.lp-preset-name {
  min-height: 44px; padding: 0 8px; border: 0; border-radius: 10px; background: transparent; text-align: left;
  color: var(--al-ivory); font-weight: 800; font-size: 0.95rem; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lp-preset-name:hover { background: rgba(246, 213, 128, 0.08); }
.lp-preset-thumbs { display: flex; gap: 6px; min-height: 47px; align-items: center; }
.lp-preset-thumbs img { width: 34px; height: 47px; object-fit: cover; border-radius: 5px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); }
.lp-preset-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.lp-preset-actions .al-btn { min-height: 44px; padding: 6px 8px; font-size: 0.8rem; white-space: normal; line-height: 1.15; }

/* Optimiseur contre le Boss */
.lp-boss-name { color: var(--al-gold-strong); }
.lp-boss-cards { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.lp-boss-cards figure { margin: 0; width: min(30%, 140px); text-align: center; }
.lp-boss-cards img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.6); }
.lp-boss-cards figcaption { margin-top: 6px; font-size: 0.78rem; color: var(--al-muted); }
.lp-boss-combos { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.lp-boss-gain { text-align: center; font-weight: 800; color: var(--al-success); font-size: 1.05rem; }

@media (max-width: 720px) {
  .lp-presets-row { grid-template-columns: 1fr; }
  .lp-preset { grid-template-columns: 1fr auto; align-items: center; }
  .lp-preset-name { grid-column: 1 / -1; }
  .lp-preset-actions { grid-column: 1 / -1; }
  .lp-install-card { grid-template-columns: auto 1fr; }
  .lp-install-card .al-btn { grid-column: 1 / -1; width: 100%; }
}

/* ===== Vague 2 : Simulateur ===== */
.lp-sim-art { display: block; margin: 0 auto; width: 120px; height: auto; border-radius: 10px; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.6); }
.lp-sim-result { display: grid; gap: 8px; min-height: 24px; }
.lp-sim-rarities { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-sim-rarities .al-btn { min-height: 44px; min-width: 56px; }
.lp-sim-rarities .al-btn.is-active { border-color: var(--al-gold-strong); background: rgba(246, 213, 128, 0.18); color: var(--al-gold-strong); box-shadow: 0 0 0 1px var(--al-gold) inset; }
.lp-boss-gain.is-negative { color: var(--al-danger); }
.lp-boss-combos.is-lost .al-badge-cyan { opacity: 0.6; text-decoration: line-through; }
.lp-small { font-size: 0.8rem; }

/* ===== Vague 2 : Éclats de la Ligue ===== */
.lp-feed { max-width: 1240px; margin: 28px auto 8px; padding: 0 16px; }
.lp-feed:empty { display: none; }
.lp-feed-head h2 { margin: 0 0 4px; font-family: var(--al-font-display); color: var(--al-gold-strong); font-size: clamp(1.15rem, 3.4vw, 1.6rem); }
.lp-feed-head p { margin: 0 0 14px; font-size: 0.9rem; }
.lp-feed-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.lp-eclat {
  flex: 0 0 168px; scroll-snap-align: start; display: grid; gap: 8px; justify-items: center; padding: 12px;
  border-radius: 16px; background: var(--al-surface); border: 1px solid var(--al-border); text-align: center;
}
.lp-eclat.rar-UR, .lp-eclat.rar-SEC, .lp-eclat.rar-MYTH { border-color: var(--al-border-strong); box-shadow: 0 0 22px rgba(246, 213, 128, 0.16); }
.lp-eclat img { width: 96px; height: auto; border-radius: 8px; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.55); }
.lp-eclat-info { display: grid; gap: 2px; font-size: 0.82rem; min-width: 0; }
.lp-eclat-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 140px; }
.lp-eclat-info span { color: var(--al-muted); }
.lp-eclat .al-btn { min-height: 44px; width: 100%; }
.lp-eclat-mine { font-size: 0.8rem; color: var(--al-gold-strong); font-weight: 700; min-height: 44px; display: grid; place-items: center; }
.lp-feed-empty { padding: 14px; border-radius: 14px; border: 1px dashed var(--al-border); }
.lp-optin-card {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 18px; padding: 14px 16px;
  border-radius: var(--al-radius); background: var(--al-surface); border: 1px solid var(--al-border-soft);
}
.lp-optin-card p { margin: 4px 0 0; color: var(--al-muted); font-size: 0.85rem; line-height: 1.4; }
.lp-optin-card .al-btn { min-height: 44px; flex: 0 0 auto; white-space: nowrap; }

/* ===== Vague 2 : Centres TCA & Jauge Communautaire ===== */
.lp-centres { margin-top: 16px; display: grid; gap: 14px; }
.lp-centres-head h3 { margin: 0; font-family: var(--al-font-display); color: var(--al-gold-strong); }
.lp-centres-head p { margin: 4px 0 0; font-size: 0.86rem; }
.lp-centres-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lp-centre { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--al-surface); border: 1px solid var(--al-border); }
.lp-centre img { width: 72px; height: 72px; flex: 0 0 auto; }
.lp-centre.is-locked img { filter: grayscale(0.85) brightness(0.7); }
.lp-centre div { display: grid; gap: 2px; min-width: 0; }
.lp-centre span { font-weight: 700; color: var(--al-gold-strong); font-size: 0.86rem; }
.lp-gauge { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); border-radius: 18px; overflow: hidden; border: 1px solid var(--al-border-strong); background: var(--al-surface); }
.lp-gauge-art { width: 100%; height: 100%; max-height: 260px; object-fit: cover; min-height: 180px; }
.lp-gauge-body { display: grid; gap: 8px; align-content: center; padding: 16px; }
.lp-gauge-body p { margin: 0; color: var(--al-muted); font-size: 0.86rem; line-height: 1.4; }
.lp-gauge-bar { height: 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; border: 1px solid var(--al-border-soft); }
.lp-gauge-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #38bdf8, #f6d580); box-shadow: 0 0 14px rgba(56, 189, 248, 0.55); }
.lp-gauge-body .al-btn { min-height: 44px; justify-self: start; }

@media (max-width: 720px) {
  .lp-centres-grid { grid-template-columns: 1fr; }
  .lp-gauge { grid-template-columns: 1fr; }
  .lp-gauge-art { min-height: 0; aspect-ratio: 16 / 9; }
  .lp-optin-card { flex-direction: column; align-items: stretch; }
  .lp-gauge-body .al-btn { justify-self: stretch; }
}

/* ===== Vague 3 : Défi du Jour ===== */
.lp-daily { margin-bottom: 18px; }
.lp-daily.lp-home-block { max-width: 1240px; margin: 28px auto 0; padding: 0 16px; }
.lp-daily:empty { display: none; }
.lp-daily-card {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) minmax(0, 1fr); align-items: stretch;
  border-radius: 20px; overflow: hidden; border: 1px solid var(--al-border-strong);
  background: radial-gradient(circle at 20% 50%, rgba(56, 96, 200, 0.18), transparent 60%), var(--al-surface);
  box-shadow: var(--al-inner-sheen), var(--al-shadow);
}
.lp-daily-art { width: 100%; height: 100%; object-fit: cover; min-height: 200px; }
.lp-daily-body { display: grid; gap: 10px; align-content: center; padding: 18px; }
.lp-daily-body .al-badge-gold { justify-self: start; }
.lp-daily-body h2 { margin: 0; font-family: var(--al-font-display); color: var(--al-gold-strong); font-size: clamp(1.1rem, 3vw, 1.45rem); }
.lp-daily-specs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lp-daily-specs li { display: grid; gap: 1px; }
.lp-daily-specs small { color: var(--al-muted); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; }
.lp-daily-body .al-btn { min-height: 48px; justify-self: start; }
.lp-daily-board { display: grid; gap: 8px; align-content: start; padding: 18px; border-left: 1px solid var(--al-border-soft); }
.lp-daily-top { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.lp-daily-top li { display: grid; grid-template-columns: 28px 1fr auto; gap: 6px; align-items: center; padding: 6px 8px; border-radius: 10px; background: rgba(255, 255, 255, 0.03); font-size: 0.9rem; }
.lp-daily-top li.is-me { background: rgba(246, 213, 128, 0.14); border: 1px solid var(--al-border); }
.lp-daily-top strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-daily-top em { font-style: normal; color: var(--al-gold-strong); font-variant-numeric: tabular-nums; font-weight: 700; }

/* ===== Vague 3 : Carte Postale ===== */
.lp-postcard { justify-items: center; text-align: center; }
.lp-postcard-img { width: min(100%, 360px); height: auto; border-radius: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7); }
.lp-postcard .lp-modal-actions { justify-content: center; }
.lp-pc-download { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }

@media (max-width: 980px) {
  .lp-daily-card { grid-template-columns: 1fr 1fr; }
  .lp-daily-art { grid-column: 1 / -1; min-height: 0; aspect-ratio: 16 / 7; }
  .lp-daily-board { border-left: 1px solid var(--al-border-soft); }
}
@media (max-width: 640px) {
  .lp-daily-card { grid-template-columns: 1fr; }
  .lp-daily-board { border-left: 0; border-top: 1px solid var(--al-border-soft); }
  .lp-daily-body .al-btn { justify-self: stretch; }
}
