/* ═══════════════════════════════════════
   PHASE 1 — LEVEL UP OVERLAY
═══════════════════════════════════════ */
#levelUpOverlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(73, 54, 232, 0.93);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  gap: 14px;
}
#levelUpOverlay.open {
  display: flex;
  animation: lvlOverlayIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes lvlOverlayIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}
.lvl-crown {
  font-size: 72px;
  animation: lvlBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes lvlBounce {
  from { transform: scale(0.3) rotate(-15deg); opacity: 0; }
  to   { transform: scale(1) rotate(0deg); opacity: 1; }
}
.lvl-up-title {
  font-family: "Baloo 2", "Noto Sans Hebrew", "Sora", sans-serif;
  font-size: 32px;
  font-weight: 900;
  color: white;
  letter-spacing: -0.5px;
}
.lvl-name-he {
  font-size: 22px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  direction: rtl;
}
.lvl-badge-pill {
  background: white;
  color: var(--primary);
  font-size: 15px;
  font-weight: 900;
  padding: 10px 28px;
  border-radius: 50px;
  margin-top: 8px;
}

