/* ============================================================
   arcane-counter.css — extrait de styles.css le 2026-05-07
   Phase 3 (extraction CSS module-par-module).
   8 règles, ~47 lignes.
   Cut & paste pur — aucune simplification ni reformat.
   ============================================================ */

.arcane-badge-inline {
  display: block;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(212, 175, 55, 0.85);
  margin-top: 3px;
  line-height: 1;
}

.arcane-badge-inline::before { content: "✦ "; color: #d4af37; }

.arcane-cost-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 0.72rem;
  color: rgba(212, 175, 55, 0.6);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.arcane-cost-hint::before { content: "✦"; color: #d4af37; }

.arcane-counter {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.82rem;
  color: #e8d27a;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  user-select: none;
  pointer-events: auto;
  transition: border-color 0.2s;
}

.arcane-counter .arcane-icon {
  color: #d4af37;
  font-size: 0.75rem;
}

.arcane-counter.low {
  border-color: rgba(239, 68, 68, 0.5);
  color: #fca5a5;
}

.arcane-counter.low .arcane-icon { color: #f87171; }

/* BUG_6_FIX 2026-05-24 : pulse visuel quand le solde tombe a 0 */
.arcane-counter.zero {
  border-color: rgba(239, 68, 68, 0.85);
  color: #fca5a5;
  animation: arcaneZeroPulse 1.6s ease-in-out infinite;
}
.arcane-counter.zero .arcane-icon {
  color: #f87171;
  animation: arcaneZeroPulse 1.6s ease-in-out infinite;
}
@keyframes arcaneZeroPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
  50%      { box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.18); }
}



/* ──────────────────────────────────────────────────────────────────────
   AD QUICK ICON — Bouton AdMob rewarded a cote du compteur arcanes.
   Visible uniquement sur Android natif via JS (classe .is-visible).
   Ajoute le 2026-05-25 — lancement public J+1.
   ────────────────────────────────────────────────────────────────────── */
.arcane-ad-quick {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 30px;
  margin-right: 6px;
  padding: 0 9px 0 7px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(15, 23, 42, 0.92));
  border: 1px solid rgba(212, 175, 55, 0.6);
  border-radius: 999px;
  color: #f1d98a;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  pointer-events: auto;
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  animation: arcaneAdQuickPulse 2.4s ease-in-out infinite;
}
.arcane-ad-quick.is-visible {
  display: inline-flex;
}
.arcane-ad-quick:hover,
.arcane-ad-quick:focus-visible {
  transform: scale(1.06);
  border-color: rgba(212, 175, 55, 0.95);
  outline: none;
}
.arcane-ad-quick:active {
  transform: scale(0.95);
}
.arcane-ad-quick-icon {
  display: inline-block;
  line-height: 1;
}
.arcane-ad-quick-amount {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #f1d98a;
  line-height: 1;
}
.arcane-ad-quick-amount:empty {
  display: none;
}
@keyframes arcaneAdQuickPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
  50%      { box-shadow: 0 0 0 6px rgba(212, 175, 55, 0.22); }
}

/* Tooltip one-shot solde bas — pointe l'icone pub au moment critique.
   Ajoute 2026-05-29. */
.arcane-ad-tooltip {
  position: fixed;
  z-index: 9000;
  max-width: 230px;
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.97);
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 12px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45);
  color: #e7ddc4;
  font-size: 0.78rem;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: auto;
  cursor: pointer;
}
.arcane-ad-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.arcane-ad-tooltip strong {
  display: block;
  color: #f1d98a;
  font-size: 0.84rem;
  margin-bottom: 3px;
}
.arcane-ad-tooltip::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 14px;
  width: 11px;
  height: 11px;
  background: rgba(15, 23, 42, 0.97);
  border-left: 1px solid rgba(212, 175, 55, 0.55);
  border-top: 1px solid rgba(212, 175, 55, 0.55);
  transform: rotate(45deg);
}

/* === "Offert" assume - un cadeau se montre (modules liberes 2026-06) === */
.arcane-cost-hint.arcane-free, .arcane-badge-inline.arcane-free,
body:has(#astroV2HoroscopeView.active) .arcane-cost-hint.arcane-free,
body:has(#astroV2ProfileView.active) .arcane-cost-hint.arcane-free {
  color: #f4e6a8 !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.16em !important;
  font-size: 0.82rem !important;
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.55) !important;
  opacity: 1 !important;
}
small.arcane-badge-inline.arcane-free {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 12px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.5);
  background: rgba(212, 175, 55, 0.13);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.18);
}
.arcane-free::before { content: "\2726 " !important; color: #f4e6a8 !important; }

/* === Chip "Gratuit" sobre sur les tuiles des modules offerts === */
.home-card { position: relative; }
.tile-free-badge {
  position: absolute; top: 8px; right: 8px;
  font-size: 0.58rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: #d4af37; background: rgba(212, 175, 55, 0.10);
  border: 1px solid rgba(212, 175, 55, 0.35); border-radius: 999px;
  padding: 2px 8px; line-height: 1.3; pointer-events: none; z-index: 2;
}
