/* [99-levelup] Fenêtre « Niveau supérieur » : bandeau sombre à liseré or, titre sur un halo orange, 4 ressources, bouton rouge.
   Rattachée au cadre de jeu (modalHost) : tailles en px du cadre (980 ou 1256 de large, agrandi ~×1,5 sur un écran 1080p),
   choisies pour garder sur PC la taille réelle de l'ancienne version en vw ; sur petit écran elle suit le zoom du jeu. */
.levelup-overlay { position: absolute; inset: 0; z-index: 20000; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.62); }
.levelup-overlay.hidden { display: none; }
.levelup-window {
  position: relative; width: min(94%, 680px); padding: 0 16px 18px; text-align: center; color: #fff;
  background: radial-gradient(ellipse at 50% 0%, #17383c 0%, #0b1a1c 55%, #070e0f 100%);
  border-top: 2px solid #b4966f; border-bottom: 2px solid #b4966f; box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}
.levelup-banner { position: relative; margin: 0 -16px; padding: 12px 0 6px; background: radial-gradient(ellipse at 50% 0%, rgba(210, 147, 65, 0.85) 0%, rgba(50, 150, 116, 0.5) 40%, transparent 72%); }
.levelup-title { font-family: 'Limelight', serif; font-weight: 800; font-size: 26px; letter-spacing: 1px; text-transform: uppercase; text-shadow: 0 2px 6px #000, 0 0 14px rgba(0, 0, 0, 0.7); }
.levelup-level { font-family: 'Limelight', serif; font-size: 15px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; text-shadow: 0 2px 4px #000; }
.levelup-heading { margin: 3px 0 12px; font-family: 'Josefin Sans', sans-serif; font-size: 28px; font-weight: 600; text-shadow: 0 2px 5px #000; }
.levelup-rewards { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 18px; }
.levelup-reward { width: clamp(110px, 21%, 130px); }
.levelup-qty { margin-bottom: 6px; font-family: 'Josefin Sans', sans-serif; font-size: 12px; font-weight: 700; }
.levelup-thumb { display: flex; align-items: center; justify-content: center; aspect-ratio: 190 / 155; border: 2px solid #b4966f; background: radial-gradient(circle at 40% 30%, #f4f4f2, #bdbdb8 70%, #9a9a96); }
.levelup-thumb svg { width: 56%; height: 70%; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.45)); }
.levelup-collect {
  min-width: 130px; padding: 8px 20px; cursor: pointer; font-family: 'Josefin Sans', sans-serif; font-size: 13px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #fff;
  background: linear-gradient(180deg, #e34c3b 0%, #bd3121 55%, #932215 100%); border: 2px solid #b4966f; border-radius: 5px; text-shadow: 0 1px 3px #000;
}
.levelup-collect:hover { filter: brightness(1.12); }
.levelup-collect:disabled { opacity: 0.6; cursor: default; }
.levelup-thumb img { width: 70%; height: 80%; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.45)); }
