:root { 
  --primary: #00aaff;   
  --accent: #1a13e0ff;    
  --muted: #999999;        
  --glass: rgba(5,5,25,0.7); 
  --glass-border: rgba(0,200,255,0.4);
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: linear-gradient(135deg, #010511, #020822, #030b1f);
  color: #fff;
  overflow-x: hidden;
}


.lightning-flash {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background: radial-gradient(circle at 20% 5%, rgba(0,240,255,0.95), transparent 20%),
              linear-gradient(180deg, rgba(0,240,255,0.25), transparent);
  opacity: 0;
  animation: flash 2s infinite;
}
@keyframes flash {
  0%, 95%, 100% { opacity: 0; }
  45%, 55% { opacity: 0.5; }
}
.toplogo {
  width: 70%;          
  max-width: 100px;    
  height: auto;        
  object-fit: contain; 
  border-radius: 12px; 
}


.rain { position: fixed; top:0; left:0; width:100%; height:100%; pointer-events:none; z-index:-1; }
.drop { 
  position: absolute; width:2px; height:14px;
  background: linear-gradient(180deg, rgba(0,230,255,0.9), rgba(0,170,255,0.15));
  border-radius: 1px; 
  transform: skewX(-12deg); 
  opacity: 0.8; 
  animation-name: fall; animation-timing-function: linear; animation-iteration-count: infinite;
}

@keyframes fall {
  0% { transform: translateY(-20px) skewX(-12deg); opacity:0.9; }
  50% { opacity:0.7; }
  100% { transform: translateY(110vh) skewX(-10deg); opacity:0.05; }
}


.navbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.8rem 1.5rem;
  backdrop-filter: blur(6px); background: rgba(0,0,15,0.5);
  border-bottom: 1px solid rgba(0,230,255,0.1);
  position: sticky; top:0; z-index:10;
}
.nav-brand { display:flex; align-items:center; gap:10px; }
.logo { width:60px; }
.brand-text  {   
  text-decoration: none;
  text-underline-offset: none;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary);}
  a{
    text-decoration: none;
  }
.nav-links { display:flex; gap:20px; }
.nav-links a { text-decoration:none; color:#fff; font-weight:500; position:relative; }
.nav-links a::after {
  content:'';
  position:absolute; width:0; height:2px;
  background: var(--accent); bottom:-3px; left:0;
  transition: width 0.3s;
}
.nav-links a:hover::after { width:100%; }
.nav-links a:hover { color: var(--accent); }


.leaderboard-container {
  max-width: 1000px;
  margin: 0 auto 3rem auto;
  display:flex; flex-direction:column; align-items:center; gap:2rem;
  padding:0 1rem;
}


.top-3 {
  display:flex; justify-content:center; align-items:flex-end; gap:1.5rem; flex-wrap:wrap;
}
.player {
  width:180px;
  background: var(--glass);
  border:1px solid var(--glass-border);
  border-radius:20px; padding:1rem; text-align:center;
  box-shadow: 0 0 25px rgba(0,230,255,0.2);
  transition: transform 0.3s, box-shadow 0.3s; position:relative; overflow:hidden;
}
.player:hover { transform: translateY(-5px); box-shadow:0 0 35px var(--accent); }
.player h2 { font-size:1.2rem; color: var(--primary); margin-bottom:0.5rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.player .wager { font-size:1.1rem; color: var(--muted); margin-bottom:0.5rem; }
.player .prize { font-weight:bold; font-size:1.2rem; color: gold; text-shadow:0 0 10px #00e0ff; }

.player.first { transform: translateY(-25px); }
.player.first .prize { text-shadow: 0 0 15px #00e0ff; }
.player.second .prize { text-shadow: 0 0 12px #66d9ff; color: #c0c0c0; }
.player.third .prize { text-shadow: 0 0 12px #885522; color: #cd7f32; }

.table-wrapper {
  width: 100%;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(0,10,40,0.9), rgba(0,20,60,0.8));
  backdrop-filter: blur(8px);
  box-shadow: 0 0 40px rgba(0,200,255,0.5);
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.table-wrapper:hover {
  box-shadow: 0 0 60px rgba(0, 255, 255, 0.25);
}

.table-wrapper table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--muted);
}

thead th {
  background: linear-gradient(135deg, rgba(0,170,255,0.8), rgba(0,100,255,0.6));
  color: #fff;
  padding: 1rem;
  font-size: 1.3rem;
  text-shadow: 0 0 12px #00e0ff, 0 0 6px #00aaff;
  border-bottom: 2px solid #00ffff;
  transition: background 0.3s, color 0.3s;
}

tbody td {
  font-weight: bold;
  text-align: center;
  padding: 0.75rem 1rem;
  background: linear-gradient(120deg, rgba(0,0,50,0.6), rgba(0,0,30,0.4));
  border-bottom: 1px solid rgba(0,230,255,0.2);
  transition: background 0.3s, color 0.3s;
}

tbody tr:nth-child(odd) td {
  background: linear-gradient(120deg, rgba(0,0,60,0.5), rgba(0,0,40,0.4));
}

tbody tr:hover td {
  background: linear-gradient(135deg, rgba(0,200,255,0.5), rgba(0,255,255,0.4));
  color: #00ffff;
  text-shadow: 0 0 6px #00e0ff, 0 0 3px #0f72a85b;
}




.timer {
  font-size:2rem; margin:1.5rem 0; color:#00e0ff; font-weight:bold;
  border-radius:12px; padding:10px 20px; text-align:center; text-shadow:0 0 10px #00e0ff,0 0 20px rgba(0,230,255,0.7);
  box-shadow:0 0 15px rgba(0,230,255,0.5);
  animation: pulseGlow 2s infinite alternate;
}
@keyframes pulseGlow {
  0% { text-shadow:0 0 10px #00e0ff,0 0 20px rgba(0,230,255,0.5); }
  50% { text-shadow:0 0 20px #00e0ff,0 0 30px rgba(0,230,255,0.7); }
  100% { text-shadow:0 0 10px #00e0ff,0 0 20px rgba(0,230,255,0.5); }
}

footer {
    padding:1rem 1.5rem;
    background: var(--glass);
    border-top: 1px solid var(--glass-border);
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    text-align:center;
    color: var(--muted);
    gap:1rem;
    width:100%;
    box-sizing:border-box;
}
footer a { color: var(--primary); text-decoration:none; }
footer a:hover { color: var(--accent); }


#toggleButton {
  margin:15px auto; padding:12px 30px; border:none; border-radius:12px;
  background: var(--primary); color:#fff; font-size:1.1rem; cursor:pointer;
  transition:0.3s; display:block;
}
#toggleButton:hover { background: var(--accent); transform:scale(1.05); }


@media (max-width: 768px) {
  .top-3 {
    flex-direction: column; 
    align-items: center;
    gap: 1.5rem; 
    width: 100%;
    padding: 0 1rem;
  }

  .player {
    width: 90%;          
    max-width: 240px;    
    padding: 1rem 0.8rem;
    font-size: 1rem;     
    margin: 0 auto;       
    border-radius: 15px;  
  }

  .player.first {
    transform: translateY(-15px); 
    box-shadow: 0 0 40px var(--accent);
  }

  .player.second {
    transform: translateY(0); 
    box-shadow: 0 0 25px #66d9ff88;
  }

  .player.third {
    transform: translateY(0);
    box-shadow: 0 0 25px #88552288;
  }

  .player h2 {
    font-size: 1.1rem;  
  }

  .player .wager {
    font-size: 1rem;
  }

  .player .prize {
    font-size: 1.1rem;
    text-shadow: 0 0 8px currentColor;
  }

  .rank img.toplogo {
    width: 90px;        
    height: auto;
    margin-bottom: 0.5rem;
  }


  .toplogo {
    width: 60px; 
    max-width: 60px;
    height: auto;
    margin-bottom: 0.5rem;
  }

  .rainlogo {
    width: 60%;  
    max-width: 180px;
    margin-bottom: 1rem;
  }
  .leaderboard-container {
  max-width: 385px;
  display:flex; 
  flex-direction:column; 
  align-items:center; 
  gap:1rem;
  padding:0 1rem;
}

thead th {
  background: linear-gradient(135deg, rgba(0,170,255,0.8), rgba(0,100,255,0.6));
  color: #fff;
  padding: 1rem;
  font-size: 1rem;
  text-shadow: 0 0 12px #00e0ff, 0 0 6px #00aaff;
  border-bottom: 2px solid #00ffff;
  transition: background 0.3s, color 0.3s;
}
.table-wrapper table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--muted);
}

thead th {
  width: 2px;
  background: linear-gradient(135deg, rgba(0,170,255,0.8), rgba(0,100,255,0.6));
  color: #fff;
  padding: 0.6rem;
  font-size: 1rem;
  text-shadow: 0 0 12px #00e0ff, 0 0 6px #00aaff;
  border-bottom: 2px solid #00ffff;
  transition: background 0.3s, color 0.3s;
}

tbody td {
  font-weight: bold;
  text-align: center;
  background: linear-gradient(120deg, rgba(0,0,50,0.6), rgba(0,0,30,0.4));
  border-bottom: 1px solid rgba(0,230,255,0.2);
  transition: background 0.3s, color 0.3s;
}

tbody tr:nth-child(odd) td {
  background: linear-gradient(120deg, rgba(0,0,60,0.5), rgba(0,0,40,0.4));
}

}

