/*-------------------------------------------Background Image---------------------------------------------*/
#bg {
    width: 100%;
    height: auto;
}

body{
    background-color: black;
}
.background img{
    width: 51%;
}


.leader-container{
    width: 100%;
   top: 27%;
}




.btn2{
    /* padding: 8px 31px; */
    font-size: 20px;
    font-weight: bold;
    color: black;
    width: 45%;
    padding: 15px;
    background: linear-gradient(45deg, #e7bc12, #faf6a1);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.5);
    animation: pulse 0.9s infinite linear;
    border: none;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.text-rank-2{
   
    left: 9%;
    top: 14%;

}
.text-rank-2 p{
   
   font-size: 13px;
       margin-bottom: 0rem;

}
 
.text-rank-1{
   
  left: 40%;
    top: 8%;
}
.text-rank-1 p{
   
   font-size: 13px;
       margin-bottom: 0rem;

}
.text-rank-3 {
    right: 9%;
    top: 13%;
}
.text-rank-3 p{
   
   font-size: 13px;
       margin-bottom: 0rem;

}

.countdown-container {
    top: 14%;

}

.countdown img{
    width: 50%;
}


.cd-body {
    padding: 37px 11px 14px;
    position: relative;
    z-index: 1;
  }
 
  .cd-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
 
  .cd-box {
      width: 79px;
    height: 74px;
    border-radius: 12px;
    background: linear-gradient(160deg, #7070d8 0%, #5050c0 50%, #3838a8 100%);
    border: 1.5px solid rgba(180,190,255,0.5);
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.18), 0 4px 14px rgba(40,50,180,0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    position: relative;
    overflow: hidden;
  }
 
  .cd-box::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 45%;
    background: linear-gradient(180deg, rgba(255,255,255,0.14) 0%, transparent 100%);
    border-radius: 10px 10px 0 0;
    pointer-events: none;
  }
 
  .cd-num {
    font-size: 38px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    letter-spacing: 2px;
    text-shadow: 0 1px 6px rgba(80,100,255,0.5);
    position: relative;
    z-index: 1;
  }
 
  .cd-lbl {
    font-size: 12px;
    font-weight: 700;
    color: #c0ccff;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
  }
 
  .cd-colon {
    font-size: 32px;
    font-weight: 900;
    color: #7080c0;
    line-height: 1;
    user-select: none;
  }
   .cd-footer {
   background: rgba(26, 13, 80, 0.6);
    padding: 12px 24px;
    display: flex;
    justify-content: center;
    gap: 40px;
    border-top: 2px solid rgba(100,80,200,0.5);
    position: relative;
    z-index: 1;
  }
 
  .cd-footer span {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
  }


  /* 活动时间 */
.event-time {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 16px;
  font-size: 14px;
  color: #ffd700;
}

/* Top 3 */
.top3-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1080 / 560; /* 换成你 flag.png 的实际比例 */
}

.flag-bg {
    width: 101%;
    height: 110%;
  display: block;
  object-fit: contain;
}

/* 文字用 absolute 叠在图片上 */
.top3-info {
  position: absolute;
  text-align: center;
  transform: translateX(-50%);
}

/* 第1名 — 中间旗帜 */
.rank1 {
      top: 29%;
  left: 50%;
}

/* 第2名 — 左边旗帜 */
.rank2 {
    top: 48%;
    left: 19%;
}

/* 第3名 — 右边旗帜 */
.rank3 {
  top: 48%;
  left: 81%;
}

.skeleton {
  color: transparent;
  background: linear-gradient(90deg, #2e2370 25%, #4a3a90 50%, #2e2370 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: 4px;
  display: inline-block;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.top3-amount {
  color: #ffd700;
  font-size: 13px;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
  line-height: 1.4;
}

.top3-player {
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  margin-top: 2px;
}

.leaderboard-wrapper {
  margin: 32px 16px 20px;
  background: #1e1850;
  border: 1px solid #6b5bcd;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
   max-height: 434px; /* 大概显示10行的高度，根据你的行高调整 */
  overflow-y: auto;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
}
.leaderboard-table thead {
  position: sticky;
  top: 0;
  z-index: 1;
}

.leaderboard-table thead tr {
  background: #2e2370;
  border-bottom: 1px solid #6b5bcd;
}

.leaderboard-table thead th {
  padding: 16px 20px;
  text-align: center;
  font-size: 14px;
  color: #ffffff;
  font-weight: 700;
}

.leaderboard-table tbody tr {
  background: #1e1850;
  border-bottom: 1px solid rgba(107, 91, 205, 0.35);
}

.leaderboard-table tbody tr:nth-child(even) {
  background: #1a1440;
}

.leaderboard-table tbody tr:last-child td {
  border-bottom: none;
}

.leaderboard-table tbody td {
  padding: 16px 20px;
  font-size: 14px;
  color: #ffffff;
}

.amount-col {
  font-weight: 700;
  color: #ffffff;
}

.leaderboard-footer {
  text-align: center;
  padding: 14px;
    font-size: 17px;
      color: #ffffff;

}

.leader-header {
  position: relative;  /* 改成 relative */
  z-index: 2;
  width: 94%;
  margin: 0 auto;      /* 居中 */
  margin-bottom: -20px; /* 压住table顶部 */
      left: 3%;
}

.leader-header img {
  width: 100%;
  display: block;      /* 去掉图片底部空隙 */
}


.sticky-icon {
    
    top: 75%;
    left: 80%;
    z-index: 1050;

    width: 20%;
   
    
    /* 发光背景 */
}

.btn-glow {
  display: inline-block;
  border-radius: 50%;
  padding: 0px;
  animation: glowPulse 1.5s infinite ease-in-out;
}


.leaderboard-btn{
     top: 81%;
}

.leaderboard-btn img{
    width: 40%;
}

.top-3 {
   top: 87%;
}

.top-3 img{
    width: 90%;
}

.top100-container{
    width: auto;
    height: auto;
    top:105%
}

.top3-title{
  width: 50%;
}

.top100-header{
    z-index: 2;
}

.top100-header img{
    width: 90%;
         margin-top: 2%;

}

.table{
    z-index: 1;
}

.prize-table {
  width: 90%;
  border-collapse: collapse;
  border: 1px solid #6b5bcd;
  border-radius: 8px;
  overflow: hidden;
  font-family: sans-serif;
}

.prize-table thead tr {
  background-color: #2e2370;
}

.prize-table thead th {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 24px;
  text-align: center;
  border-bottom: 1px solid #6b5bcd;
}

.prize-table tbody tr {
  background-color: #1e1850;
}

.prize-table tbody tr:nth-child(even) {
  background-color: #1a1440;
}

.prize-table tbody td {
  color: #ffffff;
  font-size: 15px;
  padding: 15px 24px;
  text-align: center;
  border-bottom: 1px solid rgba(107, 91, 205, 0.35);
}

.prize-table tbody tr:last-child td {
  border-bottom: none;
}

.prize-table-wrapper {
  position: relative;
  z-index: 1;
 margin-top: -7px; /* 往上移，让图片压住table顶部 */
}

.info-banner {
 background: 
    radial-gradient(ellipse 35% 100% at left center, transparent 0%, #290e4f 60%),
    radial-gradient(ellipse 35% 100% at right center, transparent 0%, #290e4f 60%),
    #290e4f;
  border: none;
  border-radius: 4px;
  padding: 22px 40px;
  width: 90%;
}

.info-banner ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.info-banner ul li {
  color: #ffffff;
  font-size: 15px;
  font-weight: 400;
  padding-left: 20px;
  position: relative;
}

.info-banner ul li::before {
  content: '•';
  position: absolute;
  left: 60px;
  top: 0;
  color: #ffffff;
  font-size: 20px;
  line-height: 1.1;
  font-weight: bold;
}

.top100-btn{
    top: 138%;
}

.top100-btn img{
    width: 40%;
}

.term-condition {
    height: 32vh;
  top: 145%;

}

.rules-list {
  padding-left: 20px;  /* 调这个数值 */
  margin: 0;
  list-style: none;
  counter-reset: rules-counter;
  display: flex;
  flex-direction: column;
  gap: 8px;

}

.rules-list li {
  color: #ffffff;
  font-size: 11px;
  line-height: 1.6;
  display: flex;
  gap: 8px;
  counter-increment: rules-counter;
  text-align: left;       /* 改成左对齐 */
  word-break: break-word; /* 允许长内容断行 */
}

.rules-list li::before {
  content: counter(rules-counter) ".";
  min-width: 24px;  /* 数字固定宽度，文字自动对齐 */
  flex-shrink: 0;
}







/*-------------------------------------------Keyframe Animation---------------------------------------------*/
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@media(max-width:321px){
  .cd-body {
    padding: 32px 6px 14px;
    position: relative;
    z-index: 1;
  }

  .term-condition {
        /* margin-top: 209%; */
        top: 179%  !important ;
  }

  .top100-btn {
        top: 174% !important;
    }

        .top100-container {

        top: 120%!important;
    }

    .info-banner ul li::before {
   
    left: 17px;
    
}

    .top-3 {
        top: 101%!important;
    }
        .leaderboard-btn {
        top: 96% !important;
    }

    .leader-container {
    width: 100%;
    top: 29%;
}
    .leader-header img {
        margin-top: -20%!important;
    }
}

@media(max-width:376px) {
  .cd-box {
    width: 57px;
    height: 70px;
  }

  .cd-num {
    font-size: 31px;

}
.leader-header {
    width: 94%;
    margin-bottom: -27px;
    left: 3%;
  }

    .term-condition {
        /* margin-top: 209%; */
        top: 169%;
    }
    .top100-btn {
        top: 163%;
    }

.top100-container

 {
    width: auto;
    height: auto;
    top: 116%;
}

.top-3 {
    top: 97%;
}

.leaderboard-btn {
    top: 88%;
}

li {
  word-break: break-word;
}

.info-banner ul li::before {
    content: '•';
    position: absolute;
    left: 40px;
    top: 0;
    color: #ffffff;
    font-size: 20px;
    line-height: 1.1;
    font-weight: bold;
}
}




@media(min-width:768px){
   .btn2{
    font-size: 30px;
   }

   .sticky-icon{
    width: 15%;
   }

   .countdown-container{
    width: 100%;
   }

   .cd-body {
    padding: 70px 40px 14px;
  }
  .cd-box {
    width: 122px;
    height: 109px;
  }
  .cd-footer span {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
}

    .leader-header {
        position: relative;
        width: 95%;
        left: 2%;
        margin: 0 auto;
        margin-top: -35px;
        margin-bottom: -20px;
        z-index: 2;
    }


    .leader-header img {
        width: 100%;
        margin-top: 0;
    }

    .leaderboard-wrapper {
    margin: 32px 40px 20px;
    background: #1e1850;
    border: 1px solid #6b5bcd;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    max-height: 434px;
    overflow-y: auto;
}

.rank2 {
    top: 48%;
    left: 20%;
}
.rank3 {
    top: 48%;
    left: 80%;
}
.top3-amount {

    font-size: 20px;

}

.top3-player {

    font-size: 17px;
   
}

.leaderboard-btn {
    top: 61%;
}

.top-3 {
    top: 68%;
}

.leader-container {
    width: 100%;
    top: 24%;
}

.top100-container {
    width: auto;
    height: auto;
    top: 87%;
}

.top100-btn {
    top: 107%;
}


.term-condition {
        height: 59vh;
        top: 112%;
        text-align: center;
        left: 14%;
    }

.rules-list li {

    font-size: 14px;
  
}
  
}

/*-------------------------------------------Multi Device Screen Size---------------------------------------------*/
/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {

  .countdown-container {
         width: 100%;
        top: 15%;
}
    .cd-body {
        padding: 85px 40px 14px;
    }

 
    .info-banner ul li::before {
    content: '•';
    position: absolute;
    left: 43%;
    top: 0;
    color: #ffffff;
    font-size: 20px;
    line-height: 1.1;
    font-weight: bold;
}

   .countdown img {
        width: 25%;
    }

    .cd-box {
        width: 152px;
        height: 148px;
    }
  .top3-wrapper {
    aspect-ratio: 1080 / 560; /* 同样比例 */
           width: 74%;
        left: 25%;
  }
.flag-bg {
    width: 65%;
    display: block;
}

    .rank2 {
        top: 47%;
        left: 12.5%;
    }

       .rank1 {
        top: 35%;
        left: 32.5%;
    }
.rank3 {
    top: 47%;
    left: 52.5%;
}
.leader-container {
    width: 100%;
    top: 22%;
}
 .leader-header {
    position: relative;   /* 改回 relative */
    width: 65%;
    left: 25%;           /* 微调居中 */
    margin-bottom: -20px;
    margin-top: -60px;    /* 往上移压住旗帜底部 */
    z-index: 2;
  }
.cd-row {
 
    padding-bottom: 20px;
}
.cd-footer {

    width: 45%;
    left: 28%;
}

 .leader-header img {
    width: 76%;
    margin-top: 0;        /* 去掉之前的 margin-top: -54% */
  }

    .leaderboard-wrapper {
        max-width: 800px;
        margin: 21px auto 37px;
    }
    .leaderboard-btn {
        top: 59%;
    }
    .leaderboard-btn img {
    width: 18%;
}

    .top-3 {
        top: 67%;
    }

.top-3 img {
    width: 51%;
}

.top3-title {
    width: 23%;
}

.top100-header img {
    width: 45%;
    margin-top: 2%;
}

.prize-table {
    width: 44%;
}

    .top100-container {
        height: auto;
        top: 87%;
    }

    .info-banner {

    width: 44%;
}

    .info-banner ul li::before {
        content: '•';
        position: absolute;
        left: 35%;
}

.top100-btn img {
    width: 17%;
}

    .top100-btn {
        top: 105%;
    }
    .term-condition {
        height: 35vh;
        top: 110%;
        left: 28%;
        width: 43%;
    }




}
.page-wrapper {
  max-width: 2560px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

@media(min-width:2000px){
    .leader-header img {
    width: 76%;
    margin-top: 0;
  }

        .countdown-container {
        top: 16%;
    }

        .countdown img {
        width: 20%;
    }

    
        .leaderboard-wrapper {
        max-width: 1200px;
        margin: 55px auto 37px;
    }
.leader-container {
        width: 100%;
        top: 21%;
    }
    
.leader-header {
    position: relative;
    width: 64%;
    left: 25.5%;
    margin-top: -61px;
    margin-bottom: -20px;
    z-index: 2;
  }

   .leader-header img {
    width: 76%;
    margin-top: 0;
  }
        .leaderboard-btn img {
        width: 10%;
    }
     .leaderboard-btn {
        top: 53.5%;
    }
        .top-3 img {
        width: 33%;
    }
    .top-3 {
        top: 58%;
    }
        .top3-title {
        width: 13%;
    }
    .top100-header img {
        width: 34%;
        margin-top: 2%;
    }
    .prize-table-wrapper {
    position: relative;
    z-index: 1;
    margin-top: -16px;
}
.prize-table {
        width: 32%;
    }
        .info-banner {
        width: 32%;
    }
       .top100-btn{
        top: 87%;
    }

    .top100-btn img {
        width: 10%;
    }
        .top100-container {
        height: auto;
        top: 74%;
    }

        .term-condition {
        height: 36vh;
        top: 91%;
        left: 35%;
        width: 30%;
    }

    
}