body {
  margin: 0;
  background: #062d1a;
  font-family: "Poppins", sans-serif;
  padding: 30px;
}
.title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 20px;
}

.filters {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
}

.pill {
  background: rgba(255, 255, 255, 0.06);
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 500;
  color: white;
}

.pill-gold {
  background: linear-gradient(180deg, #f6d77a, #ffebb9, #f6d77a, #cda642);
  color: #2c2c2c;
  font-weight: 800;
}
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}
.cards_2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}
.cards_3 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}
/* CARD */
.card {
  width: 35%;
  min-height: 300px;
  border-radius: 12px;
  position: relative;
  background-size: cover;
  background-position: center;
  z-index: 1;
  padding: 0px 10px;
  background-color: #05220f;
  border-color: #f6c44a 1px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  border: 1px solid #f6d77a;
  margin-top: 1rem;
}

/* .bg-1 {
  background-image: url(/assets/images/leaderboard-bg-img/Background2.png);
}

.bg-2 {
  background-image: url(/assets/images/leaderboard-bg-img/Background3.png);
}

.bg-3 {
  background-image: url(/assets/images/leaderboard-bg-img/Background4.png);
}

.bg-4 {
  background-image: url(/assets/images/leaderboard-bg-img/Background5.png);
}

.bg-5 {
  background-image: url(/assets/images/leaderboard-bg-img/Background6.png);
} */

/* dark gradient overlay */
.overlay {
  position: absolute;
  /* inset: 0; */
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.75));
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  content: "";
  border-radius: 15px;
  border-color: #f6c44a 2px;
}

.prize-value {
  padding-bottom: 70px;
}
/* top content */
.content {
  position: unset;
  z-index: 2;
  padding: 18px 18px 18px;
}

/* header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.title {
  color: white;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  gap: 6px;
  align-items: center;
}

.title-icon {
  width: 18px;
  height: 18px;
}

/* badge */
.badge-active {
  background-image: url("/assets/images/leaderboard-bg-img/green_tag.png");
  /*background: linear-gradient(180deg, #4ef05a, #13a92b);*/
  padding: 12px 33px;
  border-top-right-radius: 10px;
  font-size: 14px;
  color: #ffffff;
  font-weight: 700;
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  right: 0;
  margin: 0;
  background-repeat: no-repeat;
  background-size: 100% 120%; /* Stretch image to fit container width and height */
  background-position: center;
  z-index: 10;
  min-width: 120px; /* Ensure consistent width for alignment */
  text-align: center;
  white-space: nowrap;
}
.badge-icon {
  width: 14px;
  height: 14px;
}

/* price */
.prize-label {
  color: #9fb49a;
  font-size: 13px;
}

.prize {
  font-size: 40px;
  color: #f6c44a;
  font-weight: 800;
}

/* meta pills */
.meta-row {
  display: flex;
  gap: 10px;
}

.meta-pill {
  background: rgba(255, 255, 255, 0.08);
  padding: 8px 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(210, 206, 124, 0.227);
  box-shadow: inset 0 -4px 10px rgba(213, 213, 212, 0.273);
  backdrop-filter: blur(3px);
}

/* Desktop: Ensure time remaining pill has more width */
@media (min-width: 1081px) {
  /* Target only the time remaining meta-pill */
  .meta-pill.meta-pill-timer {
    min-width: 140px;
    flex: 0 1 auto;
  }

  .meta-pill.meta-pill-timer .meta-text {
    white-space: normal;
    line-height: 1.2;
  }
}

.meta-icon {
  width: 18px;
}

.meta-text {
  font-size: 10px;
  color: #dfeee0;
}

.meta-text span {
  color: white;
  font-weight: 700;
}

.meta-pill.time {
  background: linear-gradient(90deg, #14472d, #0b2d1c);
}

.leaderboard-h1 {
  font-family: headLineFont, serif !important;
  text-align: center;
  margin-top: 8.5rem !important;
  font-size: 25px !important;
  margin-bottom: 1rem !important;
  font-weight: 700 !important;
}

/* TABLET VIEW */
@media (max-width: 1080px) {
  body {
    padding: 20px;
  }

  .title {
    font-size: 28px;
    font-weight: 700;
  }

  .cards,
  .cards_2,
  .cards_3 {
    gap: 20px;
  }

  .card {
    width: 48%; /* 2 cards per row on tablet */
    min-height: 280px;
  }

  .prize {
    font-size: 32px;
  }

  .meta-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .meta-pill {
    flex: 1 1 auto; /* Allow grow and shrink */
  }
}

/* MOBILE VIEW */
@media (max-width: 768px) {
  * {
    box-sizing: border-box;
  }

  body {
    padding: 20px;
  }

  .title {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .filters {
    gap: 8px;
    flex-wrap: wrap;
  }

  /* Force single column for cards */
  .cards,
  .cards_2,
  .cards_3 {
    flex-direction: column;
    align-items: stretch; /* Stretch to fill width */
    gap: 20px;
    width: 100%;
  }

  .card {
    width: 100%;
    max-width: none;
    min-height: auto;
    padding: 0;
  }

  .content {
    padding: 20px;
  }

  .header {
    margin-bottom: 10px;
    padding-right: 90px; /* Make space for the  badge so text doesn't overlap */
  }

  .header .title {
    font-size: 16px;
  }

  .badge-active {
    /* Adjust badge size for mobile if needed */
    padding: 13px 23px;
    font-size: 12px;
    border-top-right-radius: 12px;
    /* Ensure it sticks to the corner */
    top: 0;
    right: 0;
  }

  .prize-value {
    padding-bottom: 30px;
  }

  .prize-label {
    font-size: 14px;
  }

  .prize {
    font-size: 36px;
  }

  .meta-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
  }

  /* If screen is very small, wrap */
  @media (max-width: 400px) {
    .meta-row {
      flex-wrap: wrap;
    }
    .meta-pill {
      width: 100%;
      flex: 1 1 100%;
    }
    .badge-active {
      padding: 6px 15px;
      font-size: 11px;
    }
  }

  .meta-pill {
    padding: 8px 10px;
    flex: 1; /* Distribute space evenly */
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: fit-content; /* Prevent content from disappearing */
  }

  .meta-text {
    font-size: 10px;
    line-height: 1.2;
    white-space: nowrap; /* Keep text on one line if possible */
    color: #dfeee0; /* Ensure color is set */
  }

  .meta-text span {
    color: white; /* Ensure value is white */
  }
}

/* SMALL MOBILE VIEW */
@media (max-width: 480px) {
  body {
    padding: 10px;
  }

  .title {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .cards,
  .cards_2,
  .cards_3 {
    gap: 15px;
  }

  .card {
    min-height: 260px;
  }

  .content {
    padding: 12px;
  }

  .header .title {
    font-size: 13px;
  }

  .badge-active {
    padding: 13px 23px;
    font-size: 10px;
  }

  .prize-value {
    padding-bottom: 40px;
  }

  .prize {
    font-size: 24px;
  }

  .meta-row {
    gap: 6px;
  }

  .meta-pill {
    padding: 6px 6px;
    gap: 4px;
    min-width: calc(33.333% - 4px);
  }

  .meta-icon {
    width: 14px;
  }

  .meta-text {
    font-size: 8px;
  }
}
