 
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap');

 
 body {
             background: linear-gradient(115deg, rgb(249, 206, 52), rgb(238, 42, 123), rgb(98, 40, 215));
          
            min-height: 100vh;
            font-family: 'Source Sans 3', Tahoma, Geneva, Verdana, sans-serif;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 0;
        }
        .leaderboard-container {
            background: white;
            border-radius: 1.5rem;
            width: 100%;
            max-width: 400px;
            box-shadow: 0 3px 6px rgba(0,0,0,0.1), 0 12px 20px rgba(0,0,0,0.1);
            overflow: hidden;
        }
        @media (min-width: 768px) {
            .leaderboard-container {
                max-width: 800px;
            }
            .top-three {
                padding: 1.5rem 2rem 2.5rem 2rem;
            }
            .top-three .user img {
                width: 120px;
                height: 120px;
            }
            .top-three .user.center img {
                width: 150px;
                height: 150px;
            }
            .leaderboard-list {
                max-height: 500px;
            }
            .user-info img {
                width: 60px;
                height: 60px;
            }
        }
        @media (min-width: 1200px) {
            .leaderboard-container {
                max-width: 1200px;
            }
        }
        .header-icons {
            font-size: 1.1rem;
            padding: 1rem 1rem 0 1rem;
            display: flex;
            justify-content: space-between;
            color: #333;
            user-select: none;
        }
        .leaderboard-title {
            font-weight: 700;
            font-size: 1.5rem;
            padding: 0 1.5rem;
            margin-bottom: 0;
            margin-top: 15px;
            user-select: none;
        }
        .nav-tabs {
            border-bottom: none;
            margin: 0 1rem;
        }
        .nav-tabs .nav-link {
            font-weight: 600;
            color: #666;
            border: none;
            border-radius: 0.8rem 0.8rem 0 0;
            padding: 0.5rem 1.2rem;
            margin-right: 0.4rem;
        }
        .nav-tabs .nav-link.active {
            color: #022a5a;
            border: none;
            border-radius: 0.8rem 0.8rem 0 0;
            background-color: white;
            box-shadow: 0 6px 18px rgba(2, 42, 90, 0.12);
            font-weight: 700;
        }
        .top-three {
            background: white;
            border-radius: 1rem;
            margin: 1rem;
            padding: 1.2rem 1rem 2rem 1rem;
            box-shadow: 0 3px 10px rgb(0 0 0 / 0.05);
            user-select: none;
        }
        .top-three .rank-indicator {
            font-weight: 500;
            font-size: 0.9rem;
            text-align: center;
            margin-bottom: 0.5rem;
        }
        .top-three .user {
            text-align: center;
            flex: 1 1 0;
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        .top-three .user img {
            width: 72px;
            height: 72px;
            object-fit: cover;
            border-radius: 50%;
            border: 3px solid transparent;
            margin-bottom: 0.5rem;
            background-color: #f0f0f0;
            transition: border-color 0.3s ease;
        }
        .top-three .user.center img {
            width: 96px;
            height: 96px;
            border-width: 4px;
        }
        .top-three .user.rank1 img {
            border-color: #ffeb01;
        }
        .top-three .user.rank2 img {
            border-color: #39d6a5;
        }
        .top-three .user.rank3 img {
            border-color: #fb7185;
        }
        .top-three .user.center .crown-icon {
            position: absolute;
            top: -22px;
            background: #ffeb01;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            box-shadow: 0 2px 8px rgb(245 158 11 / 0.5);
        }
        .top-three .user.center .crown-icon svg {
            width: 18px;
            height: 18px;
            fill: #000000;
        }
        .top-three .username {
            font-weight: 600;
            font-size: 1rem;
            margin-bottom: 2px;
            color: #111;
        }
        .top-three .points {
            font-weight: 700;
            font-size: 0.85rem;
            color: #f5e200;
            margin-bottom: 2px;
        }
        .top-three .handle {
            font-size: 0.75rem;
            color: #999;
        }
        .leaderboard-list {
            max-height: 280px;
            overflow-y: auto;
            background: white;
            border-radius: 1rem;
            margin: 1rem;
            padding: 0;
            box-shadow: 0 3px 12px rgb(0 0 0 / 0.06);
        }
        .leaderboard-list ul {
            list-style: none;
            padding: 10px 0;
            margin: 0;
        }
        .leaderboard-list li {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0.6rem 1.5rem;
            border-bottom: 1px solid #eee;
            user-select: none;
            gap: 10px;
        }
        .leaderboard-list li:last-child {
            border-bottom: none;
        }
        .leaderboard-list li.active {
            background: #0D6EFD;
            color: white;
            font-weight: 600;
            border-radius: 1rem;
            box-shadow: 0 8px 12px rgb(13 110 253 / 0.3);
        }
        .leaderboard-list li.active .username,
        .leaderboard-list li.active .handle,
        .leaderboard-list li.active .points {
            color: white !important;
        }
        .ranking-number {
            width: 28px;
            text-align: center;
            font-weight: 600;
            font-size: 0.9rem;
            color: #666;
            user-select: none;
        }
        .user-info {
            display: flex;
            align-items: center;
            flex: 1 1 auto;
            gap: 1rem;
            min-width: 0;
        }
        .user-info img {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            object-fit: cover;
            flex-shrink: 0;
            background-color: #efefef;
        }
        .username {
            font-weight: 600;
            font-size: 1rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            color: #222;
        }
        .handle {
            color: #999;
            font-size: 0.85rem;
            white-space: nowrap;
        }
        .points {
            font-weight: 700;
            font-size: 0.95rem;
            white-space: nowrap;
            color: #0d6efd;
            user-select: text;
        }
        @media (max-width: 440px) {
            .top-three .user img {
                width: 60px;
                height: 60px;
            }
            .top-three .user.center img {
                width: 80px;
                height: 80px;
            }
            .leaderboard-container {
                max-width: 100%;
            }
            .nav-tabs {
                margin: 0 0.5rem;
            }
            .leaderboard-list li {
                padding: 0.5rem 1rem;
                font-size: 0.9rem;
            }
            .user-info img {
                width: 36px;
                height: 36px;
            }
            .ranking-number {
                width: 24px;
                font-size: 0.85rem;
            }
        }
.tab-scroll-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-tabs {
  margin: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav-tabs::-webkit-scrollbar {
  display: none;
}

.scroll-btn {
  background: white;
  border: none;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 0.25rem 0.5rem;
  color: #444;
  cursor: pointer;
  z-index: 10;
}

.scroll-btn.left {
  margin-right: 0.25rem;
}

.scroll-btn.right {
  margin-left: 0.25rem;
}

.scroll-btn {
  background: white;
  border: 1px solid #ddd;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: bold;
  width: 30px;
  height: 30px;
  color: #444;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.scroll-btn.left {
  left: 0;
  margin-left: 0.2rem;
}

.scroll-btn.right {
  right: 0;
  margin-right: 0.2rem;
}

/* Only show on mobile */
@media (min-width: 768px) {
  .scroll-btn {
    display: none;
  }
}

.scroll-btn {
  opacity: 0.8;
  transition: opacity 0.3s ease;
}
.scroll-btn:hover {
  opacity: 1;
}

.tab-scroll-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 1rem;
}

.nav-tabs {
  display: flex;
  flex-wrap: nowrap;
  white-space: nowrap;
  gap: 0.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}

.nav-tabs::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.nav-tabs .nav-link {
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (max-width: 360px) {
  .leaderboard-list li {
    flex-direction: column;
    align-items: flex-start;
  }

  .points {
    margin-left: 0;
    margin-top: 4px;
    align-self: flex-end;
  }

  .user-info {
    width: 100%;
    /* justify-content: space-between; */
  }
}
.username, .handle, .points {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 400px) and (min-width: 361px) {
  .username {
    font-size: 0.9rem;
  }

  .points {
    font-size: 0.85rem;
  }

  .user-info img {
    width: 32px;
    height: 32px;
  }

  .leaderboard-list li {
    gap: 0.5rem;
    padding: 0.5rem 1rem;
  }
}
.footer-a-link{
    text-decoration: none;
    color: black;
    font-weight: 600;
}

.invite-link-container {
        background: #f7f4f0;
        border-radius: 10px;
        padding: 10px 12px;
        display: flex;
        align-items: center; /* Center button vertically */
        justify-content: space-between;
        font-size: 0.9rem;
        color: #414141;
    }

    .invite-texts {
        display: flex;
        flex-direction: column; /* Stack p and span */
        flex-grow: 1;
        overflow: hidden;
    }

    .invite-texts p {
        margin: 0;
    }

    .invite-link-text {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        color: #666;
    }

    
    .copy-button {
        background: #fef003;
        color: #181818ff;
        font-size: 0.85rem;
        padding: 8px 14px;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        font-weight: 600;
        transition: background-color 0.2s ease;
        margin-left: 12px;
        flex-shrink: 0;
        text-decoration: none;
    }

       .copyright{
      font-size: 0.6rem;
    }