.badge-notif-card {
  position: relative;
  pointer-events: auto;
  background: #1e1913;
  border: 2px solid #f4c12a;
  border-radius: 14px;
  padding: 22px 24px 18px;
  width: min(340px, calc(100vw - 48px));
  box-shadow:
    6px 6px 0 rgba(29, 26, 20, 0.5),
    0 0 28px rgba(244, 193, 42, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: badgeCardIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.badge-notif-kicker {
  font-family: var(--arch);
  font-size: 0.78125rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #f4c12a;
  animation: badgeTextFade 0.35s 0.1s ease both;
}
.badge-notif-emoji {
  font-size: 3.25rem;
  line-height: 1;
  user-select: none;
  animation:
    badgeEmojiDrop 0.5s 0.15s cubic-bezier(0.34, 1.56, 0.64, 1) both,
    badgeEmojiPulse 0.45s 0.85s ease-in-out;
}
/* The actual tandem skin's own preview art (SELECTABLE_TANDEM_IMAGES' asset),
   not a generic bike emoji — so an award/revoke notice shows exactly which
   livery changed hands. Same drop+pulse entrance as .badge-notif-emoji;
   sized wider than tall since tandem-*.png carries transparent padding
   around a horizontally-oriented bike, unlike a square emoji glyph. */
.skin-award-notice-img {
  width: 130px;
  max-width: 100%;
  height: auto;
  user-select: none;
  animation:
    badgeEmojiDrop 0.5s 0.15s cubic-bezier(0.34, 1.56, 0.64, 1) both,
    badgeEmojiPulse 0.45s 0.85s ease-in-out;
}
.badge-notif-name {
  font-family: 'Permanent Marker', cursive;
  font-size: 1.375rem;
  color: #fbf7ec;
  text-align: center;
  letter-spacing: 0.3px;
  animation: badgeTextFade 0.35s 0.28s ease both;
}
.notif-rewards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 8px 0 4px;
  animation: badgeTextFade 0.35s 0.45s ease both;
}
.notif-reward {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 64px;
  max-width: 160px;
  padding: 8px 10px;
  border: 2px solid rgba(251, 247, 236, 0.25);
  border-radius: 10px;
  background: rgba(251, 247, 236, 0.06);
  text-align: center;
}
.notif-reward__art {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fbf7ec;
  font-weight: 700;
  line-height: 1.2;
}
.notif-reward__label {
  font-family: 'Caveat', cursive;
  font-size: 1.1rem;
  color: rgba(251, 247, 236, 0.65);
  line-height: 1.1;
}
.notif-reward--emblem .notif-reward__art {
  width: 72px;
  height: 72px;
}
.notif-reward--emblem .emblem-img {
  width: 100%;
}
.notif-reward--chip .notif-reward__art {
  font-size: 1.3rem;
  color: #f4c12a;
}
.notif-dp-icon {
  height: 1em;
  width: 1em;
  vertical-align: -0.12em;
  object-fit: contain;
}
.notif-reward--banner {
  flex: 1 0 100%;
  max-width: none;
  border-color: #f4c12a;
  background: rgba(244, 193, 42, 0.14);
}
.notif-reward--banner .notif-reward__art {
  color: #f4c12a;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
}
.badge-notif-flavor {
  font-family: 'Caveat', cursive;
  font-size: 1.59375rem;
  font-style: italic;
  color: rgba(251, 247, 236, 0.65);
  text-align: center;
  line-height: 1.35;
  min-height: 18px;
  animation: badgeTextFade 0.35s 0.38s ease both;
}
.badge-notif-ack {
  margin-top: 4px;
  font-family: var(--arch);
  font-size: 0.9375rem;
  letter-spacing: 1px;
  background: #f4c12a;
  color: #1d1a14;
  border: none;
  border-radius: 999px;
  padding: 7px 22px;
  cursor: pointer;
  font-weight: 700;
  animation: badgeTextFade 0.35s 0.46s ease both;
  transition:
    transform 0.1s,
    box-shadow 0.1s;
}
.badge-notif-ack:hover {
  transform: translate(1px, 1px);
  box-shadow: none;
}
.badge-notif-counter {
  font-family: var(--arch);
  font-size: 0.625rem;
  letter-spacing: 1.5px;
  color: rgba(251, 247, 236, 0.35);
  text-transform: uppercase;
  animation: badgeTextFade 0.35s 0.5s ease both;
}

@keyframes badgeCardIn {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.88);
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes badgeEmojiDrop {
  0% {
    opacity: 0;
    transform: translateY(-18px) scale(0.6) rotate(-8deg);
  }
  70% {
    transform: translateY(4px) scale(1.1) rotate(3deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}
@keyframes badgeTextFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes badgeEmojiPulse {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes badgeOverlayIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes badgeOverlayOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@keyframes badgeCardOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(16px) scale(0.92);
  }
}
#notifOverlay.badge-overlay-in {
  animation: badgeOverlayIn 0.18s ease both;
}
#notifOverlay.badge-overlay-out {
  animation: badgeOverlayOut 0.22s ease forwards;
}
/* ── Tier-specific notification styles ── */
.badge-notif-card.tier-common .badge-notif-kicker {
  color: #9a9591;
}
.badge-notif-card.tier-silver .badge-notif-kicker {
  color: #b4bec8;
}
.badge-notif-card.tier-legendary .badge-notif-kicker {
  color: #e8417c;
}
.badge-notif-card.tier-mythical .badge-notif-kicker {
  color: #a764ff;
}
.badge-notif-card.tier-secret .badge-notif-kicker {
  color: #5096b4;
}

.badge-notif-card.tier-common {
  border-color: #9a9591;
  box-shadow:
    6px 6px 0 rgba(29, 26, 20, 0.5),
    0 0 14px rgba(154, 149, 145, 0.12);
}
.badge-notif-card.tier-silver {
  border-color: #b4bec8;
  box-shadow:
    6px 6px 0 rgba(29, 26, 20, 0.5),
    0 0 20px rgba(180, 190, 200, 0.22);
}
.badge-notif-card.tier-gold {
  position: relative;
  overflow: hidden;
  animation:
    badgeCardInGold 0.42s cubic-bezier(0.34, 1.56, 0.64, 1) both,
    notifCorona 1.8s 0.45s ease-in-out infinite;
}
.badge-notif-card.tier-gold::after {
  content: '';
  position: absolute;
  top: -50%;
  left: 0;
  width: 50%;
  height: 200%;
  background: linear-gradient(to right, transparent, rgba(255, 220, 80, 0.18), transparent);
  transform: translateX(-200%) skewX(-12deg);
  animation: notifGoldGlint 3.2s 0.9s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
.badge-notif-card.tier-legendary {
  border-color: #e8417c;
  box-shadow:
    6px 6px 0 rgba(29, 26, 20, 0.5),
    0 0 32px rgba(232, 65, 124, 0.4),
    0 0 64px rgba(232, 65, 124, 0.12);
  animation:
    badgeCardInLegendary 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both,
    notifElectricBurn 5s 0.5s ease-in-out infinite;
}
.badge-notif-card.tier-legendary .badge-notif-kicker {
  animation:
    badgeTextFade 0.35s 0.1s ease both,
    notifLegendaryKickerGlow 5s 0.5s ease-in-out infinite;
}
.badge-notif-card.tier-legendary .badge-notif-emoji {
  animation:
    badgeEmojiDrop 0.5s 0.15s cubic-bezier(0.34, 1.56, 0.64, 1) both,
    badgeEmojiPulse 0.45s 0.85s ease-in-out,
    notifLegendaryEmojiGlow 5s 1s ease-in-out infinite;
}
.badge-notif-card.tier-mythical {
  border-color: #7c3aed;
  box-shadow:
    6px 6px 0 rgba(29, 26, 20, 0.5),
    0 0 36px rgba(124, 58, 237, 0.5),
    0 0 72px rgba(34, 211, 238, 0.15);
  animation:
    badgeCardInMythical 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both,
    notifAstralBurn 3.5s 0.5s ease-in-out infinite,
    notifMythicalBorder 3.5s 0.5s ease-in-out infinite;
}
.badge-notif-card.tier-mythical .badge-notif-kicker {
  animation:
    badgeTextFade 0.35s 0.1s ease both,
    notifMythicalKickerGlow 3.5s 0.5s ease-in-out infinite;
}
.badge-notif-card.tier-mythical .badge-notif-emoji {
  animation:
    badgeEmojiDrop 0.5s 0.15s cubic-bezier(0.34, 1.56, 0.64, 1) both,
    badgeEmojiPulse 0.45s 0.85s ease-in-out,
    notifMythicalEmojiGlow 3.5s 1s ease-in-out infinite;
}
.badge-notif-card.tier-secret {
  border-color: #3c96b4;
  box-shadow:
    6px 6px 0 rgba(29, 26, 20, 0.5),
    0 0 18px rgba(80, 150, 180, 0.2);
}

@keyframes badgeCardInGold {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.85);
  }
  55% {
    opacity: 1;
    transform: translateY(-7px) scale(1.04);
  }
  75% {
    transform: translateY(1px) scale(0.99);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes badgeCardInLegendary {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.85);
  }
  55% {
    opacity: 1;
    transform: translateY(-8px) scale(1.05);
  }
  75% {
    transform: translateY(2px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes badgeCardInMythical {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.82);
  }
  50% {
    opacity: 1;
    transform: translateY(-12px) scale(1.07);
  }
  68% {
    transform: translateY(3px) scale(0.97);
  }
  84% {
    transform: translateY(-3px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes notifGoldGlint {
  0%,
  70% {
    transform: translateX(-200%) skewX(-12deg);
    opacity: 0;
  }
  72% {
    opacity: 1;
  }
  88% {
    transform: translateX(400%) skewX(-12deg);
    opacity: 0;
  }
  100% {
    transform: translateX(400%) skewX(-12deg);
    opacity: 0;
  }
}
@keyframes notifCorona {
  0%,
  100% {
    box-shadow:
      6px 6px 0 rgba(29, 26, 20, 0.5),
      0 0 28px rgba(244, 193, 42, 0.4),
      0 0 56px rgba(244, 193, 42, 0.15);
  }
  50% {
    box-shadow:
      6px 6px 0 rgba(29, 26, 20, 0.5),
      0 0 52px rgba(244, 193, 42, 0.65),
      0 0 88px rgba(244, 193, 42, 0.25);
  }
}
@keyframes notifElectricBurn {
  0%,
  100% {
    box-shadow:
      6px 6px 0 rgba(29, 26, 20, 0.5),
      0 0 28px rgba(232, 65, 124, 0.4),
      0 0 56px rgba(232, 65, 124, 0.1);
  }
  28% {
    box-shadow:
      6px 6px 0 rgba(29, 26, 20, 0.5),
      0 0 36px rgba(244, 193, 42, 0.6),
      0 0 64px rgba(232, 65, 124, 0.18);
  }
  72% {
    box-shadow:
      6px 6px 0 rgba(29, 26, 20, 0.5),
      0 0 20px rgba(232, 65, 124, 0.32),
      0 0 48px rgba(232, 65, 124, 0.08);
  }
  73% {
    box-shadow:
      6px 6px 0 rgba(29, 26, 20, 0.5),
      0 0 52px rgba(255, 185, 20, 0.85),
      0 0 88px rgba(255, 185, 20, 0.3);
  }
  74% {
    box-shadow:
      6px 6px 0 rgba(29, 26, 20, 0.5),
      0 0 28px rgba(232, 65, 124, 0.4),
      0 0 56px rgba(232, 65, 124, 0.1);
  }
}
@keyframes notifAstralBurn {
  0%,
  100% {
    box-shadow:
      6px 6px 0 rgba(29, 26, 20, 0.5),
      0 0 32px rgba(124, 58, 237, 0.5),
      0 0 68px rgba(124, 58, 237, 0.18);
  }
  25% {
    box-shadow:
      6px 6px 0 rgba(29, 26, 20, 0.5),
      0 0 40px rgba(34, 211, 238, 0.6),
      0 0 72px rgba(34, 211, 238, 0.2);
  }
  29% {
    box-shadow:
      6px 6px 0 rgba(29, 26, 20, 0.5),
      0 0 64px rgba(255, 255, 255, 0.45),
      0 0 96px rgba(34, 211, 238, 0.35);
  }
  32% {
    box-shadow:
      6px 6px 0 rgba(29, 26, 20, 0.5),
      0 0 40px rgba(34, 211, 238, 0.55),
      0 0 72px rgba(34, 211, 238, 0.18);
  }
  75% {
    box-shadow:
      6px 6px 0 rgba(29, 26, 20, 0.5),
      0 0 64px rgba(255, 255, 255, 0.4),
      0 0 96px rgba(124, 58, 237, 0.28);
  }
  77% {
    box-shadow:
      6px 6px 0 rgba(29, 26, 20, 0.5),
      0 0 32px rgba(124, 58, 237, 0.45),
      0 0 68px rgba(124, 58, 237, 0.16);
  }
}
@keyframes notifMythicalBorder {
  0%,
  100% {
    border-color: #7c3aed;
  }
  25% {
    border-color: #22d3ee;
  }
  29% {
    border-color: rgba(255, 255, 255, 0.85);
  }
  32% {
    border-color: #22d3ee;
  }
  75% {
    border-color: rgba(255, 255, 255, 0.75);
  }
  77% {
    border-color: #7c3aed;
  }
}

@keyframes notifLegendaryKickerGlow {
  0%,
  100% {
    text-shadow: 0 0 6px rgba(232, 65, 124, 0.5);
  }
  28% {
    text-shadow: 0 0 8px rgba(244, 193, 42, 0.7);
  }
  73% {
    text-shadow: 0 0 14px rgba(255, 185, 20, 0.95);
  }
  74% {
    text-shadow: 0 0 6px rgba(232, 65, 124, 0.5);
  }
}
@keyframes notifMythicalKickerGlow {
  0%,
  100% {
    text-shadow: 0 0 6px rgba(124, 58, 237, 0.6);
  }
  25% {
    text-shadow: 0 0 8px rgba(34, 211, 238, 0.75);
  }
  29% {
    text-shadow: 0 0 16px rgba(255, 255, 255, 0.95);
  }
  32% {
    text-shadow: 0 0 8px rgba(34, 211, 238, 0.6);
  }
}
@keyframes notifLegendaryEmojiGlow {
  0%,
  100% {
    filter: drop-shadow(0 0 5px rgba(232, 65, 124, 0.6));
  }
  28% {
    filter: drop-shadow(0 0 7px rgba(244, 193, 42, 0.8));
  }
  72% {
    filter: drop-shadow(0 0 4px rgba(232, 65, 124, 0.45));
  }
  73% {
    filter: drop-shadow(0 0 16px rgba(255, 185, 20, 0.95));
  }
  74% {
    filter: drop-shadow(0 0 5px rgba(232, 65, 124, 0.6));
  }
}
@keyframes notifMythicalEmojiGlow {
  0%,
  100% {
    filter: drop-shadow(0 0 6px rgba(124, 58, 237, 0.7));
  }
  25% {
    filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.85));
  }
  29% {
    filter: drop-shadow(0 0 18px rgba(255, 255, 255, 1));
  }
  32% {
    filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.7));
  }
  75% {
    filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.9));
  }
  77% {
    filter: drop-shadow(0 0 6px rgba(124, 58, 237, 0.65));
  }
}

/* Top-right corner of the card — parks the current notice (and anything still
   queued behind it) in the nav bell instead of dismissing it. Replaces the old
   "Got it all!" button; #notifCard needs position:relative for this to anchor to
   the card itself rather than the full-viewport overlay. */
.badge-notif-minimize {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 0.7rem;
  line-height: 1;
  background: transparent;
  color: rgba(251, 247, 236, 0.42);
  border: 1px solid rgba(251, 247, 236, 0.18);
  border-radius: 999px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    color 0.15s,
    border-color 0.15s;
}
.badge-notif-minimize:hover {
  color: rgba(251, 247, 236, 0.68);
  border-color: rgba(251, 247, 236, 0.38);
}

.badge-notif-card.badge-card-out {
  animation: badgeCardOut 0.22s ease forwards;
}
