body {
  margin: 0;
  background: #000;
}

.prize-container {
  text-align: center;
  color: white;
  font-family: 'Mont', sans-serif;
  padding: 20px;
}

.prize-pool {
  font-size: 4.5rem;
  font-weight: 900;
  color: #fff;
  
  margin-bottom: 10px;
  line-height: 0.8;
}

.amount{
  font-size: 100px;
  font-weight: 900;
  text-transform: uppercase;

  background: linear-gradient(to bottom,
    #ffffff 0%,
    #f5f5f5 25%,
    #e0e0e0 50%,
    #f5f5f5 75%,
    #ffffff 100%);
  background-clip: text;
  -webkit-background-clip: text;

  color: transparent;
  -webkit-text-fill-color: transparent;

  text-shadow:
    0 0 12px rgba(255, 255, 255, 0.6), /* outer white glow */
    0 2px 8px rgba(0, 0, 0, 0.2);      /* soft bottom shadow */
}
.gradient-text {
  font-size: 40px;
  font-weight: 900;
  text-transform: uppercase;

  background: linear-gradient(to bottom,
    #f9d976 0%,
    #f7c340 30%,
    #ffda55 50%,   /* bright warm gold */
    #f7c340 70%,
    #f0b42b 100%);
  background-clip: text;
  -webkit-background-clip: text;

  color: transparent;
  -webkit-text-fill-color: transparent;
}


.last-updated-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 60px;
}

.last-updated {
  font-weight: 200;
  font-size: 1rem;
  color: #ffffff;
  letter-spacing: 1px;
  background-color: rgba(0, 128, 40, 0.8); /* dark blackish with 0.8 opacity */
  padding: 10px 20px;
  border-radius: 12px;
  display: inline-block;
  text-align: center;
  margin-top: -2rem;
}


.player-row {
  display: flex;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
}

.player-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.player-card {
  position: relative;
  width: 297px;
  height: 395px;
  background-size: cover;
  background-position: center;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 3rem;
  box-shadow: 0 0 12px rgba(0, 255, 128, 0.4);
}


.player-avatar {
  width: 150px;
  height: 150px;
  border-radius: 10%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}


.player-name {
  font-weight: 600;
  font-size: 1.8rem;
  margin: 2x 0;
}

.player-wagered {
  font-size: 1.1rem;
  color: white;
  line-height: 1.4;
}

.player-wagered span {
  color: #00ffc3;
  font-size: 1.2rem;
  font-weight: bold;
}



.rank-badge {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 60px;
  height: 60px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 2;
}

.gold-badge {
  background-image: url('gold_badge.png');
}

.silver-badge {
  background-image: url('silver_badge.png');
}

.bronze-badge {
  background-image: url('bronze_badge.png');
}

.player-prize {
  margin-top: -25px;
  font-size: 1.25rem;
  font-weight: 900;
  font-family: sans-serif;
  color: #ffffff;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.6); /* golden glow */
  transform: translateY(-20px); /* move upward */
}


/* Mobile: gold appears first */
@media (max-width: 768px) {
    .wagered-header,
    .prize-header,
    .tickets-header {
        width: 120px;
    }
    .rank-header {
        width: 60px;
    }
    
    .leaderboard-table th,
    .leaderboard-table td {
        padding: 0.75rem 0.5rem;
    }
  .player-row {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }
    .table-scroll {
        height: 30rem;
    }

  .player-wrapper:nth-child(1) {
    order: -1;
  }

  .player-card,
  .player-prize {
    width: 90vw;
    max-width: 320px;
  }
}

/* Desktop: reorder gold to middle */
@media (min-width: 769px) {
  .player-wrapper:nth-child(1) {
    order: 2;
  }

  .player-wrapper:nth-child(2) {
    order: 1;
  }

  .player-wrapper:nth-child(3) {
    order: 3;
  }
}

.table-container {
    max-width: 1280px;
    margin: 4rem auto 2rem;
    padding: 0 1rem;
}

.table-wrapper {
    background-color: rgba(31, 41, 55, 0.3);
    border: 1px solid rgba(75, 85, 99, 0.3);
    border-radius: 0.75rem;
    backdrop-filter: blur(4px);
    overflow: hidden;
}

.table-scroll {
    height: 30rem;
    overflow: auto;
}

.table-scroll {
    scrollbar-width: thin;
    scrollbar-color: #22c55e #1f2937;
}

.table-scroll::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.table-scroll::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
    border-radius: 10px;
    border: 1px solid #374151;
}

.table-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
    border-radius: 10px;
    border: 1px solid #15803d;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.table-scroll::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #16a34a 0%, #15803d 100%);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
}

.table-scroll::-webkit-scrollbar-corner {
    background: #1f2937;
}

.leaderboard-table {
    width: 100%;
    min-width: 50rem;
    border-collapse: collapse;
}

.leaderboard-table thead {
    position: sticky;
    top: 0;
    background-color: rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(8px);
    z-index: 10;
}

.leaderboard-table th {
    text-align: left;
    padding: 1.25rem 1rem;
    color: #d1d5db;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid rgba(34, 197, 94, 0.3);
    background-color: rgba(31, 41, 55, 0.95);
}

.leaderboard-table td {
    padding: 1rem 0rem;
    border-bottom: 1px solid rgba(55, 65, 81, 0.3);
    vertical-align: middle;
}

.leaderboard-table tbody tr {
    transition: all 0.2s ease;
}

.leaderboard-table tbody tr:hover {
    background-color: rgba(55, 65, 81, 0.4);
    transform: translateX(2px);
}

.leaderboard-table tbody tr:last-child td {
    border-bottom: none;
}

.rank-header {
    width: 80px;
    text-align: center;
}

.player-header {
    width: auto;
    min-width: 200px;
}

.wagered-header {
    width: 150px;
    text-align: right;
}

.prize-header, .tickets-header {
    width: 150px;
    text-align: center;
}

.player-name {
  
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    display: flex;
    align-items: center;
    min-height: 2.5rem;
}

.rank-cell {
    color: #22c55e;
    font-weight: bold;
    font-size: 1.125rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
}

.wagered-cell {
    color: #22c55e;
    font-weight: bold;
    font-size: 1.125rem;
    text-align: right;
    display: flex;
    align-items: center;
    margin-left: 15px;
    min-height: 2.5rem;
}

.prize-cell {
    color: #eab308;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    display: flex;
    align-items: center;
    min-height: 2.5rem;
}

.gamdom-button-wrapper {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 0.6rem;
  border: 2px solid #00ff99;
  border-radius: 12px;
  width: fit-content;
  margin-inline: auto;
  max-width: 85%;
  margin-top: 2rem;
  scale: 0.8;
}

.gamdom-btn {
  position: relative;
  width: 200px;
  height: 80px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  font-family: 'Orbitron', sans-serif;
  text-transform: uppercase;
  font-weight: bold;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, outline 0.3s ease;
}

.logo-container {
  position: absolute;
  width: 160px;
  height: 160px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.logo-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.gamdom-btn span {
  z-index: 1;
  color: #00ff99;
  font-size: 0.75rem;
  text-shadow: 0 0 6px #000;
  pointer-events: none;
}

.gamdom-btn:hover {
  transform: scale(1.05);
}

.gamdom-btn.active {
  outline: 2px solid #00ff99;
  outline-offset: -4px;
}

.gamdom-btn-text {
  z-index: 1;
  color: #00ff99;
  font-size: 4rem; 
  text-shadow: 0 0 6px #000;
  pointer-events: none;
  margin-top: 18%;
  margin-right: -39%;
}

.gamdom-btn .gamdom-btn-text {
  font-size: 0.95rem !important;
}

@media (max-width: 540px) {
  .gamdom-btn {
    width: 140px;
    height: 60px;
  }

  .logo-container {
    width: 100px;
    height: 100px;
  }
.gamdom-btn .gamdom-btn-text {
  font-size: 0.65rem !important;
}

  .gamdom-btn-text {
    font-size: 0.45rem;
    margin-top: 0;
    margin-right: 0;
    position: absolute;


    margin-top: 20%;
    margin-right: -30% !important;
  }
}
.total-tickets-card {
    background-color: #052e16; /* Deep green background */
    border: 1px solid #22c55e; /* Bright green border */
    border-radius: 0.75rem;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    max-width: 50rem;
    justify-self: center;
}

.total-tickets-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.total-tickets-title {
    font-size: 1.875rem;
    font-weight: bold;
    color: #4ade80; /* Soft green */
}

.ticket-icon-large {
    width: 2rem;
    height: 2rem;
    color: #4ade80;
}

.total-tickets-count {
    font-size: 3.75rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #bbf7d0; /* Light mint green */
}

.ticket-assignment-info {
    background-color: #064e1f; /* Slightly lighter green */
    border: 1px solid #22c55e;
    border-radius: 0.5rem;
    padding: 1rem;
}

.assignment-title {
    color: #86efac; /* Softer green for subheading */
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.assignment-description {
    color: #d1fae5; /* Pale mint green */
    font-size: 0.875rem;
}

.raffles-container {
  width: 97%;
  max-width: 1250px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.raffle-info-card {
  background-color: rgba(5, 46, 22, 0.7);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 0.75rem;
  backdrop-filter: blur(4px);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.raffle-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.raffle-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: #4ade80;
}

.raffle-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #4ade80;
}

.raffle-description {
  color: #d1fae5;
  margin-bottom: 1rem;
}

.raffle-highlight {
  background-color: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 0.5rem;
  padding: 1rem;
}

.raffle-highlight-text {
  color: #86efac;
  font-weight: 600;
}

/* INFO CARD STYLES (updated to match raffle-info-card) */
.info-card {
  background-color: rgba(5, 46, 22, 0.7);
  border-radius: 0.75rem;
  backdrop-filter: blur(4px);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.prize-info {
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.info-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.info-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.tickets-info .info-icon {
  color: #22c55e;
}

.prize-info .info-icon {
  color: #eab308;
}

.info-title {
  font-size: 1.5rem;
  font-weight: bold;
}

.tickets-info .info-title {
  color: #22c55e;
}

.prize-info .info-title {
  color: #eab308;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #d1d5db;
}

.info-bullet {
  width: 0.5rem;
  height: 0.5rem;
  background-color: #22c55e;
  border-radius: 50%;
}

.prize-structure {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.prize-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(75, 85, 99, 0.5);
}

.prize-row:last-child {
  border-bottom: none;
}

.prize-tickets {
  color: #d1d5db;
}

.prize-amount {
  color: #22c55e;
  font-weight: 600;
}

.prize-highlight {
  margin-top: 1rem;
  padding: 1rem;
  background-color: rgba(234, 179, 8, 0.05);
  border: 1px solid rgba(234, 179, 8, 0.3);
  border-radius: 0.5rem;
}

.prize-highlight-text {
  color: #facc15;
  font-size: 0.875rem;
  font-weight: 600;
}

.ticket-icon-small {
    width: 1rem;
    height: 1rem;
    color: #3b82f6;
    flex-shrink: 0;
}

.ticket-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    margin: 0 auto;
    transition: all 0.2s ease;
}

.ticket-badge:hover {
    background-color: rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.5);
}

.timer-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 15px;
}

#timer-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.8);
  color: #00ff88;
  padding: 12px 18px;
  border-radius: 10px;
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  text-align: center;
}

.time-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.label {
  font-size: 0.6rem;
  margin-top: 3px;
  letter-spacing: 1px;
  color: #00ff88;
}

.colon {
  font-size: 2rem;
  line-height: 1;
  margin-top: -10px;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@800&display=swap');

.leaderboard-heading {
  font-family: 'Montserrat', sans-serif;
  font-size: 6rem;
  font-weight: 800;
  text-transform: uppercase;
  background: linear-gradient(to right, #a8ff78, #5a7d72); /* Light green gradient */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow:
    2px 2px 6px rgba(0, 255, 100, 0.7),
    0 0 10px rgba(0, 255, 100, 0.2); /* Balanced glow */
  text-align: center;
  margin: 20px 0;
}


@media (max-width: 930px) {
  .leaderboard-heading {
    font-size: 4rem; /* Adjusted for smaller screens */
    margin: 10px 0;
  }
}
@media (max-width: 630px) {
  .leaderboard-heading {
    font-size: 3rem; /* Further adjustment for very small screens */
    margin: 5px 0;
  }
  .prize-pool {
    scale: 0.9; /* Adjust prize pool size for smaller screens */
  }
  
}

@media (max-width: 450px) {
  .leaderboard-heading {
    font-size: 2.5rem; /* Further adjustment for very small screens */
    margin: 5px 0;
  }
  .gradient-text{
    font-size: 35px;
  }
  .gamdom-button-wrapper{
    scale: 1;
  }
}

.trophy-avatar {
  width: 220px;
  height: 220px;
  object-fit: contain;
  display: block;
  margin: auto;
  margin-top: -1rem;


  /* Fade-in from bottom to 25% */
  -webkit-mask-image: linear-gradient(
    to top,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.5) 15%,
    rgba(0, 0, 0, 1) 25%,
    rgba(0, 0, 0, 1) 100%
  );
  mask-image: linear-gradient(
    to top,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.2) 20%,
    rgba(0, 0, 0, 1) 45%,
    rgba(0, 0, 0, 1) 100%
  );

  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

