/* css/packs/r.css | Source: MonarqueXD_v95L_GUILDORIGINS.html lignes 60290-60423 (id="mx-fx-pack-r-styles") */
/* ============================================================ */
/*  PACK R — Popup compteur + Médaille D + Réanimation boss    */
/* ============================================================ */

/* === 1. POPUP COMPTEUR : cache les 4 boutons exercices === */
body.mx-ex-active #exercise-buttons {
  display: none !important;
}

/* Transforme counter-section en modal flottant centré */
body.mx-ex-active #counter-section {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 10020 !important;
  background: linear-gradient(160deg, rgba(14, 6, 28, .96) 0%, rgba(6, 2, 16, .98) 100%) !important;
  border: 2px solid rgba(170, 80, 255, .5) !important;
  border-radius: 20px !important;
  padding: 26px 20px !important;
  max-width: 420px !important;
  width: min(90vw, 420px) !important;
  box-shadow:
    0 0 60px rgba(170, 80, 255, .45),
    0 0 120px rgba(80, 220, 255, .3),
    inset 0 1px 0 rgba(255, 255, 255, .1) !important;
  backdrop-filter: blur(10px);
  animation: mxCounterPopIn 0.35s cubic-bezier(.2, .7, .2, 1);
}
@keyframes mxCounterPopIn {
  0%   { transform: translate(-50%, -50%) scale(0.6); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* Backdrop sombre */
body.mx-ex-active::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .75);
  backdrop-filter: blur(6px);
  z-index: 10015;
  pointer-events: none;
  animation: mxBackdropIn 0.3s ease-out;
}
@keyframes mxBackdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Bouton fermer en haut à droite du compteur */
#mx-counter-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 80, 80, .15);
  border: 1px solid rgba(255, 80, 80, .4);
  color: #ff8080;
  font-size: 1.1em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-family: system-ui;
}
#mx-counter-close:hover {
  background: rgba(255, 80, 80, .3);
  transform: scale(1.1);
}

/* === 2. BOUTON RÉANIMATION BOSS MENSUEL === */
.mx-revive-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 14px 26px;
  background: linear-gradient(135deg, #b00020 0%, #ff3060 50%, #b00020 100%);
  color: #fff;
  border: 2px solid #ff5080;
  border-radius: 12px;
  font-family: 'Cinzel', 'Rajdhani', serif;
  font-weight: 900;
  font-size: 1em;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    0 0 20px rgba(255, 0, 40, .5),
    0 0 40px rgba(255, 0, 40, .25),
    inset 0 1px 0 rgba(255, 255, 255, .25);
  text-shadow: 0 0 10px rgba(255, 255, 255, .4), 0 1px 2px #000;
  transition: all .2s ease;
  animation: mxReviveGlow 2.2s ease-in-out infinite;
}
@keyframes mxReviveGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 0, 40, .5), 0 0 40px rgba(255, 0, 40, .25); }
  50%      { box-shadow: 0 0 30px rgba(255, 0, 40, .8), 0 0 60px rgba(255, 0, 40, .4); }
}
.mx-revive-btn:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.03);
}
.mx-revive-btn:active:not(:disabled) { transform: scale(0.97); }
.mx-revive-btn:disabled { opacity: 0.4; cursor: not-allowed; animation: none; }
.mx-revive-btn .revive-ico {
  font-size: 1.3em;
  filter: drop-shadow(0 0 6px #fff);
}
.mx-revive-btn .revive-count {
  background: rgba(0, 0, 0, .4);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.75em;
  letter-spacing: 1px;
  margin-left: 4px;
}

/* === 3. MÉDAILLE D sur donjon Canidés (override img) === */
.mx-medal-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .8));
}
.mx-medal-wrapper svg { width: 100%; height: 100%; }
