/* Badge Chest Panel */

.badge-chest-panel .legend-leaderboard-header h1 {
  font-size: 1.4rem;
}

/* Chest badge list */
.badge-chest-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.badge-chest-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.badge-chest-item--new {
  background: rgba(255, 220, 80, 0.1);
  border-color: rgba(255, 220, 80, 0.3);
}

.badge-chest-item-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.badge-chest-item-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
}

.badge-chest-item-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #f0f0f0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-chest-item-desc {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-chest-item-date {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
  flex-shrink: 0;
}

/* "New" dot inside badge name */
.badge-new-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffd84d;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Chest indicator dot on btnCoffre.
   Visibility is controlled via style.display in JS — do NOT set display here. */
.chest-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffd84d;
  position: absolute;
  top: 4px;
  right: 4px;
}

#btnCoffre {
  position: relative;
}

/* ── Badge toast notifications ─────────────────────────────── */

#badgeToastContainer {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  width: min(340px, 90vw);
}

.badge-toast {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(20, 20, 20, 0.95);
  border: 1px solid rgba(255, 220, 80, 0.5);
  border-radius: 12px;
  padding: 10px 14px;
  width: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  animation: badge-toast-in 0.35s ease-out forwards;
}

.badge-toast--exit {
  animation: badge-toast-out 0.4s ease-in forwards;
}

@keyframes badge-toast-in {
  from { opacity: 0; transform: translateY(-16px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes badge-toast-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(-10px) scale(0.96); }
}

.badge-toast-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

.badge-toast-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.badge-toast-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffd84d;
}

.badge-toast-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #f0f0f0;
}

.badge-toast-desc {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
